address review again
This commit is contained in:
parent
ba00189d8e
commit
6af8fb7936
20 changed files with 119 additions and 520 deletions
|
@ -300,10 +300,7 @@ impl<'a, 'tcx> TypeVisitor<'tcx> for MarkUsedGenericParams<'a, 'tcx> {
|
|||
ControlFlow::CONTINUE
|
||||
}
|
||||
ty::ConstKind::Unevaluated(ty::Unevaluated { def, substs, promoted })
|
||||
if matches!(
|
||||
self.tcx.def_kind(def.did),
|
||||
DefKind::AnonConst | DefKind::InlineConst
|
||||
) =>
|
||||
if matches!(self.tcx.def_kind(def.did), DefKind::AnonConst) =>
|
||||
{
|
||||
assert_eq!(promoted, ());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue