-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not normalize vertical spaces unless they are between items (#4295)
- Loading branch information
Showing
16 changed files
with
123 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// rustfmt-blank_lines_lower_bound: 2 | ||
// rustfmt-blank_lines_upper_bound: 3 | ||
|
||
#[foo] | ||
fn foo() { | ||
println!("a"); | ||
} | ||
#[bar] | ||
#[barbar] | ||
fn bar() { | ||
println!("b"); | ||
println!("c"); | ||
} | ||
struct Foo {} | ||
enum Bar {} | ||
use std::io; | ||
extern crate foobar; | ||
extern crate foo; | ||
extern crate bar; | ||
trait Foo = Bar; | ||
impl Foo {} | ||
mac!(); | ||
#[temp] | ||
use std::fs; | ||
use std::alloc; | ||
use std::ascii; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ fn main() { | |
single_line_fit = 5; | ||
single_lit_fit >>= 10; | ||
|
||
|
||
// #2791 | ||
let x = 2; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// rustfmt-blank_lines_lower_bound: 2 | ||
// rustfmt-blank_lines_upper_bound: 3 | ||
|
||
|
||
#[foo] | ||
fn foo() { | ||
println!("a"); | ||
} | ||
|
||
|
||
#[bar] | ||
#[barbar] | ||
fn bar() { | ||
println!("b"); | ||
println!("c"); | ||
} | ||
|
||
|
||
struct Foo {} | ||
|
||
|
||
enum Bar {} | ||
|
||
|
||
use std::io; | ||
|
||
|
||
extern crate bar; | ||
extern crate foo; | ||
extern crate foobar; | ||
|
||
|
||
trait Foo = Bar; | ||
|
||
|
||
impl Foo {} | ||
|
||
|
||
mac!(); | ||
|
||
|
||
use std::alloc; | ||
use std::ascii; | ||
#[temp] | ||
use std::fs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,7 @@ fn main() { | |
println!("{}", i); | ||
} | ||
|
||
|
||
while true { | ||
hello(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters