File tree 2 files changed +3
-3
lines changed
compiler/rustc_middle/src/ty
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> {
2147
2147
return vec ! [ ] ;
2148
2148
} ;
2149
2149
2150
- let mut v = TraitObjectVisitor ( vec ! [ ] , self . hir ( ) ) ;
2150
+ let mut v = TraitObjectVisitor ( vec ! [ ] ) ;
2151
2151
v. visit_ty_unambig ( hir_output) ;
2152
2152
v. 0
2153
2153
}
@@ -2160,7 +2160,7 @@ impl<'tcx> TyCtxt<'tcx> {
2160
2160
scope_def_id : LocalDefId ,
2161
2161
) -> Option < ( Vec < & ' tcx hir:: Ty < ' tcx > > , Span , Option < Span > ) > {
2162
2162
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 ! [ ] ) ;
2164
2164
// when the return type is a type alias
2165
2165
if let Some ( hir:: FnDecl { output : hir:: FnRetTy :: Return ( hir_output) , .. } ) = self . hir_fn_decl_by_hir_id ( hir_id)
2166
2166
&& 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>(
571
571
}
572
572
573
573
/// 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 > > ) ;
575
575
576
576
impl < ' v > hir:: intravisit:: Visitor < ' v > for TraitObjectVisitor < ' v > {
577
577
fn visit_ty ( & mut self , ty : & ' v hir:: Ty < ' v , AmbigArg > ) {
You can’t perform that action at this time.
0 commit comments