Skip to content

Commit be29839

Browse files
camelidBoxyUwU
andauthored
Only allow mcg in TyKind::Path -> const arg fixup
Co-authored-by: Boxy <[email protected]>
1 parent 991f55c commit be29839

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-2
lines changed

compiler/rustc_ast_lowering/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
10941094
.and_then(|partial_res| partial_res.full_res())
10951095
{
10961096
if !res.matches_ns(Namespace::TypeNS)
1097-
// FIXME: should this only allow single-segment paths?
1098-
&& path.is_potential_trivial_const_arg(self.tcx.features().min_generic_const_args())
1097+
&& path.is_potential_trivial_const_arg(false)
10991098
{
11001099
debug!(
11011100
"lower_generic_arg: Lowering type argument as const argument: {:?}",

0 commit comments

Comments
 (0)