Error on resetted binding mode in edition 2024
This commit is contained in:
parent
4abbdfa1c9
commit
4107322766
12 changed files with 270 additions and 48 deletions
|
@ -983,6 +983,8 @@ pub(crate) struct Rust2024IncompatiblePat {
|
|||
|
||||
pub(crate) struct Rust2024IncompatiblePatSugg {
|
||||
pub(crate) suggestion: Vec<(Span, String)>,
|
||||
/// Whether the incompatibility is a hard error because a relevant span is in edition 2024.
|
||||
pub(crate) is_hard_error: bool,
|
||||
}
|
||||
|
||||
impl Subdiagnostic for Rust2024IncompatiblePatSugg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue