Repository navigation
ICE: expand: unimplemented #140479
Copy link
Copy link
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.F-macro_metavar_expr`#![feature(macro_metavar_expr)]``#![feature(macro_metavar_expr)]`F-macro_metavar_expr_concat`#![feature(macro_metavar_expr_concat)]``#![feature(macro_metavar_expr_concat)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-bug-has-testStatus: This bug is tracked inside the repo by a `known-bug` test.Status: This bug is tracked inside the repo by a `known-bug` test.S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Activity
- addedC-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
on Apr 29, 2025 - addedneeds-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingF-macro_metavar_expr`#![feature(macro_metavar_expr)]``#![feature(macro_metavar_expr)]`
on Apr 29, 2025 smaller
macro_rules! a { ( $( { $ [ $b:c ] } )) => ( $(${ concat(d, $b)} ))} fn e() { a!({}) }
Regression in nightly-2024-07-22
get_commits_between returning commits, len: 6
commit[0] 2024-07-20: Auto merge of #127663 - Oneirical:fuzzy-testure, r=jieyouxu
commit[1] 2024-07-20: Auto merge of #128007 - Mark-Simulacrum:bump-version, r=Mark-Simulacrum
commit[2] 2024-07-21: Auto merge of #128011 - matthiaskrgr:rollup-0vmf75y, r=matthiaskrgr
commit[3] 2024-07-21: Auto merge of #127715 - klensy:tests-w, r=Mark-Simulacrum
commit[4] 2024-07-21: Auto merge of #127722 - BoxyUwU:new_adt_const_params_limitations, r=compiler-errors
commit[5] 2024-07-21: Auto merge of #127993 - weihanglo:update-cargo, r=weihanglo@rustbot label: +A-macros +S-has-mcve +S-has-bisection -needs-triage
- addedA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueand removedneeds-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
on Apr 29, 2025 - addedS-bug-has-testStatus: This bug is tracked inside the repo by a `known-bug` test.Status: This bug is tracked inside the repo by a `known-bug` test.
on May 20, 2025 - addedF-macro_metavar_expr_concat`#![feature(macro_metavar_expr_concat)]``#![feature(macro_metavar_expr_concat)]`
on Jun 19, 2025 - marked ICE when using the new ${concat()} meta #143819 as a duplicate of this issue
on Jul 12, 2025 - added a commit that references this issue
on Sep 1, 2025 - added a commit that references this issue
on Sep 2, 2025 - added a commit that references this issue
on Sep 2, 2025 - added a commit that references this issue
on Sep 2, 2025 - added a commit that references this issue
on Oct 12, 2025 - added a commit that references this issue
on Nov 10, 2025
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.F-macro_metavar_expr`#![feature(macro_metavar_expr)]``#![feature(macro_metavar_expr)]`F-macro_metavar_expr_concat`#![feature(macro_metavar_expr_concat)]``#![feature(macro_metavar_expr_concat)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-bug-has-testStatus: This bug is tracked inside the repo by a `known-bug` test.Status: This bug is tracked inside the repo by a `known-bug` test.S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
auto-reduced (treereduce-rust):
original code
original:
Version information
Possibly related line of code:
rust/compiler/rustc_expand/src/mbe/transcribe.rs
Lines 789 to 801 in efcbb94
Command:
/home/matthias/.rustup/toolchains/master/bin/rustcProgram output
@rustbot label +F-macro_metavar_expr