Skip to content

Rollup of 10 pull requests #104671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 24 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
089475a
Fix doc example for `wrapping_abs`
TethysSvensson Nov 14, 2022
8b5bfaf
rustdoc JSON: Use `Function` everywhere and remove `Method`
Enselic Nov 16, 2022
e4f618f
Do not need to account for overflow in predicate_can_apply
compiler-errors Nov 11, 2022
3722788
Drive-by: Don't manually call evaluate_obligation_no_overflow
compiler-errors Nov 11, 2022
65b3a30
Add fatal overflow test
compiler-errors Nov 18, 2022
67e746c
Workaround for private global symbol issue
dpaoliello Nov 16, 2022
c36ff28
drive-by: PolyExistentialPredicate
compiler-errors Nov 19, 2022
3338244
deduplicate constant evaluation in cranelift backend
RalfJung Nov 19, 2022
6f1c7b2
Revert "Update CI to use Android NDK r25b"
Nov 20, 2022
00bf999
Incorporate review feedback
TethysSvensson Nov 20, 2022
30b7e44
rustdoc JSON: Clarify that `Function` is also used for methods
Enselic Nov 20, 2022
a6e09a1
Streamline deriving on packed structs.
nnethercote Nov 21, 2022
417ed9f
Remove `ref` patterns from `rustc_ast`
WaffleLapkin Nov 16, 2022
d9f2c0b
Revert formatting changes of a test
WaffleLapkin Nov 21, 2022
2263e0d
Rollup merge of #104269 - compiler-errors:hang-in-where-clause-sugg, …
matthiaskrgr Nov 21, 2022
b938a2b
Rollup merge of #104420 - TethysSvensson:master, r=JohnTitor
matthiaskrgr Nov 21, 2022
351731d
Rollup merge of #104499 - Enselic:no-method-in-rustdoc-json, r=Guilla…
matthiaskrgr Nov 21, 2022
e9d940f
Rollup merge of #104500 - WaffleLapkin:deref-the-compiler, r=wesleywiser
matthiaskrgr Nov 21, 2022
4eb13ef
Rollup merge of #104511 - dpaoliello:privateglobalworkaround, r=micha…
matthiaskrgr Nov 21, 2022
089a7c3
Rollup merge of #104595 - compiler-errors:poly-existential-predicate,…
matthiaskrgr Nov 21, 2022
3c5c441
Rollup merge of #104605 - RalfJung:clf_consts, r=bjorn3
matthiaskrgr Nov 21, 2022
5fb1468
Rollup merge of #104628 - alex-pinkus:revert-android-ndk-upgrade, r=p…
matthiaskrgr Nov 21, 2022
6cb88b0
Rollup merge of #104662 - nnethercote:tweak-deriving-for-packed-non-c…
matthiaskrgr Nov 21, 2022
cedb127
Rollup merge of #104667 - WaffleLapkin:unfmttest, r=Dylan-DPC
matthiaskrgr Nov 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/test/ui/or-patterns/or-patterns-syntactic-pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@ accept_pat!([p | q]);
#[cfg(FALSE)]
fn or_patterns() {
// Top level of `let`:
let (A | B);
let (| A | B);
let (A | B);
let (A | B): u8;
let (A | B) = 0;
let (A | B): u8 = 0;

// Top level of `for`:
for A | B in 0 {}
for | A | B in 0 {}
for A | B in 0 {}

// Top level of `while`:
while let A | B = 0 {}
while let | A | B = 0 {}
while let A | B = 0 {}

// Top level of `if`:
if let A | B = 0 {}
if let | A | B = 0 {}
if let A | B = 0 {}

// Top level of `match` arms:
match 0 {
A | B => {}
| A | B => {}
A | B => {}
}

Expand Down