address review

This commit is contained in:
b-naber 2022-07-04 21:30:31 +02:00
parent 372c4fd67f
commit bea0a6dc84
4 changed files with 5 additions and 13 deletions

View file

@ -299,7 +299,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
let err = ConstEvalErr::new(&self.ecx, error, Some(c.span));
if let Some(lint_root) = self.lint_root(source_info) {
let lint_only = match c.literal {
ConstantKind::Ty(_) => c.literal.needs_subst(),
ConstantKind::Ty(ct) => ct.needs_subst(),
ConstantKind::Unevaluated(
ty::Unevaluated { def: _, substs: _, promoted: Some(_) },
_,