This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2147,7 +2147,7 @@ impl<'tcx> TyCtxt<'tcx> {
21472147 return vec ! [ ] ;
21482148 } ;
21492149
2150- let mut v = TraitObjectVisitor ( vec ! [ ] , self . hir ( ) ) ;
2150+ let mut v = TraitObjectVisitor ( vec ! [ ] ) ;
21512151 v. visit_ty_unambig ( hir_output) ;
21522152 v. 0
21532153 }
@@ -2160,7 +2160,7 @@ impl<'tcx> TyCtxt<'tcx> {
21602160 scope_def_id : LocalDefId ,
21612161 ) -> Option < ( Vec < & ' tcx hir:: Ty < ' tcx > > , Span , Option < Span > ) > {
21622162 let hir_id = self . local_def_id_to_hir_id ( scope_def_id) ;
2163- let mut v = TraitObjectVisitor ( vec ! [ ] , self . hir ( ) ) ;
2163+ let mut v = TraitObjectVisitor ( vec ! [ ] ) ;
21642164 // when the return type is a type alias
21652165 if let Some ( hir:: FnDecl { output : hir:: FnRetTy :: Return ( hir_output) , .. } ) = self . hir_fn_decl_by_hir_id ( hir_id)
21662166 && let hir:: TyKind :: Path ( hir:: QPath :: Resolved (
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ pub fn suggest_constraining_type_params<'a>(
571571}
572572
573573/// Collect al types that have an implicit `'static` obligation that we could suggest `'_` for.
574- pub struct TraitObjectVisitor < ' tcx > ( pub Vec < & ' tcx hir:: Ty < ' tcx > > , pub crate :: hir :: map :: Map < ' tcx > ) ;
574+ pub ( crate ) struct TraitObjectVisitor < ' tcx > ( pub ( crate ) Vec < & ' tcx hir:: Ty < ' tcx > > ) ;
575575
576576impl < ' v > hir:: intravisit:: Visitor < ' v > for TraitObjectVisitor < ' v > {
577577 fn visit_ty ( & mut self , ty : & ' v hir:: Ty < ' v , AmbigArg > ) {
You can’t perform that action at this time.
0 commit comments