about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/context.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-12 12:09:20 +0000
committerbors <bors@rust-lang.org>2024-02-12 12:09:20 +0000
commited195328689e052b5270b25d0e410b491914fc71 (patch)
tree2ceed8d1b3950192143e131b87ff91ba82e88ddd /compiler/rustc_lint/src/context.rs
parentb17491c8f6d555386104dfd82004c01bfef09c95 (diff)
parent5fa69deb006aaec28e5e9aba6ca1faf66e36ae1f (diff)
downloadrust-ed195328689e052b5270b25d0e410b491914fc71.tar.gz
rust-ed195328689e052b5270b25d0e410b491914fc71.zip
Auto merge of #120960 - RalfJung:static-promoted-cycle, r=oli-obk
fix cycle error when a static and a promoted are mutually recursive

This also now allows promoteds everywhere to point to 'extern static', because why not? We still check that constants cannot transitively reach 'extern static' through references. (We allow it through raw pointers.)

r? `@oli-obk`
Fixes https://github.com/rust-lang/rust/issues/120949
Diffstat (limited to 'compiler/rustc_lint/src/context.rs')
0 files changed, 0 insertions, 0 deletions