Skip to main content
Module match_pair
rustc_
mir_
build
1.98.0-nightly
(9e2abe0c6 2026-06-16)
Module match_
pair
Module Items
Structs
Functions
In rustc_
mir_
build::
builder::
matches
rustc_mir_build
::
builder
::
matches
Module
match_
pair
Copy item path
Source
Structs
§
Inter
Pat
🔒
“Intermediate pattern”, a partly-lowered THIR
Pat
that has not yet been squashed into a forest of refutable
MatchPairTree
nodes.
Functions
§
prefix_
slice_
suffix
🔒
For an array or slice pattern’s subpatterns (prefix/slice/suffix), returns a list of those subpatterns, each paired with a suitably-projected
PlaceBuilder
.
squash_
inter_
pat
🔒
Recursively squashes an
InterPat
into a forest of refutable
MatchPairTree
nodes, while accumulating ascriptions and bindings.