diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-09 09:30:22 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-10 10:54:26 +1100 |
| commit | 316ffba3c859c15ca2d0ecdefb16fad3565a46bc (patch) | |
| tree | 0e357a946a930ad5f3528c43b16a2ddb3ec43164 /compiler/rustc_macros/src | |
| parent | b35e5766576c1355f69f57c738998edbe4c8d807 (diff) | |
| download | rust-316ffba3c859c15ca2d0ecdefb16fad3565a46bc.tar.gz rust-316ffba3c859c15ca2d0ecdefb16fad3565a46bc.zip | |
Update instructions in a comment.
And avoid duplication.
Diffstat (limited to 'compiler/rustc_macros/src')
| -rw-r--r-- | compiler/rustc_macros/src/symbols.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/compiler/rustc_macros/src/symbols.rs b/compiler/rustc_macros/src/symbols.rs index 4129712a6b2..3de4a904e5f 100644 --- a/compiler/rustc_macros/src/symbols.rs +++ b/compiler/rustc_macros/src/symbols.rs @@ -19,7 +19,9 @@ //! ```bash //! cargo install cargo-expand # this is necessary only once //! cd compiler/rustc_span -//! cargo expand > /tmp/rustc_span.rs # it's a big file +//! # The specific version number in CFG_RELEASE doesn't matter. +//! # The output is large. +//! CFG_RELEASE="0.0.0" cargo +nightly expand > /tmp/rustc_span.rs //! ``` use proc_macro2::{Span, TokenStream}; @@ -318,13 +320,4 @@ fn symbols_with_errors(input: TokenStream) -> (TokenStream, Vec<syn::Error>) { }; (output, errors.list) - - // To see the generated code, use the "cargo expand" command. - // Do this once to install: - // cargo install cargo-expand - // - // Then, cd to rustc_span and run: - // cargo expand > /tmp/rustc_span_expanded.rs - // - // and read that file. } |
