- 
                Notifications
    You must be signed in to change notification settings 
- Fork 963
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-ICE
Description
Hi,
This macro makes rustfmt nightly crash:
macro_rules! impl_routes_and_health {
	($($feature:literal, $variant:ident),* $(,)?) => {
		impl EitherState {
			pub(crate) fn service_name(&self) -> &'static str {
				match self {
					$(
						#[cfg(feature = $feature)]
						Self::$variant(s) => s.service_name(),// BuildService::service_name(s.clone()),
					)*
				}
			}
		}
	};
}If i remove the trailing comment // BuildService::service_name(s.clone()),, it works as expected.
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-ICE