We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 383306e + ed697c9 commit 61f972bCopy full SHA for 61f972b
src/items.rs
@@ -1722,7 +1722,7 @@ fn rewrite_static(
1722
static_parts.defaultness.map_or("", format_defaultness),
1723
static_parts.prefix,
1724
format_mutability(static_parts.mutability),
1725
- static_parts.ident,
+ rewrite_ident(context, static_parts.ident),
1726
colon,
1727
);
1728
// 2 = " =".len()
tests/target/raw_identifiers.rs
@@ -6,6 +6,9 @@
6
7
use r#foo as r#alias_foo;
8
9
+// https://github.com/rust-lang/rustfmt/issues/3837
10
+pub(crate) static r#break: &'static str = "foo";
11
+
12
fn main() {
13
#[r#attr]
14
r#foo::r#bar();
0 commit comments