-
Notifications
You must be signed in to change notification settings - Fork 13k
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 #111820 - matthiaskrgr:rollup-9sb2lw9, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #111745 (Fix overflow in error emitter) - #111770 (Read beta version from the version file if building from a source tarball) - #111797 (Migrate GUI colors test to original CSS color format) - #111809 (Unset MIRI_BLESS for mir-opt-level 4 miri tests) - #111817 (Migrate GUI colors test to original CSS color format) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
11 changed files
with
180 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fn generate_setter() { | ||
String::with_capacity( | ||
//~^ ERROR this function takes 1 argument but 3 arguments were supplied | ||
generate_setter, | ||
r#" | ||
pub(crate) struct Person<T: Clone> {} | ||
"#, | ||
r#""#, | ||
); | ||
} | ||
|
||
fn main() {} |
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,31 @@ | ||
error[E0061]: this function takes 1 argument but 3 arguments were supplied | ||
--> $DIR/issue-109854.rs:2:5 | ||
| | ||
LL | String::with_capacity( | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
... | ||
LL | / r#" | ||
LL | | pub(crate) struct Person<T: Clone> {} | ||
LL | | "#, | ||
| |__- unexpected argument of type `&'static str` | ||
LL | r#""#, | ||
| ----- unexpected argument of type `&'static str` | ||
| | ||
note: expected `usize`, found fn item | ||
--> $DIR/issue-109854.rs:4:5 | ||
| | ||
LL | generate_setter, | ||
| ^^^^^^^^^^^^^^^ | ||
= note: expected type `usize` | ||
found fn item `fn() {generate_setter}` | ||
note: associated function defined here | ||
--> $SRC_DIR/alloc/src/string.rs:LL:COL | ||
help: remove the extra arguments | ||
| | ||
LL - generate_setter, | ||
LL + /* usize */, | ||
| | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0061`. |
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,5 @@ | ||
fn L(]{match | ||
(; {` | ||
//~^^ ERROR mismatched closing delimiter | ||
//~^^ ERROR unknown start of token | ||
//~ ERROR this file contains an unclosed delimiter |
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,36 @@ | ||
error: unknown start of token: ` | ||
--> $DIR/issue-94171.rs:2:5 | ||
| | ||
LL | (; {` | ||
| ^ | ||
| | ||
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not | ||
| | ||
LL | (; {' | ||
| ~ | ||
|
||
error: mismatched closing delimiter: `]` | ||
--> $DIR/issue-94171.rs:1:5 | ||
| | ||
LL | fn L(]{match | ||
| ^^ mismatched closing delimiter | ||
| | | ||
| unclosed delimiter | ||
|
||
error: this file contains an unclosed delimiter | ||
--> $DIR/issue-94171.rs:5:52 | ||
| | ||
LL | fn L(]{match | ||
| -- unclosed delimiter | ||
| | | ||
| missing open `[` for this delimiter | ||
LL | (; {` | ||
| - - unclosed delimiter | ||
| | | ||
| unclosed delimiter | ||
... | ||
LL | | ||
| ^ | ||
|
||
error: aborting due to 3 previous errors | ||
|