forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#87480 - GuillaumeGomez:rollup-3ly8t5d, r=Guil…
…laumeGomez Rollup of 8 pull requests Successful merges: - rust-lang#87436 (Suggest `;` on parse error where applicable) - rust-lang#87444 (Flatten nested `format!` calls) - rust-lang#87447 (Miri: santiy check that null pointer can never have an AllocId) - rust-lang#87457 (freebsd remove compiler workaround.) - rust-lang#87458 (Fix help message for modification to &T created by &{t}) - rust-lang#87464 (Remove unnecessary `structhead` parameter from `render_union`) - rust-lang#87473 (Notify the Rust 2021 edition working group in zulip of edition bugs) - rust-lang#87474 (Add missing whitespace after attribute in HTML template) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
15 changed files
with
174 additions
and
81 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
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,10 @@ | ||
// run-rustfix | ||
// Parser should know when a semicolon is missing. | ||
// https://github.com/rust-lang/rust/issues/87197 | ||
|
||
fn main() { | ||
let x = 100; //~ ERROR: expected `;` | ||
println!("{}", x); //~ ERROR: expected `;` | ||
let y = 200; //~ ERROR: expected `;` | ||
println!("{}", y); | ||
} |
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,10 @@ | ||
// run-rustfix | ||
// Parser should know when a semicolon is missing. | ||
// https://github.com/rust-lang/rust/issues/87197 | ||
|
||
fn main() { | ||
let x = 100 //~ ERROR: expected `;` | ||
println!("{}", x) //~ ERROR: expected `;` | ||
let y = 200 //~ ERROR: expected `;` | ||
println!("{}", y); | ||
} |
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 @@ | ||
error: expected `;`, found `println` | ||
--> $DIR/issue-87197-missing-semicolon.rs:6:16 | ||
| | ||
LL | let x = 100 | ||
| ^ help: add `;` here | ||
LL | println!("{}", x) | ||
| ------- unexpected token | ||
|
||
error: expected `;`, found keyword `let` | ||
--> $DIR/issue-87197-missing-semicolon.rs:7:22 | ||
| | ||
LL | println!("{}", x) | ||
| ^ help: add `;` here | ||
LL | let y = 200 | ||
| --- unexpected token | ||
|
||
error: expected `;`, found `println` | ||
--> $DIR/issue-87197-missing-semicolon.rs:8:16 | ||
| | ||
LL | let y = 200 | ||
| ^ help: add `;` here | ||
LL | println!("{}", y); | ||
| ------- unexpected token | ||
|
||
error: aborting due to 3 previous errors | ||
|
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,5 +1,5 @@ | ||
fn main() { | ||
assert_eq!(1, 2) | ||
assert_eq!(3, 4) //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `assert_eq` | ||
assert_eq!(1, 2) //~ ERROR: expected `;` | ||
assert_eq!(3, 4) //~ ERROR: expected `;` | ||
println!("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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `assert_eq` | ||
--> $DIR/macros-no-semicolon.rs:3:5 | ||
error: expected `;`, found `assert_eq` | ||
--> $DIR/macros-no-semicolon.rs:2:21 | ||
| | ||
LL | assert_eq!(1, 2) | ||
| - expected one of `.`, `;`, `?`, `}`, or an operator | ||
| ^ help: add `;` here | ||
LL | assert_eq!(3, 4) | ||
| ^^^^^^^^^ unexpected token | ||
| --------- unexpected token | ||
|
||
error: aborting due to previous error | ||
error: expected `;`, found `println` | ||
--> $DIR/macros-no-semicolon.rs:3:21 | ||
| | ||
LL | assert_eq!(3, 4) | ||
| ^ help: add `;` here | ||
LL | println!("hello"); | ||
| ------- unexpected token | ||
|
||
error: aborting due to 2 previous errors | ||
|
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