diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2022-03-23 17:26:59 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2022-03-23 22:31:57 -0700 |
| commit | 86220d6e517225d13c145fd12acfc96f78358170 (patch) | |
| tree | e8d5f4bcb5f800c7a654d5270bf543b8888b2bad /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | 725cde42d5673d1957ad58c6b2fada28a6a4edbd (diff) | |
| download | rust-86220d6e517225d13c145fd12acfc96f78358170.tar.gz rust-86220d6e517225d13c145fd12acfc96f78358170.zip | |
Fix rustfix panic on test
`run-rustfix` applies all suggestions regardless of their Applicability. There's a flag, `rustfix-only-machine-applicable`, that does what it says, but then the produced `.fixed` file would have invalid code from the suggestions that weren't applied. So, I moved the cases of postfix increment, in which case multiple suggestions are given, to the `-notfixed` test, which does not run rustfix. I also changed the Applicability to Unspecified since MaybeIncorrect requires that the code be valid, even if it's incorrect.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions
