Pretty print `$crate` as `crate` or `crate_name` in more cases So, people do parse output of `--pretty=expanded` (sigh), so covering only the legacy proc-macro case (like it was done in https://github.com/rust-lang/rust/pull/57155) is not enough. This PRs resolves all `$crate`s produced by macros, so they are all printed in the parseable form `$crate::foo` -> `crate::foo` or `crate_name::foo`. Fixes https://github.com/rust-lang/rust/issues/38016#issuecomment-455851334 Fixes https://github.com/rust-lang/rust/pull/57155#issuecomment-455807195 |
||
|---|---|---|
| .. | ||
| build_reduced_graph.rs | ||
| Cargo.toml | ||
| check_unused.rs | ||
| diagnostics.rs | ||
| error_reporting.rs | ||
| lib.rs | ||
| macros.rs | ||
| resolve_imports.rs | ||