You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ecstatic-morse opened this issue
Sep 24, 2020
· 4 comments
Labels
C-bugCategory: Clippy is not doing the correct thingE-hardCall for participation: This a hard problem and requires more experience or effort to work onI-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️T-MIRType: This lint will require working with the MIR
For example, const-checking needs to run before optimizations, otherwise it might miss some invalid operations that get optimized away. Specifically, it should run on the result of the mir_const query, but currently it uses optimized_mir. This is because the result of the mir_const query is "stolen" instead of cloned, so it no longer exists when clippy runs. clippy tries to work around this by setting mir-opt-level=0, but this doesn't disable every optimization pass.
Until this is fixed, missing_const_for_fn will have false positives and/or ICE (due to some assertions about the state of the MIR at the point const-checking is run).
The text was updated successfully, but these errors were encountered:
ecstatic-morse
added
C-bug
Category: Clippy is not doing the correct thing
I-ICE
Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
labels
Sep 24, 2020
According to @oli-obk on zulip, we can now use mir_for_ctfe.
camsteffen
added
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
T-MIR
Type: This lint will require working with the MIR
labels
Jan 26, 2021
Remove a couple MIR usages
changelog: none
We use MIR to get the return type of a closure/function in a couple places. But typeck seems like a better approach.
This is the easy part of #6080.
Also did a tiny cleanup with `typeck` -> `typeck_body`.
C-bugCategory: Clippy is not doing the correct thingE-hardCall for participation: This a hard problem and requires more experience or effort to work onI-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️T-MIRType: This lint will require working with the MIR
For example, const-checking needs to run before optimizations, otherwise it might miss some invalid operations that get optimized away. Specifically, it should run on the result of the
mir_const
query, but currently it usesoptimized_mir
. This is because the result of themir_const
query is "stolen" instead of cloned, so it no longer exists whenclippy
runs.clippy
tries to work around this by settingmir-opt-level=0
, but this doesn't disable every optimization pass.Until this is fixed,
missing_const_for_fn
will have false positives and/or ICE (due to some assertions about the state of the MIR at the point const-checking is run).The text was updated successfully, but these errors were encountered: