diff options
| author | lcnr <rust@lcnr.de> | 2022-02-24 08:36:29 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-02-24 08:36:29 +0100 |
| commit | 70018c19cb34679e6de8b18f84c264abe280f28a (patch) | |
| tree | b0a661370505cb87acefd3638563ec0ed320cbc3 /compiler | |
| parent | e780264e1e5c1efa6ab76c7b17a9677f16add5e0 (diff) | |
| download | rust-70018c19cb34679e6de8b18f84c264abe280f28a.tar.gz rust-70018c19cb34679e6de8b18f84c264abe280f28a.zip | |
update auto trait lint
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_typeck/src/coherence/orphan.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_typeck/src/coherence/orphan.rs b/compiler/rustc_typeck/src/coherence/orphan.rs index 54fffeb3cda..811136a7eb4 100644 --- a/compiler/rustc_typeck/src/coherence/orphan.rs +++ b/compiler/rustc_typeck/src/coherence/orphan.rs @@ -439,6 +439,7 @@ fn fast_reject_auto_impl<'tcx>(tcx: TyCtxt<'tcx>, trait_def_id: DefId, self_ty: } match t.kind() { + ty::Adt(def, substs) if def.is_phantom_data() => substs.super_visit_with(self), ty::Adt(def, substs) => { // @lcnr: This is the only place where cycles can happen. We avoid this // by only visiting each `DefId` once. |
