File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ impl<'tcx> Visitor<'tcx> for TypeWalker<'_, 'tcx> {
197
197
type NestedFilter = nested_filter:: OnlyBodies ;
198
198
199
199
fn visit_ty ( & mut self , t : & ' tcx Ty < ' tcx , AmbigArg > ) {
200
- if let Some ( ( def_id, _) ) = t. as_unambig_ty ( ) . peel_refs ( ) . as_generic_param ( ) {
200
+ if let Some ( ( def_id, _) ) = t. peel_refs ( ) . as_generic_param ( ) {
201
201
self . ty_params . remove ( & def_id) ;
202
202
} else {
203
203
walk_ty ( self , t) ;
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ impl<'tcx> LateLintPass<'tcx> for FromOverInto {
92
92
|diag| {
93
93
// If the target type is likely foreign mention the orphan rules as it's a common source of
94
94
// confusion
95
- if path_def_id ( cx, target_ty. as_unambig_ty ( ) . peel_refs ( ) ) . is_none_or ( |id| !id. is_local ( ) ) {
95
+ if path_def_id ( cx, target_ty. peel_refs ( ) ) . is_none_or ( |id| !id. is_local ( ) ) {
96
96
diag. help (
97
97
"`impl From<Local> for Foreign` is allowed by the orphan rules, for more information see\n \
98
98
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence"
You can’t perform that action at this time.
0 commit comments