Module pat
rustc_
hir_
typeck
1.86.0-beta.7
(7824ede68 2025-03-22)
Module pat
Module Items
Structs
Enums
Constants
Functions
In crate rustc_
hir_
typeck
Modules
_match
autoderef
callee
cast
check
closure
coercion
demand
diverges
errors
expectation
expr
expr_use_visitor
fallback
fn_ctxt
gather_locals
intrinsicck
method
op
pat
place_op
rvalue_scopes
typeck_root_ctxt
upvar
writeback
Macros
type_error_struct
Structs
BreakableCtxt
CoroutineTypes
EnclosingBreakables
Enums
Needs
PlaceOp
TupleArgumentsFlag
Statics
DEFAULT_LOCALE_RESOURCE
Functions
can_coerce
fatally_break_rust
infer_type_if_missing
inspect_typeck
provide
report_unexpected_variant_res
typeck
typeck_with_inspect
used_trait_imports
rustc_hir_typeck
Module
pat
Copy item path
Settings
Help
Summary
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
🔒