-
Notifications
You must be signed in to change notification settings - Fork 1k
rustfmt nightly panics when trying to format a macro #6632
Copy link
Copy link
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEI-ICEIssue: Internal Compiler Error (ICE) reported by rustfmtIssue: Internal Compiler Error (ICE) reported by rustfmt
Metadata
Metadata
Assignees
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEI-ICEIssue: Internal Compiler Error (ICE) reported by rustfmtIssue: Internal Compiler Error (ICE) reported by rustfmt
Type
Fields
Give feedbackNo fields configured for Bug.
Hi,
This macro makes
rustfmtnightly crash:If i remove the trailing comment
// BuildService::service_name(s.clone()),, it works as expected.rustc-ice-2025-08-14T09_52_33-31225.txt