rust/src/librustc_resolve
Mazdak Farrokhzad 3fe8b4c043
Rollup merge of #57915 - petrochenkov:notto-disu, r=zackmdavis
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
2019-01-28 22:25:48 +01:00
..
build_reduced_graph.rs remove _with_applicability from suggestion fns 2019-01-26 23:07:55 -05:00
Cargo.toml resolve: Merge resolution for macro_rules into the common early in-scope resolution function 2018-10-05 11:40:40 +04:00
check_unused.rs Remove licenses 2018-12-25 21:08:33 -07:00
diagnostics.rs Fix repeated word typos 2019-01-03 21:33:37 +01:00
error_reporting.rs Remove licenses 2018-12-25 21:08:33 -07:00
lib.rs remove _with_applicability from suggestion fns 2019-01-26 23:07:55 -05:00
macros.rs Rollup merge of #57915 - petrochenkov:notto-disu, r=zackmdavis 2019-01-28 22:25:48 +01:00
resolve_imports.rs Pretty print $crate as crate or crate_name in more cases 2019-01-26 17:11:28 +03:00