Skip to content

Commit

Permalink
Rollup merge of #120970 - RalfJung:static-promoted-test, r=oli-obk
Browse files Browse the repository at this point in the history
add another test for promoteds-in-static

rust-lang/rust#119614 led to validation of promoteds recursing into statics. These statics can point to `static mut` and interior mutable `static` and do other things we don't allow in `const`, but promoteds are validated as `const`, so we get strange errors (saying "in `const`" when there is no const) and surprising validation failures.

rust-lang/rust#120960 fixes that; this here adds another test.

r? ``@oli-obk``
Fixes rust-lang/rust#120968
  • Loading branch information
matthiaskrgr committed Feb 12, 2024
2 parents 747e3d1 + d57bfcc commit 4567c19
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 4567c19

Please sign in to comment.