-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Reduce mismatched-lifetime-syntaxes suggestions to MaybeIncorrect #142980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce mismatched-lifetime-syntaxes suggestions to MaybeIncorrect #142980
Conversation
This comment has been minimized.
This comment has been minimized.
`cargo fix` does not have a way of distinguishing a suggestion with multiple spans which should all be applied from multiple suggestions where only one should be applied (see issue 53934). `cargo fix` only works with `MachineApplicable` suggestions, so downgrading the applicability will stop `cargo` from suggesting the user run `cargo fix`. rust-analyzer does work with `MaybeIncorrect`, so interactive fixes are still available.
7a4ef9b
to
46e9d2f
Compare
Thanks! Dunno what the CI error is about (The hosted runner lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.), but I'll assume everything is fine. @bors r+ rollup |
Rollup of 15 pull requests Successful merges: - #135731 (Implement parsing of pinned borrows) - #138780 (Add `#[loop_match]` for improved DFA codegen) - #142453 (Windows: make `read_dir` stop iterating after the first error is encountered) - #142633 (Error on invalid signatures for interrupt ABIs) - #142768 (Avoid a bitcast FFI call in transmuting) - #142825 (Port `#[track_caller]` to the new attribute system) - #142844 (Enable short-ice for Windows) - #142934 (Tweak `-Zmacro-stats` measurement.) - #142955 (Couple of test suite fixes for cg_clif) - #142977 (rustdoc: Don't mark `#[target_feature]` functions as ⚠) - #142980 (Reduce mismatched-lifetime-syntaxes suggestions to MaybeIncorrect) - #142982 (Corrected spelling mistake in c_str.rs) - #142983 (Taint body on invalid call ABI) - #142988 (Update wasm-component-ld to 0.5.14) - #142993 (Update cargo) r? `@ghost` `@rustbot` modify labels: rollup
Sometimes CI jobs just don't get picked up by runners unfortunately. |
Rollup merge of #142980 - shepmaster:mismatched-syntaxes-multi-suggestions, r=ehuss Reduce mismatched-lifetime-syntaxes suggestions to MaybeIncorrect `cargo fix` does not have a way of distinguishing a suggestion with multiple spans which should all be applied from multiple suggestions where only one should be applied (see #53934). `cargo fix` only works with `MachineApplicable` suggestions, so downgrading the applicability will stop `cargo` from suggesting the user run `cargo fix`. rust-analyzer does work with `MaybeIncorrect`, so interactive fixes are still available. r? `@ehuss`
cargo fix
does not have a way of distinguishing a suggestion withmultiple spans which should all be applied from multiple suggestions
where only one should be applied (see #53934).
cargo fix
only workswith
MachineApplicable
suggestions, so downgrading the applicabilitywill stop
cargo
from suggesting the user runcargo fix
. rust-analyzer does work withMaybeIncorrect
, so interactivefixes are still available.
r? @ehuss