rustc-ap-rustc_span 719.0.0

Automatically published version of the package `rustc_span` in the rust-lang/rust repository from commit 0309953232d9957aef4c7c5a24fcb30735b2066b The publishing script for this crate lives at: failed to build rustc-ap-rustc_span-719.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure builds.
If you believe this is' fault, open an issue.
Visit the last successful build: rustc-ap-rustc_span-724.0.0

Source positions and related helper functions.

Important concepts in this module include:

  • the span, represented by [SpanData] and related types;
  • source code as represented by a [SourceMap]; and
  • interned strings, represented by [Symbol]s, with some common symbols available statically in the [sym] module.

Unlike most compilers, the span contains not only the position in the source code, but also various other metadata, such as the edition and macro hygiene. This metadata is stored in [SyntaxContext] and [ExpnData].


This API is completely unstable and subject to change.