Module syntax::ext::source_util [] [src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Functions

expand_column [
Experimental
]
expand_column_gated [
Experimental
]
expand_file [
Experimental
]

file!(): expands to the current filename */ The filemap (loc.file) contains a bunch more information we could spit out if we wanted.

expand_include [
Experimental
]

include! : parse the given file as an expr This is generally a bad idea because it's going to behave unhygienically.

expand_include_bytes [
Experimental
]
expand_include_str [
Experimental
]
expand_line [
Experimental
]

line!(): expands to the current line number

expand_mod [
Experimental
]
expand_stringify [
Experimental
]