mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 05:33:41 +00:00
Merge pull request #3141 from dfyz/issue-2810
Try to fix formatting failures on Windows (issue #2810)
This commit is contained in:
commit
1f64f4012f
@ -1347,7 +1347,7 @@ impl MacroBranch {
|
||||
.fold(
|
||||
(String::new(), true),
|
||||
|(mut s, need_indent), (i, (kind, ref l))| {
|
||||
if !l.is_empty()
|
||||
if !is_empty_line(l)
|
||||
&& need_indent
|
||||
&& !new_body_snippet.is_line_non_formatted(i + 1)
|
||||
{
|
||||
|
14
tests/target/issue-2810.rs
Normal file
14
tests/target/issue-2810.rs
Normal file
@ -0,0 +1,14 @@
|
||||
// rustfmt-newline_style: Windows
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! hmmm___ffi_error {
|
||||
($result:ident) => {
|
||||
pub struct $result {
|
||||
success: bool,
|
||||
}
|
||||
|
||||
impl $result {
|
||||
pub fn foo(self) {}
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user