Crate chandeliers_err
source ·Expand description
Error message generation.
Macros
- Generate an error message better than just “proc macro panicked”.
- Repository of this project, to be displayed in error messages.
- Special instance of
panicfor code that should be trivially unreachable.
Structs
- An explicit error message with its span.
- Generate an error for a binary operator that expected arguments of a specific type.
- Generate an error for something that should have been a bool but isn’t, e.g.
if 1 then 0 else 1. - Error for when a comparison operator is used with associativity.
- Generate an error for a cyclic definition.
- Error message for an object that was defined twice when only one declaration should exist.
- Special case of Cycle: custom message for an object that depends specifically on itself directly.
- Error for an object that should have been declared but was not.
- Generate an erorr for an expression that is noot valid in a
constdeclaration. - Error for when one tried to access too far into the past.
- Generate an error for incompatible types between a “left” and a “right” values.
- Error for a literal that is not supported.
- Generate an error for a unary operator that expected an argument of a specific type.
- Generate an error for a variable that was not declared yet.
Traits
- Generate an Error.
- Objects that can be converted to spans.
Type Aliases
- Anything that went wrong: a sequence of Span and associated message.
- Result type with errors that can be emitted by Rustc.