-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Allow LintPasses to run after trans #17642
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
Comments
cc #14406 |
Triage: looks like no change. |
Triage: still no change |
Some relevant changes since the OP:
There might still be use cases for emitting lint warnings from monomorphized MIR (if we can find a way to accurately preserve the |
That's not a thing. We don't monomorphize MIR I think we should just close this issue. It's very problematic to only report lints in case the trans backend decides on doing something, especially once we get to MIR-only rlibs |
Sorry, I should have been more clear, I meant the (generic MIR, substs) pair that codegen item collection produces.
That's always been the case, but yeah it's very sensitive to improvements to the collector or even MIR optimizations. I think it might be OK for some desirable warnings that are impossible to emit pre-monomorphization but YMMV and certainly requires more motivation than is given here. |
To be clear, I agree that we should close. Although I think the idea of lints emitted from codegen might have some merit,
So let's close this. |
minor: Fix some typos
minor: Fix some typos
We currently have one lint
VARIANT_SIZE_DIFFERENCE
that's hard-wired into trans. We should generalize this and make it available to lint plugins.The text was updated successfully, but these errors were encountered: