fix: support raw prefix identifiers in statics
This commit is contained in:
parent
383306e5fe
commit
ed697c9347
@ -1722,7 +1722,7 @@ fn rewrite_static(
|
||||
static_parts.defaultness.map_or("", format_defaultness),
|
||||
static_parts.prefix,
|
||||
format_mutability(static_parts.mutability),
|
||||
static_parts.ident,
|
||||
rewrite_ident(context, static_parts.ident),
|
||||
colon,
|
||||
);
|
||||
// 2 = " =".len()
|
||||
|
@ -6,6 +6,9 @@
|
||||
|
||||
use r#foo as r#alias_foo;
|
||||
|
||||
// https://github.com/rust-lang/rustfmt/issues/3837
|
||||
pub(crate) static r#break: &'static str = "foo";
|
||||
|
||||
fn main() {
|
||||
#[r#attr]
|
||||
r#foo::r#bar();
|
||||
|
Loading…
Reference in New Issue
Block a user