Skip to content

Commit ac69206

Browse files
remove unnecessary filtering logic
Co-authored-by: Boxy <rust@boxyuwu.dev>
1 parent cd5b323 commit ac69206

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • compiler/rustc_hir_analysis/src/hir_ty_lowering

compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2838,9 +2838,6 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
28382838
};
28392839

28402840
lit_input
2841-
// Allow the `ty` to be an alias type, though we cannot handle it here, we just go through
2842-
// the more expensive anon const code path.
2843-
.filter(|l| !l.ty.has_aliases())
28442841
.and_then(|l| {
28452842
tcx.at(expr.span)
28462843
.lit_to_const(l)

0 commit comments

Comments
 (0)