lint on tail expr drop order change in Edition 2024
This commit is contained in:
parent
4d5b3b1962
commit
ef25fbd0b4
7 changed files with 461 additions and 0 deletions
|
|
@ -444,6 +444,7 @@ impl<'a> LintExtractor<'a> {
|
|||
let mut cmd = Command::new(self.rustc_path);
|
||||
if options.contains(&"edition2024") {
|
||||
cmd.arg("--edition=2024");
|
||||
cmd.arg("-Zunstable-options");
|
||||
} else if options.contains(&"edition2021") {
|
||||
cmd.arg("--edition=2021");
|
||||
} else if options.contains(&"edition2018") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue