Home / Docs

Diagnostics

Release v0.4.0

Every diagnostic code of the compiler, with the same explanation that una explain <code> prints: what it means, a failing example and a fixed one. 121 codes at v0.4.0.

U0xx

Code Meaning
U0001 Invalid character, byte order mark or lone carriage return
U0002 Tab in indentation
U0003 Inconsistent indentation
U0004 Unterminated text literal
U0005 Invalid escape sequence
U0006 Text literal inside interpolation
U0007 Malformed literal
U0101 Unexpected token
U0102 Clause out of order or repeated
U0103 Reserved keyword not available in the package's edition

U1xx

Code Meaning
U1001 Unresolved name
U1002 Duplicate definition
U1003 Import cycle
U1004 Use of a private declaration from another module
U1005 Naming convention violation
U1006 Undeclared requirement in derived from
U1007 Generated requirement marked active
U1008 Module path does not match file path
U1009 Reserved module name
U1010 A module whose first path segment is a dependency's local name

U2xx

Code Meaning
U2001 Type mismatch
U2002 Unknown or ill-formed type
U2003 Wrong number of type arguments
U2004 Missing argument label
U2005 Unknown argument label
U2006 Duplicate argument
U2007 Non-exhaustive when over variants
U2008 Unreachable arm or misplaced else
U2009 Missing or unknown field in constructor
U2010 Cannot infer lambda parameter type
U2011 Statement value is not Unit
U2012 result outside ensures or expect
U2013 it or error outside its allowed position
U2014 Expression outside the refinement language
U2015 Invalid predicate body (impure, failing, recursive or outside RL for reflect)
U2016 Opaque predicate called outside checked
U2017 Use of a binding after it was passed by take
U2018 An edit argument together with another use of its binding in the same call
U2019 Assignment to a binding that is not editable
U2020 A parameter convention (edit, take) not matched at the call site, or declared where none is allowed
U2021 A function with edit or take parameters used as a value
U2022 Integer literal does not fit its type
U2023 A binding declared outside a together branch assigned, or passed as edit or take, inside it
U2024 A together body with a statement other than let, or fewer than two branches
U2025 A type argument does not satisfy the constraint of its parameter
U2026 An operation on a type parameter that its constraint does not allow
U2027 An unknown constraint name
U2028 Values of different units meet, or a measured and a unitless value
U2029 An invalid unit declaration or unit expression
U2030 A unit conversion without an expected unit, or not exact
U2031 A float literal rounds to an infinity, or is not zero and rounds to zero
U2032 A float literal other than zero, or a float range, as a pattern
U2033 A comparison of an F64 with a float literal zero
U2034 stop or skip outside a loop body, or across a task boundary
U2035 first of with fewer than two branches, or a line that is not an expression; start outside the block of a tasks, inside a task within it, or with a with clause
U2037 A decimal scale out of place
U2038 A tensor shape, index, permutation or axis out of place
U2039 A map, zip_map or update in a function with simd required whose lambda cannot be vectorized for a listed target
U2040 A statement after stop or skip in the same block, which never runs

U3xx

Code Meaning
U3001 Capability not in scope
U3002 Operation not permitted by capability type
U3003 Effects exceed declared uses
U3004 Capability used in a pure function
U3005 Capability reference used as a value
U3006 Effectful or failing lambda escapes
U3007 Fallible expression without handling
U3008 if error pass with a different error kind
U3009 Failure variant not in the declared error kind
U3010 Handler does not match its capability
U3011 Handler missing an operation
U3012 Host capability in main not granted by una run
U3013 Effectful or fallible call nested inside an expression
U3014 Host capability used in an example
U3015 std.testing used outside a handler or example
U3016 Second-class type used as a type argument
U3017 of clause that names no parameter
U3018 of clause that names a parameter not of function type
U3019 of clause that names a function type with its own uses or fails
U3020 Call into a boundary module whose capability is not granted with with
U3021 Call that grants a boundary module more than its ceiling
U3022 Labeled operation passed to code that reads it lower
U3023 Header that grants more than its lock in una.toml
U3024 Call into a boundary module from which a release is reachable
U3025 if error clause on an expression that cannot fail
U3026 attempt of a call that cannot fail
U3027 Code that may run forever where it is not allowed to
U3028 A function that says diverges, used as a value
U3029 A failure that must be handled where it is not
U3032 A simd required clause outside a systems package of edition 0.5
U3033 An operation of HttpServer in the effect set of a together branch, a together for body, a first of branch, or handle or on_stop of a serve module

U4xx

Code Meaning
U4001 Flow to a lower label
U4002 Implicit flow through control, failure or call under raised pc
U4003 Sink label exceeded
U4004 policy outside a trusted module
U4005 Invalid policy (public via, or type mismatch)
U4007 Unknown label category
U4008 A text literal with interpolation in a pattern

U5xx

Code Meaning
U5001 Obligation refuted
U5002 Obligation unknown
U5003 Solver missing or version mismatch

U6xx

Code Meaning
U6001 main failed
U6003 Call depth or memory limit exceeded
U6004 A header value contains a control character
U6005 A host value is not valid UTF-8
U6006 The floating-point environment of the platform is not the default one
U6007 The host stopped the run before it finished
U6009 The host gave no random bytes for keyed hashing

U7xx

Code Meaning
U7001 Non-canonical formatting
U7002 Invalid una.toml
U7003 Escape budget exceeded
U7004 Missing or invalid verification.lock
U7005 Trusted module not declared in both header and una.toml
U7008 Invalid ita.una or itaty.una
U7009 Missing, invalid or inconsistent ita.lock
U7010 A package, archive, statement, root, checkpoint or log proof that fails verification
U7011 A locked package that is neither in the vendor directory nor in Itaoca
U7012 A dependency the root may not use as written
U7013 No resolution: no release meets a need, or a bound of resolution is exceeded
U7014 A locked release yanked, under an advisory or signed after a stated compromise, or a pending recovery, a key change or a transfer of its owner
U7015 The executable cannot be laid out: a branch beyond its target's range, or a section larger than its format allows

U8xx

Code Meaning
U8001 Internal compiler error (always a bug)
View the Markdown