Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
114dd20
Un-unsafe the `StableOrd` trait
eggyal Jun 12, 2024
a264bff
Mark assoc tys live only if the trait is live
mu001999 Jun 18, 2024
dd557d8
Add a test demonstrating that RPITITs cant use precise capturing
compiler-errors Jun 20, 2024
c39b86a
Fix a span in `parse_ty_bare_fn`.
nnethercote Jun 17, 2024
0e73e70
Ensure careful consideration is given by impls
eggyal Jun 22, 2024
594fa01
not use offset when there is not ends with brace
bvanjoi Jun 23, 2024
a2298a6
Do not ICE when suggesting dereferencing closure arg
estebank Jun 24, 2024
6521c39
Deny use<> for RPITITs
compiler-errors Jun 20, 2024
553a690
Specify target specific linker for riscv64gc-gnu job
Hoverbear Jun 24, 2024
26677eb
don't suggest awaiting type expr patterns
SparkyPotato Jun 24, 2024
8016940
Tweak a confusing comment in `create_match_candidates`
Zalathar Jun 24, 2024
83a7b8f
Rollup merge of #126326 - eggyal:ununsafe-StableOrd, r=michaelwoerister
compiler-errors Jun 25, 2024
50c1fda
Rollup merge of #126618 - mu001999-contrib:dead/enhance, r=pnkfelix
compiler-errors Jun 25, 2024
f9a58c6
Rollup merge of #126724 - nnethercote:fix-parse_ty_bare_fn-span, r=co…
compiler-errors Jun 25, 2024
0e91505
Rollup merge of #126746 - compiler-errors:no-rpitit, r=oli-obk
compiler-errors Jun 25, 2024
f841558
Rollup merge of #126868 - bvanjoi:fix-126764, r=davidtwco
compiler-errors Jun 25, 2024
6c39e85
Rollup merge of #126884 - estebank:issue-125634, r=Nadrieril
compiler-errors Jun 25, 2024
7f8ba07
Rollup merge of #126915 - SparkyPotato:fix-126903, r=compiler-errors
compiler-errors Jun 25, 2024
72965db
Rollup merge of #126916 - ferrocene:hoverbear/riscv64gc-gnu-specify-l…
compiler-errors Jun 25, 2024
a765000
Rollup merge of #126926 - Zalathar:candidate-per-arm, r=Nadrieril
compiler-errors Jun 25, 2024
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
Prev Previous commit
Next Next commit
Tweak a confusing comment in create_match_candidates
  • Loading branch information
Zalathar committed Jun 25, 2024
commit 8016940ef41b1245aecf9eb19c02b85f45dcd133
7 changes: 5 additions & 2 deletions compiler/rustc_mir_build/src/build/matches/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,11 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
where
'a: 'pat,
{
// Assemble a list of candidates: there is one candidate per pattern,
// which means there may be more than one candidate *per arm*.
// Assemble the initial list of candidates. These top-level candidates
// are 1:1 with the original match arms, but other parts of match
// lowering also introduce subcandidates (for subpatterns), and will
// also flatten candidates in some cases. So in general a list of
// candidates does _not_ necessarily correspond to a list of arms.
arms.iter()
.copied()
.map(|arm| {
Expand Down