triagebot: warn about #[rustc_intrinsic_const_stable_indirect]; make warnings a bit more noticeable

This commit is contained in:
Ralf Jung
2025-09-09 08:31:52 +02:00
parent ebdf2abea4
commit c63e034906

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