-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a3cd0a
commit 2339d78
Showing
34 changed files
with
408 additions
and
374 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
45 changes: 23 additions & 22 deletions
45
tests/snapshots/output/changes_grid_header_numbers.snapshot.txt
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
───────┬──────────────────────────────────────────────────────────────────────── | ||
│ File: sample.rs | ||
───────┼──────────────────────────────────────────────────────────────────────── | ||
1 │ struct Rectangle { | ||
2 │ width: u32, | ||
3 │ height: u32, | ||
4 │ } | ||
5 │ | ||
6 _ │ fn main() { | ||
7 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
8 │ | ||
9 │ println!( | ||
10 ~ │ "The perimeter of the rectangle is {} pixels.", | ||
11 ~ │ perimeter(&rect1) | ||
12 │ ); | ||
13 + │ println!(r#"This line contains invalid utf8: "�����"#; | ||
14 │ } | ||
15 │ | ||
16 │ fn area(rectangle: &Rectangle) -> u32 { | ||
17 │ rectangle.width * rectangle.height | ||
18 │ } | ||
19 + │ | ||
20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
21 + │ (rectangle.width + rectangle.height) * 2 | ||
22 + │ } | ||
1 + │ /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 │ struct Rectangle { | ||
3 │ width: u32, | ||
4 │ height: u32, | ||
5 │ } | ||
6 │ | ||
7 _ │ fn main() { | ||
8 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 │ | ||
10 │ println!( | ||
11 ~ │ "The perimeter of the rectangle is {} pixels.", | ||
12 ~ │ perimeter(&rect1) | ||
13 │ ); | ||
14 + │ println!(r#"This line contains invalid utf8: "�����"#; | ||
15 │ } | ||
16 │ | ||
17 │ fn area(rectangle: &Rectangle) -> u32 { | ||
18 │ rectangle.width * rectangle.height | ||
19 │ } | ||
20 + │ | ||
21 + │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 + │ (rectangle.width + rectangle.height) * 2 | ||
23 + │ } | ||
───────┴──────────────────────────────────────────────────────────────────────── |
45 changes: 23 additions & 22 deletions
45
tests/snapshots/output/changes_grid_header_numbers_rule.snapshot.txt
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
───────┬──────────────────────────────────────────────────────────────────────── | ||
│ File: sample.rs | ||
───────┼──────────────────────────────────────────────────────────────────────── | ||
1 │ struct Rectangle { | ||
2 │ width: u32, | ||
3 │ height: u32, | ||
4 │ } | ||
5 │ | ||
6 _ │ fn main() { | ||
7 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
8 │ | ||
9 │ println!( | ||
10 ~ │ "The perimeter of the rectangle is {} pixels.", | ||
11 ~ │ perimeter(&rect1) | ||
12 │ ); | ||
13 + │ println!(r#"This line contains invalid utf8: "�����"#; | ||
14 │ } | ||
15 │ | ||
16 │ fn area(rectangle: &Rectangle) -> u32 { | ||
17 │ rectangle.width * rectangle.height | ||
18 │ } | ||
19 + │ | ||
20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
21 + │ (rectangle.width + rectangle.height) * 2 | ||
22 + │ } | ||
1 + │ /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 │ struct Rectangle { | ||
3 │ width: u32, | ||
4 │ height: u32, | ||
5 │ } | ||
6 │ | ||
7 _ │ fn main() { | ||
8 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 │ | ||
10 │ println!( | ||
11 ~ │ "The perimeter of the rectangle is {} pixels.", | ||
12 ~ │ perimeter(&rect1) | ||
13 │ ); | ||
14 + │ println!(r#"This line contains invalid utf8: "�����"#; | ||
15 │ } | ||
16 │ | ||
17 │ fn area(rectangle: &Rectangle) -> u32 { | ||
18 │ rectangle.width * rectangle.height | ||
19 │ } | ||
20 + │ | ||
21 + │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 + │ (rectangle.width + rectangle.height) * 2 | ||
23 + │ } | ||
───────┴──────────────────────────────────────────────────────────────────────── |
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 |
---|---|---|
@@ -1,24 +1,25 @@ | ||
───────┬──────────────────────────────────────────────────────────────────────── | ||
1 │ struct Rectangle { | ||
2 │ width: u32, | ||
3 │ height: u32, | ||
4 │ } | ||
5 │ | ||
6 _ │ fn main() { | ||
7 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
8 │ | ||
9 │ println!( | ||
10 ~ │ "The perimeter of the rectangle is {} pixels.", | ||
11 ~ │ perimeter(&rect1) | ||
12 │ ); | ||
13 + │ println!(r#"This line contains invalid utf8: "�����"#; | ||
14 │ } | ||
15 │ | ||
16 │ fn area(rectangle: &Rectangle) -> u32 { | ||
17 │ rectangle.width * rectangle.height | ||
18 │ } | ||
19 + │ | ||
20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
21 + │ (rectangle.width + rectangle.height) * 2 | ||
22 + │ } | ||
1 + │ /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 │ struct Rectangle { | ||
3 │ width: u32, | ||
4 │ height: u32, | ||
5 │ } | ||
6 │ | ||
7 _ │ fn main() { | ||
8 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 │ | ||
10 │ println!( | ||
11 ~ │ "The perimeter of the rectangle is {} pixels.", | ||
12 ~ │ perimeter(&rect1) | ||
13 │ ); | ||
14 + │ println!(r#"This line contains invalid utf8: "�����"#; | ||
15 │ } | ||
16 │ | ||
17 │ fn area(rectangle: &Rectangle) -> u32 { | ||
18 │ rectangle.width * rectangle.height | ||
19 │ } | ||
20 + │ | ||
21 + │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 + │ (rectangle.width + rectangle.height) * 2 | ||
23 + │ } | ||
───────┴──────────────────────────────────────────────────────────────────────── |
45 changes: 23 additions & 22 deletions
45
tests/snapshots/output/changes_grid_numbers_rule.snapshot.txt
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 |
---|---|---|
@@ -1,24 +1,25 @@ | ||
───────┬──────────────────────────────────────────────────────────────────────── | ||
1 │ struct Rectangle { | ||
2 │ width: u32, | ||
3 │ height: u32, | ||
4 │ } | ||
5 │ | ||
6 _ │ fn main() { | ||
7 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
8 │ | ||
9 │ println!( | ||
10 ~ │ "The perimeter of the rectangle is {} pixels.", | ||
11 ~ │ perimeter(&rect1) | ||
12 │ ); | ||
13 + │ println!(r#"This line contains invalid utf8: "�����"#; | ||
14 │ } | ||
15 │ | ||
16 │ fn area(rectangle: &Rectangle) -> u32 { | ||
17 │ rectangle.width * rectangle.height | ||
18 │ } | ||
19 + │ | ||
20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
21 + │ (rectangle.width + rectangle.height) * 2 | ||
22 + │ } | ||
1 + │ /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 │ struct Rectangle { | ||
3 │ width: u32, | ||
4 │ height: u32, | ||
5 │ } | ||
6 │ | ||
7 _ │ fn main() { | ||
8 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 │ | ||
10 │ println!( | ||
11 ~ │ "The perimeter of the rectangle is {} pixels.", | ||
12 ~ │ perimeter(&rect1) | ||
13 │ ); | ||
14 + │ println!(r#"This line contains invalid utf8: "�����"#; | ||
15 │ } | ||
16 │ | ||
17 │ fn area(rectangle: &Rectangle) -> u32 { | ||
18 │ rectangle.width * rectangle.height | ||
19 │ } | ||
20 + │ | ||
21 + │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 + │ (rectangle.width + rectangle.height) * 2 | ||
23 + │ } | ||
───────┴──────────────────────────────────────────────────────────────────────── |
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
45 changes: 23 additions & 22 deletions
45
tests/snapshots/output/changes_header_numbers.snapshot.txt
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
File: sample.rs | ||
1 struct Rectangle { | ||
2 width: u32, | ||
3 height: u32, | ||
4 } | ||
5 | ||
6 _ fn main() { | ||
7 let rect1 = Rectangle { width: 30, height: 50 }; | ||
8 | ||
9 println!( | ||
10 ~ "The perimeter of the rectangle is {} pixels.", | ||
11 ~ perimeter(&rect1) | ||
12 ); | ||
13 + println!(r#"This line contains invalid utf8: "�����"#; | ||
14 } | ||
15 | ||
16 fn area(rectangle: &Rectangle) -> u32 { | ||
17 rectangle.width * rectangle.height | ||
18 } | ||
19 + | ||
20 + fn perimeter(rectangle: &Rectangle) -> u32 { | ||
21 + (rectangle.width + rectangle.height) * 2 | ||
22 + } | ||
1 + /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 struct Rectangle { | ||
3 width: u32, | ||
4 height: u32, | ||
5 } | ||
6 | ||
7 _ fn main() { | ||
8 let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 | ||
10 println!( | ||
11 ~ "The perimeter of the rectangle is {} pixels.", | ||
12 ~ perimeter(&rect1) | ||
13 ); | ||
14 + println!(r#"This line contains invalid utf8: "�����"#; | ||
15 } | ||
16 | ||
17 fn area(rectangle: &Rectangle) -> u32 { | ||
18 rectangle.width * rectangle.height | ||
19 } | ||
20 + | ||
21 + fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 + (rectangle.width + rectangle.height) * 2 | ||
23 + } |
45 changes: 23 additions & 22 deletions
45
tests/snapshots/output/changes_header_numbers_rule.snapshot.txt
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
File: sample.rs | ||
1 struct Rectangle { | ||
2 width: u32, | ||
3 height: u32, | ||
4 } | ||
5 | ||
6 _ fn main() { | ||
7 let rect1 = Rectangle { width: 30, height: 50 }; | ||
8 | ||
9 println!( | ||
10 ~ "The perimeter of the rectangle is {} pixels.", | ||
11 ~ perimeter(&rect1) | ||
12 ); | ||
13 + println!(r#"This line contains invalid utf8: "�����"#; | ||
14 } | ||
15 | ||
16 fn area(rectangle: &Rectangle) -> u32 { | ||
17 rectangle.width * rectangle.height | ||
18 } | ||
19 + | ||
20 + fn perimeter(rectangle: &Rectangle) -> u32 { | ||
21 + (rectangle.width + rectangle.height) * 2 | ||
22 + } | ||
1 + /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 struct Rectangle { | ||
3 width: u32, | ||
4 height: u32, | ||
5 } | ||
6 | ||
7 _ fn main() { | ||
8 let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 | ||
10 println!( | ||
11 ~ "The perimeter of the rectangle is {} pixels.", | ||
12 ~ perimeter(&rect1) | ||
13 ); | ||
14 + println!(r#"This line contains invalid utf8: "�����"#; | ||
15 } | ||
16 | ||
17 fn area(rectangle: &Rectangle) -> u32 { | ||
18 rectangle.width * rectangle.height | ||
19 } | ||
20 + | ||
21 + fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 + (rectangle.width + rectangle.height) * 2 | ||
23 + } |
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
1 struct Rectangle { | ||
2 width: u32, | ||
3 height: u32, | ||
4 } | ||
5 | ||
6 _ fn main() { | ||
7 let rect1 = Rectangle { width: 30, height: 50 }; | ||
8 | ||
9 println!( | ||
10 ~ "The perimeter of the rectangle is {} pixels.", | ||
11 ~ perimeter(&rect1) | ||
12 ); | ||
13 + println!(r#"This line contains invalid utf8: "�����"#; | ||
14 } | ||
15 | ||
16 fn area(rectangle: &Rectangle) -> u32 { | ||
17 rectangle.width * rectangle.height | ||
18 } | ||
19 + | ||
20 + fn perimeter(rectangle: &Rectangle) -> u32 { | ||
21 + (rectangle.width + rectangle.height) * 2 | ||
22 + } | ||
1 + /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 struct Rectangle { | ||
3 width: u32, | ||
4 height: u32, | ||
5 } | ||
6 | ||
7 _ fn main() { | ||
8 let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 | ||
10 println!( | ||
11 ~ "The perimeter of the rectangle is {} pixels.", | ||
12 ~ perimeter(&rect1) | ||
13 ); | ||
14 + println!(r#"This line contains invalid utf8: "�����"#; | ||
15 } | ||
16 | ||
17 fn area(rectangle: &Rectangle) -> u32 { | ||
18 rectangle.width * rectangle.height | ||
19 } | ||
20 + | ||
21 + fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 + (rectangle.width + rectangle.height) * 2 | ||
23 + } |
Oops, something went wrong.