about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-29 22:23:49 -0400
committerMichael Goulet <michael@errs.io>2024-06-03 20:36:27 -0400
commit273b990554fa2a7efdd975ccf2ef490c6c90cbaf (patch)
tree7700d52bda1445d58e4ef5153460c2a37dfd9221 /compiler/rustc_lint/src
parent7c52d2db6348b038276198e88a835125849f322e (diff)
downloadrust-273b990554fa2a7efdd975ccf2ef490c6c90cbaf.tar.gz
rust-273b990554fa2a7efdd975ccf2ef490c6c90cbaf.zip
Align Term methods with GenericArg methods
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/opaque_hidden_inferred_bound.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/opaque_hidden_inferred_bound.rs b/compiler/rustc_lint/src/opaque_hidden_inferred_bound.rs
index eda40e4a011..6098da990c0 100644
--- a/compiler/rustc_lint/src/opaque_hidden_inferred_bound.rs
+++ b/compiler/rustc_lint/src/opaque_hidden_inferred_bound.rs
@@ -83,7 +83,7 @@ impl<'tcx> LateLintPass<'tcx> for OpaqueHiddenInferredBound {
                 };
                 // Only check types, since those are the only things that may
                 // have opaques in them anyways.
-                let Some(proj_term) = proj.term.ty() else { return };
+                let Some(proj_term) = proj.term.as_type() else { return };
 
                 // HACK: `impl Trait<Assoc = impl Trait2>` from an RPIT is "ok"...
                 if let ty::Alias(ty::Opaque, opaque_ty) = *proj_term.kind()