-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"this could sometimes panic" lint #959
Comments
The context is #33905, for which I made a simple change to warn on all @nagisa's dataflow framework should usable for tracking ranges based on comparisons, for cases where checks prevent overflows (e.g. Some of the "won't overflow only because you can't have more allocated bytes in total than |
Don't https://internals.rust-lang.org/t/mir-compiler-plugins-for-custom-mir-passes/3166/11?u=ker and rust-lang/rust#34066 basically state that we should not be using MIR for linting? |
The AST passes never were stabilised explicitly either so what is said
|
@oli-obk Well, that doesn't make MIR less stable than all of the currently unstable compiler internals all lints use. There might be a way to expose the CFG and pieces of the instructions in a less unstable manner, but IMO not having that yet shouldn't stop people for building incredibly powerful tools. |
@Manishearth can we have a T-MIR label? |
Done. you can add labels in https://github.com/Manishearth/rust-clippy/labels |
thanks! I thought that was an owner-only-feature. |
FYI, the ability to register MIR passes was removed: rust-lang/rust#40239. |
That's not an issue. We can get the MIR from the tcx and the body_id. |
Wrong button |
idea by @eddyb https://botbot.me/mozilla/rust-internals/2016-05-27/?msg=66824497&page=3
The text was updated successfully, but these errors were encountered: