Skip to content

Commit 316ffba

Browse files
committed
Update instructions in a comment.
And avoid duplication.
1 parent b35e576 commit 316ffba

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

compiler/rustc_macros/src/symbols.rs

+3-10
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
//! ```bash
2020
//! cargo install cargo-expand # this is necessary only once
2121
//! cd compiler/rustc_span
22-
//! cargo expand > /tmp/rustc_span.rs # it's a big file
22+
//! # The specific version number in CFG_RELEASE doesn't matter.
23+
//! # The output is large.
24+
//! CFG_RELEASE="0.0.0" cargo +nightly expand > /tmp/rustc_span.rs
2325
//! ```
2426
2527
use proc_macro2::{Span, TokenStream};
@@ -318,13 +320,4 @@ fn symbols_with_errors(input: TokenStream) -> (TokenStream, Vec<syn::Error>) {
318320
};
319321

320322
(output, errors.list)
321-
322-
// To see the generated code, use the "cargo expand" command.
323-
// Do this once to install:
324-
// cargo install cargo-expand
325-
//
326-
// Then, cd to rustc_span and run:
327-
// cargo expand > /tmp/rustc_span_expanded.rs
328-
//
329-
// and read that file.
330323
}

0 commit comments

Comments
 (0)