diff options
| author | bors <bors@rust-lang.org> | 2025-06-10 23:54:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-06-10 23:54:45 +0000 |
| commit | 1c047506f94cd2d05228eb992b0a6bbed1942349 (patch) | |
| tree | 7f0b73f2eae9b6792a19bf5fdde9d5433d6d79b8 /tests/ui/async-await/async-block-control-flow-static-semantics.stderr | |
| parent | 1677d46cb128cc8f285dbd32b0dc4d7a46437050 (diff) | |
| parent | 7f4093e78bbddae798e3eaf4d713da75c6315877 (diff) | |
| download | rust-1c047506f94cd2d05228eb992b0a6bbed1942349.tar.gz rust-1c047506f94cd2d05228eb992b0a6bbed1942349.zip | |
Auto merge of #141883 - oli-obk:remove-check-mod-loops, r=nnethercote
Remove check_mod_loops query and run the checks per-body instead This analysis is older than my first rustc contribution I believe. It was never querified. Ideally we'd merge it into the analysis happening within typeck anyway (typeck just uses span_delayed_bug instead of erroring), but I didn't want to do that within this PR that also moves things around and subtly changes diagnostic ordering.
Diffstat (limited to 'tests/ui/async-await/async-block-control-flow-static-semantics.stderr')
| -rw-r--r-- | tests/ui/async-await/async-block-control-flow-static-semantics.stderr | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/ui/async-await/async-block-control-flow-static-semantics.stderr b/tests/ui/async-await/async-block-control-flow-static-semantics.stderr index 4ed15a942c6..b64690bae6c 100644 --- a/tests/ui/async-await/async-block-control-flow-static-semantics.stderr +++ b/tests/ui/async-await/async-block-control-flow-static-semantics.stderr @@ -1,19 +1,3 @@ -error[E0267]: `break` inside `async` block - --> $DIR/async-block-control-flow-static-semantics.rs:32:9 - | -LL | async { - | ----- enclosing `async` block -LL | break 0u8; - | ^^^^^^^^^ cannot `break` inside `async` block - -error[E0267]: `break` inside `async` block - --> $DIR/async-block-control-flow-static-semantics.rs:39:13 - | -LL | async { - | ----- enclosing `async` block -LL | break 0u8; - | ^^^^^^^^^ cannot `break` inside `async` block - error[E0308]: mismatched types --> $DIR/async-block-control-flow-static-semantics.rs:21:58 | @@ -50,6 +34,22 @@ LL | let _: &dyn Future<Output = ()> = █ | = note: required for the cast from `&{async block@$DIR/async-block-control-flow-static-semantics.rs:14:17: 14:22}` to `&dyn Future<Output = ()>` +error[E0267]: `break` inside `async` block + --> $DIR/async-block-control-flow-static-semantics.rs:32:9 + | +LL | async { + | ----- enclosing `async` block +LL | break 0u8; + | ^^^^^^^^^ cannot `break` inside `async` block + +error[E0267]: `break` inside `async` block + --> $DIR/async-block-control-flow-static-semantics.rs:39:13 + | +LL | async { + | ----- enclosing `async` block +LL | break 0u8; + | ^^^^^^^^^ cannot `break` inside `async` block + error[E0308]: mismatched types --> $DIR/async-block-control-flow-static-semantics.rs:49:44 | |
