Skip to content

Commit 986e55a

Browse files
Fix rustfmt bug
rustfmt will (apparently) eat raw identifiers inside macros when formatting. This prevents that.
1 parent 12102db commit 986e55a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/macros/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ macro_rules! matches {
326326
#[stable(feature = "rust1", since = "1.0.0")]
327327
#[rustc_deprecated(since = "1.39.0", reason = "use the `?` operator instead")]
328328
#[doc(alias = "?")]
329+
#[rustfmt::skip] // rustfmt will eat the raw identifer in the r#try! below.
329330
macro_rules! r#try {
330331
($expr:expr) => {
331332
match $expr {
@@ -336,7 +337,7 @@ macro_rules! r#try {
336337
}
337338
};
338339
($expr:expr,) => {
339-
$crate::try!($expr)
340+
$crate::r#try!($expr)
340341
};
341342
}
342343

0 commit comments

Comments
 (0)