Expand description
Automatic migration of Rust 2021 patterns to a form valid in both Editions 2021 and 2024.
Re-exportsยง
use rustc_data_structures::fx::FxIndexMap;๐use rustc_errors::Applicability;๐use rustc_errors::Diag;๐use rustc_errors::MultiSpan;๐use rustc_errors::pluralize;๐use rustc_hir::BindingMode;๐use rustc_hir::ByRef;๐use rustc_hir::HirId;๐use rustc_hir::Mutability;๐use rustc_lint_defs::builtin::RUST_2024_INCOMPATIBLE_PAT;๐use rustc_middle::ty;๐use rustc_middle::ty::Rust2024IncompatiblePatInfo;๐use rustc_middle::ty::TyCtxt;๐use rustc_span::Ident;๐use rustc_span::Span;๐
Structsยง
- PatMigration ๐
- For patterns flagged for migration during HIR typeck, this handles constructing and emitting a diagnostic suggestion.