about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-06-28 18:28:47 +0530
committerGitHub <noreply@github.com>2023-06-28 18:28:47 +0530
commitfc2c587cd04822bc9cf1b90a00e77f0a0996aca4 (patch)
tree58b9fdb0fb5b66ac5297aa3241b97e59431f2374 /compiler/rustc_ty_utils/src
parentdabcbae53549503aa01053163f4999626c315962 (diff)
parent7d0a5c31f5b3b4b1dc47ce51898be8895c9f4637 (diff)
downloadrust-fc2c587cd04822bc9cf1b90a00e77f0a0996aca4.tar.gz
rust-fc2c587cd04822bc9cf1b90a00e77f0a0996aca4.zip
Rollup merge of #112867 - compiler-errors:more-impl-source-nits, r=lcnr
More `ImplSource` nits

Even more clean-ups, I'll put this up in parallel with the `select_in_new_trait_solver` PR.

r? ``@lcnr``
Diffstat (limited to 'compiler/rustc_ty_utils/src')
-rw-r--r--compiler/rustc_ty_utils/src/instance.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs
index 45b1075b602..2d75862014d 100644
--- a/compiler/rustc_ty_utils/src/instance.rs
+++ b/compiler/rustc_ty_utils/src/instance.rs
@@ -293,9 +293,7 @@ fn resolve_associated_item<'tcx>(
                 None
             }
         }
-        traits::ImplSource::Param(..)
-        | traits::ImplSource::TraitAlias(..)
-        | traits::ImplSource::TraitUpcasting(_) => None,
+        traits::ImplSource::Param(..) | traits::ImplSource::TraitUpcasting(_) => None,
     })
 }