diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-29 22:23:49 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-06-03 20:36:27 -0400 |
| commit | 273b990554fa2a7efdd975ccf2ef490c6c90cbaf (patch) | |
| tree | 7700d52bda1445d58e4ef5153460c2a37dfd9221 /compiler/rustc_lint/src | |
| parent | 7c52d2db6348b038276198e88a835125849f322e (diff) | |
| download | rust-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.rs | 2 |
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() |
