rustc_
hir_
typeck
1.87.0-nightly
(aa8f0fd71 2025-03-23)
Module pat
Module Items
Structs
Enums
Constants
Functions
In crate rustc_
hir_
typeck
rustc_hir_typeck
Module
pat
Copy item path
Source
Structs
ยง
PatInfo
๐
TopInfo
๐
Information about the expected type at the top level of type checking a pattern.
Enums
ยง
Adjust
Mode
๐
Mode for adjusting the expected type and binding mode.
Inherited
RefMatch
Rule
๐
Variations on RFC 3627โs Rule 4: when do reference patterns match against inherited references?
Mutbl
Cap
๐
ref mut
bindings (explicit or match-ergonomics) are not allowed behind an
&
reference. Normally, the borrow checker enforces this, but for (currently experimental) match ergonomics, we track this when typing patterns for two purposes:
Constants
ยง
CANNOT_
IMPLICITLY_
DEREF_
POINTER_
TRAIT_
OBJ
๐
Functions
ยง
is_
number
๐