diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2024-11-27 17:52:57 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2024-11-28 15:45:27 +0000 |
| commit | 71b698c0b81c2e35c852ebcdf1f5cbe9e9162a50 (patch) | |
| tree | dbe91e29ec618b7e46ffb36ec6112e4ca49f17f4 /compiler/rustc_trait_selection/src/traits | |
| parent | 72d2db7bf46f565f4ee5cc73d65b4f4906e7420e (diff) | |
| download | rust-71b698c0b81c2e35c852ebcdf1f5cbe9e9162a50.tar.gz rust-71b698c0b81c2e35c852ebcdf1f5cbe9e9162a50.zip | |
Replace `Symbol::intern` calls with preinterned symbols
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs b/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs index e0a9ddf1876..993bc2e9b94 100644 --- a/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs +++ b/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs @@ -18,7 +18,6 @@ use rustc_middle::ty::{ TypeVisitableExt, TypeVisitor, TypingMode, Upcast, }; use rustc_span::Span; -use rustc_span::symbol::Symbol; use smallvec::SmallVec; use tracing::{debug, instrument}; @@ -679,7 +678,7 @@ fn receiver_is_dispatchable<'tcx>( // FIXME(mikeyhew) this is a total hack. Once dyn_compatible_for_dispatch is stabilized, we can // replace this with `dyn Trait` let unsized_self_ty: Ty<'tcx> = - Ty::new_param(tcx, u32::MAX, Symbol::intern("RustaceansAreAwesome")); + Ty::new_param(tcx, u32::MAX, rustc_span::sym::RustaceansAreAwesome); // `Receiver[Self => U]` let unsized_receiver_ty = |
