-
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 #69360 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] beta backports This backports the following PRs: * Revert "Remove `checked_add` in `Layout::repeat`" #69241 * Do not ICE when encountering `yield` inside `async` block #69175 * Fix MIR typeck soundness holes #69145 * Fix extra subslice lowering #69128 * Correct ICE caused by macros generating invalid spans. #68611 * Make conflicting_repr_hints a deny-by-default c-future-compat lint #68586
- Loading branch information
Showing
27 changed files
with
344 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
# This script deletes some of the Azure-provided artifacts. We don't use these, | ||
# and disk space is at a premium on our builders. | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" | ||
|
||
# All the Linux builds happen inside Docker. | ||
if isLinux; then | ||
# 6.7GB | ||
sudo rm -rf /opt/ghc | ||
# 16GB | ||
sudo rm -rf /usr/share/dotnet | ||
fi |
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
18 changes: 18 additions & 0 deletions
18
src/test/ui/array-slice-vec/issue-69103-extra-binding-subslice.rs
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,18 @@ | ||
// We used to not lower the extra `b @ ..` into `b @ _` which meant that no type | ||
// was registered for the binding `b` although it passed through resolve. | ||
// This resulted in an ICE (#69103). | ||
|
||
fn main() { | ||
let [a @ .., b @ ..] = &mut [1, 2]; | ||
//~^ ERROR `..` can only be used once per slice pattern | ||
b; | ||
|
||
let [.., c @ ..] = [1, 2]; | ||
//~^ ERROR `..` can only be used once per slice pattern | ||
c; | ||
|
||
// This never ICEd, but let's make sure it won't regress either. | ||
let (.., d @ ..) = (1, 2); | ||
//~^ ERROR `..` patterns are not allowed here | ||
d; | ||
} |
26 changes: 26 additions & 0 deletions
26
src/test/ui/array-slice-vec/issue-69103-extra-binding-subslice.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
error: `..` can only be used once per slice pattern | ||
--> $DIR/issue-69103-extra-binding-subslice.rs:6:22 | ||
| | ||
LL | let [a @ .., b @ ..] = &mut [1, 2]; | ||
| -- ^^ can only be used once per slice pattern | ||
| | | ||
| previously used here | ||
|
||
error: `..` can only be used once per slice pattern | ||
--> $DIR/issue-69103-extra-binding-subslice.rs:10:18 | ||
| | ||
LL | let [.., c @ ..] = [1, 2]; | ||
| -- ^^ can only be used once per slice pattern | ||
| | | ||
| previously used here | ||
|
||
error: `..` patterns are not allowed here | ||
--> $DIR/issue-69103-extra-binding-subslice.rs:15:18 | ||
| | ||
LL | let (.., d @ ..) = (1, 2); | ||
| ^^ | ||
| | ||
= note: only allowed in tuple, tuple struct, and slice patterns | ||
|
||
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
Oops, something went wrong.