-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #124916 - matthiaskrgr:rollup-vmpmt4u, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #124777 (Fix Error Messages for `break` Inside Coroutines) - #124837 (Migrate `run-make/rustdoc-map-file` to rmake) - #124875 (Fix more ICEs in `diagnostic::on_unimplemented`) - #124908 (Handle field projections like slice indexing in invalid_reference_casting) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
18 changed files
with
417 additions
and
117 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 was deleted.
Oops, something went wrong.
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,15 @@ | ||
use run_make_support::{rustdoc, tmp_dir}; | ||
use std::process::Command; | ||
|
||
fn main() { | ||
let out_dir = tmp_dir().join("out"); | ||
rustdoc() | ||
.input("foo.rs") | ||
.arg("-Zunstable-options") | ||
.arg("--generate-redirect-map") | ||
.output(&out_dir) | ||
.run(); | ||
// FIXME (GuillaumeGomez): Port the python script to Rust as well. | ||
let python = std::env::var("PYTHON").unwrap_or("python".into()); | ||
assert!(Command::new(python).arg("validate_json.py").arg(&out_dir).status().unwrap().success()); | ||
} |
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
8 changes: 4 additions & 4 deletions
8
tests/ui/async-await/async-block-control-flow-static-semantics.stderr
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 @@ | ||
//@ edition: 2024 | ||
//@ compile-flags: -Z unstable-options | ||
|
||
#![feature(gen_blocks)] | ||
#![feature(async_closure)] | ||
|
||
async fn async_fn() { | ||
break; //~ ERROR `break` inside `async` function | ||
} | ||
|
||
gen fn gen_fn() { | ||
break; //~ ERROR `break` inside `gen` function | ||
} | ||
|
||
async gen fn async_gen_fn() { | ||
break; //~ ERROR `break` inside `async gen` function | ||
} | ||
|
||
fn main() { | ||
let _ = async { break; }; //~ ERROR `break` inside `async` block | ||
let _ = async || { break; }; //~ ERROR `break` inside `async` closure | ||
|
||
let _ = gen { break; }; //~ ERROR `break` inside `gen` block | ||
|
||
let _ = async gen { break; }; //~ ERROR `break` inside `async gen` block | ||
} |
Oops, something went wrong.