diff options
| author | est31 <MTest31@outlook.com> | 2020-10-13 10:17:05 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2020-10-13 14:16:45 +0200 |
| commit | a0fc455d301ba715a10e81bedb1358abbc1d133b (patch) | |
| tree | 97e4e37e70ef61ff67689df830c10472d7db6c1a /compiler/rustc_mir/src/transform/mod.rs | |
| parent | f54072bb815e2bbaec40eed18c7618904a184470 (diff) | |
| download | rust-a0fc455d301ba715a10e81bedb1358abbc1d133b.tar.gz rust-a0fc455d301ba715a10e81bedb1358abbc1d133b.zip | |
Replace absolute paths with relative ones
Modern compilers allow reaching external crates like std or core via relative paths in modules outside of lib.rs and main.rs.
Diffstat (limited to 'compiler/rustc_mir/src/transform/mod.rs')
| -rw-r--r-- | compiler/rustc_mir/src/transform/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/transform/mod.rs b/compiler/rustc_mir/src/transform/mod.rs index 4bafcb2535f..ffb84950fc9 100644 --- a/compiler/rustc_mir/src/transform/mod.rs +++ b/compiler/rustc_mir/src/transform/mod.rs @@ -137,7 +137,7 @@ fn mir_keys(tcx: TyCtxt<'_>, krate: CrateNum) -> FxHashSet<LocalDefId> { /// Generates a default name for the pass based on the name of the /// type `T`. pub fn default_name<T: ?Sized>() -> Cow<'static, str> { - let name = ::std::any::type_name::<T>(); + let name = std::any::type_name::<T>(); if let Some(tail) = name.rfind(':') { Cow::from(&name[tail + 1..]) } else { Cow::from(name) } } |
