Align Term methods with GenericArg methods
This commit is contained in:
parent
7c52d2db63
commit
273b990554
23 changed files with 46 additions and 36 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue