@@ -4,7 +4,7 @@ use crate::traits;
44use crate :: traits:: project:: Normalized ;
55use crate :: ty:: fold:: { TypeFoldable , TypeFolder , TypeVisitor } ;
66use crate :: ty:: { self , Lift , Ty , TyCtxt } ;
7- use syntax:: symbol:: InternedString ;
7+ use syntax:: symbol:: Symbol ;
88
99use std:: fmt;
1010use std:: rc:: Rc ;
@@ -261,11 +261,11 @@ impl fmt::Display for traits::QuantifierKind {
261261/// for debug output in tests anyway.
262262struct BoundNamesCollector {
263263 // Just sort by name because `BoundRegion::BrNamed` does not have a `BoundVar` index anyway.
264- regions : BTreeSet < InternedString > ,
264+ regions : BTreeSet < Symbol > ,
265265
266266 // Sort by `BoundVar` index, so usually this should be equivalent to the order given
267267 // by the list of type parameters.
268- types : BTreeMap < u32 , InternedString > ,
268+ types : BTreeMap < u32 , Symbol > ,
269269
270270 binder_index : ty:: DebruijnIndex ,
271271}
@@ -319,7 +319,7 @@ impl<'tcx> TypeVisitor<'tcx> for BoundNamesCollector {
319319 match bound_ty. kind {
320320 ty:: BoundTyKind :: Param ( name) => name,
321321 ty:: BoundTyKind :: Anon =>
322- InternedString :: intern ( & format ! ( "^{}" , bound_ty. var. as_u32( ) ) ,
322+ Symbol :: intern ( & format ! ( "^{}" , bound_ty. var. as_u32( ) ) ,
323323 ) ,
324324 }
325325 ) ;
@@ -340,7 +340,7 @@ impl<'tcx> TypeVisitor<'tcx> for BoundNamesCollector {
340340 }
341341
342342 ty:: BoundRegion :: BrAnon ( var) => {
343- self . regions . insert ( InternedString :: intern ( & format ! ( "'^{}" , var) ) ) ;
343+ self . regions . insert ( Symbol :: intern ( & format ! ( "'^{}" , var) ) ) ;
344344 }
345345
346346 _ => ( ) ,
0 commit comments