about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/expr.rs
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2024-09-08 01:49:25 -0400
committerNoah Lev <camelidcamel@gmail.com>2024-09-12 13:56:01 -0400
commite0bd01167e86d07c03e8ddd2bb0a25f689a2a7f5 (patch)
tree199eece79e78d0a347adfdad064c8791f8e562ef /compiler/rustc_ast_lowering/src/expr.rs
parent8b75004bcad5f25ef31894986945ff75b53d7d94 (diff)
downloadrust-e0bd01167e86d07c03e8ddd2bb0a25f689a2a7f5.tar.gz
rust-e0bd01167e86d07c03e8ddd2bb0a25f689a2a7f5.zip
Re-enable `ConstArgKind::Path` lowering by default
...and remove the `const_arg_path` feature gate as a result. It was only
a stopgap measure to fix the regression that the new lowering introduced
(which should now be fixed by this PR).
Diffstat (limited to 'compiler/rustc_ast_lowering/src/expr.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs
index b887908f904..e105026ebd1 100644
--- a/compiler/rustc_ast_lowering/src/expr.rs
+++ b/compiler/rustc_ast_lowering/src/expr.rs
@@ -387,7 +387,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
                 let node_id = self.next_node_id();
 
                 // HACK(min_generic_const_args): see lower_anon_const
-                if !self.tcx.features().const_arg_path || !arg.is_potential_trivial_const_arg() {
+                if !arg.is_potential_trivial_const_arg() {
                     // Add a definition for the in-band const def.
                     self.create_def(parent_def_id, node_id, kw::Empty, DefKind::AnonConst, f.span);
                 }