forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
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#105703 - matthiaskrgr:rollup-tfpeam2, r=matth…
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#105399 (Use more LFS functions.) - rust-lang#105578 (Fix transmutes between pointers in different address spaces (e.g. fn ptrs on AVR)) - rust-lang#105598 (explain mem::forget(env_lock) in fork/exec) - rust-lang#105624 (Fix unsoundness in bootstrap cache code) - rust-lang#105630 (Add a test for rust-lang#92481) - rust-lang#105684 (Improve rustdoc markdown variable naming) - rust-lang#105697 (Remove fee1-dead from reviewers) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
13 changed files
with
150 additions
and
26 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
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,14 @@ | ||
//check-fail | ||
|
||
#![crate_type="lib"] | ||
|
||
fn r({) { | ||
Ok { //~ ERROR mismatched types [E0308] | ||
d..||_=m | ||
} | ||
} | ||
//~^^^^^ ERROR expected parameter name, found `{` | ||
//~| ERROR expected one of `,`, `:`, or `}`, found `..` | ||
//~^^^^^ ERROR cannot find value `d` in this scope [E0425] | ||
//~| ERROR cannot find value `m` in this scope [E0425] | ||
//~| ERROR variant `Result<_, _>::Ok` has no field named `d` [E0559] |
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,60 @@ | ||
error: expected parameter name, found `{` | ||
--> $DIR/issue-92481.rs:5:6 | ||
| | ||
LL | fn r({) { | ||
| ^ expected parameter name | ||
|
||
error: expected one of `,`, `:`, or `}`, found `..` | ||
--> $DIR/issue-92481.rs:5:6 | ||
| | ||
LL | fn r({) { | ||
| ^ unclosed delimiter | ||
LL | Ok { | ||
LL | d..||_=m | ||
| -^ | ||
| | | ||
| help: `}` may belong here | ||
|
||
error[E0425]: cannot find value `d` in this scope | ||
--> $DIR/issue-92481.rs:7:9 | ||
| | ||
LL | d..||_=m | ||
| ^ not found in this scope | ||
|
||
error[E0425]: cannot find value `m` in this scope | ||
--> $DIR/issue-92481.rs:7:16 | ||
| | ||
LL | d..||_=m | ||
| ^ not found in this scope | ||
|
||
error[E0559]: variant `Result<_, _>::Ok` has no field named `d` | ||
--> $DIR/issue-92481.rs:7:9 | ||
| | ||
LL | d..||_=m | ||
| ^ field does not exist | ||
--> $SRC_DIR/core/src/result.rs:LL:COL | ||
| | ||
= note: `Result<_, _>::Ok` defined here | ||
| | ||
help: `Result<_, _>::Ok` is a tuple variant, use the appropriate syntax | ||
| | ||
LL | Result<_, _>::Ok(/* fields */) | ||
| | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/issue-92481.rs:6:5 | ||
| | ||
LL | fn r({) { | ||
| - help: a return type might be missing here: `-> _` | ||
LL | / Ok { | ||
LL | | d..||_=m | ||
LL | | } | ||
| |_____^ expected `()`, found enum `Result` | ||
| | ||
= note: expected unit type `()` | ||
found enum `Result<_, _>` | ||
|
||
error: aborting due to 6 previous errors | ||
|
||
Some errors have detailed explanations: E0308, E0425, E0559. | ||
For more information about an error, try `rustc --explain E0308`. |
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