#rustc #span #html #script #commit #at

nightly rustc-ap-rustc_span

Automatically published version of the package rustc_span in the rust-lang/rust repository from commit 9a27044f42ace9eb652781b53f598e25d4e7e918 The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish

92 major breaking releases

727.0.0 Jul 6, 2021
726.0.0 Jun 29, 2021
725.0.0 Jun 22, 2021
724.0.0 Jun 15, 2021
635.0.0 Dec 31, 2019
Download history 5215/week @ 2021-04-04 4617/week @ 2021-04-11 5285/week @ 2021-04-18 5455/week @ 2021-04-25 5781/week @ 2021-05-02 4888/week @ 2021-05-09 4673/week @ 2021-05-16 4050/week @ 2021-05-23 4777/week @ 2021-05-30 4843/week @ 2021-06-06 4546/week @ 2021-06-13 4545/week @ 2021-06-20 4771/week @ 2021-06-27 4895/week @ 2021-07-04 4856/week @ 2021-07-11 5057/week @ 2021-07-18

20,671 downloads per month
Used in 29 crates (14 directly)

MIT/Apache

1MB
24K SLoC


lib.rs:

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].

Note

This API is completely unstable and subject to change.

Dependencies

~5MB
~99K SLoC