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
Auto merge of rust-lang#120687 - oli-obk:early_const_prop, r=<try>
Run const_prop_lint in check builds, too
implements rust-lang#108730 (comment)
Turns the const_prop_lint pass into a query that is run alongside borrowck.
@@ -29,7 +29,12 @@ note: ...which requires caching mir of `<impl at $DIR/issue-24949-assoc-const-st
29
29
|
30
30
LL | const BAR: u32 = IMPL_REF_BAR;
31
31
| ^^^^^^^^^^^^^^
32
-
= note: ...which again requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`, completing the cycle
32
+
note: ...which requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`...
= note: ...which again requires checking const prop lints for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`, completing the cycle
33
38
= note: cycle used when running analysis passes on this crate
34
39
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
@@ -29,7 +29,12 @@ note: ...which requires caching mir of `<impl at $DIR/issue-24949-assoc-const-st
29
29
|
30
30
LL | const BAR: u32 = TRAIT_REF_BAR;
31
31
| ^^^^^^^^^^^^^^
32
-
= note: ...which again requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 11:28>::BAR`, completing the cycle
32
+
note: ...which requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 11:28>::BAR`...
= note: ...which again requires checking const prop lints for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 11:28>::BAR`, completing the cycle
33
38
= note: cycle used when running analysis passes on this crate
34
39
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
0 commit comments