Expand description
Utilities for dealing with span tracking in the compiler and in error reporting.
Macros§
- expr_
to_ 🔒span - Generates a
ToSpanimplementation for a type implementingrowan::AstNode. This is impossible to do as a blanket implementation becauserustcforbids these implementations for traits from third-party crates due to a belief that semantic versioning truly could work (it doesn’t).
Structs§
- Entire
File - A placeholder
ToSpanimplementation covering the entire source file. - OrEntire
File - A placeholder
ToSpanimplementation which falls back to the entire file if its wrapped value isNone
Traits§
- ToSpan
- Trait implemented by all types from which we can retrieve a span.