Rollup merge of #146365 - RalfJung:triagebot-rustc_intrinsic_const_stable_indirect, r=jieyouxu

triagebot: warn about #[rustc_intrinsic_const_stable_indirect]

Also make the warnings a bit more noticeable by adding a ⚠️.
This commit is contained in:
Matthias Krüger 2025-09-09 17:32:22 +02:00 committed by GitHub
commit af4cecebd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1308,21 +1308,32 @@ cc = ["@m-ou-se"]
[mentions."compiler/rustc_ast_lowering/src/format.rs"]
cc = ["@m-ou-se"]
# Content-based mentions
[mentions."#[miri::intrinsic_fallback_is_spec]"]
type = "content"
message = """
`#[miri::intrinsic_fallback_is_spec]` must only be used if the function actively checks for all UB cases,
`#[miri::intrinsic_fallback_is_spec]` must only be used if the function actively checks for all UB cases,
and explores the possible non-determinism of the intrinsic.
"""
cc = ["@rust-lang/miri"]
[mentions."#[rustc_allow_const_fn_unstable"]
type = "content"
message = """
`#[rustc_allow_const_fn_unstable]` needs careful audit to avoid accidentally exposing unstable
`#[rustc_allow_const_fn_unstable]` needs careful audit to avoid accidentally exposing unstable
implementation details on stable.
"""
cc = ["@rust-lang/wg-const-eval"]
[mentions."#[rustc_intrinsic_const_stable_indirect]"]
type = "content"
message = """
`#[rustc_intrinsic_const_stable_indirect]` controls whether intrinsics can be exposed to stable const
code; adding it needs t-lang approval.
"""
cc = ["@rust-lang/wg-const-eval"]
# ------------------------------------------------------------------------------
# PR assignments