From 40bfe4fafd0c220786bf1ff7dfc7aa5c11b129fa Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 19 Jul 2026 08:19:00 +0200 Subject: [PATCH 1/2] restrict const-eval-related 'content' triggers to library/ folder --- triagebot.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/triagebot.toml b/triagebot.toml index 262ea3a60b0b7..a161f7c23d5fb 100644 --- a/triagebot.toml +++ b/triagebot.toml @@ -1476,6 +1476,7 @@ cc = ["@rust-lang/miri"] [mentions."#[miri::intrinsic_fallback_is_spec]"] type = "content" +trigger_files = ["library"] message = """ ⚠️ `#[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. @@ -1484,6 +1485,7 @@ cc = ["@rust-lang/miri"] [mentions."#[rustc_allow_const_fn_unstable"] type = "content" +trigger_files = ["library"] message = """ ⚠️ `#[rustc_allow_const_fn_unstable]` needs careful audit to avoid accidentally exposing unstable implementation details on stable. @@ -1492,6 +1494,7 @@ cc = ["@rust-lang/wg-const-eval"] [mentions."#[rustc_intrinsic_const_stable_indirect]"] type = "content" +trigger_files = ["library"] message = """ ⚠️ `#[rustc_intrinsic_const_stable_indirect]` controls whether intrinsics can be exposed to stable const code; adding it needs t-lang approval. From 245b3e54a37674ea28e896596ae5c45f41295ed2 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 19 Jul 2026 08:19:27 +0200 Subject: [PATCH 2/2] move a non-content mention out of the content section --- triagebot.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/triagebot.toml b/triagebot.toml index a161f7c23d5fb..707d54941aeee 100644 --- a/triagebot.toml +++ b/triagebot.toml @@ -1464,6 +1464,13 @@ message = """ """ cc = ["@jieyouxu"] +[mentions."compiler/rustc_attr_parsing/src/attributes/diagnostic"] +message = "Some changes occurred to diagnostic attributes." +cc = ["@mejrs"] +[mentions."compiler/rustc_hir/src/attrs/diagnostic.rs"] +message = "Some changes occurred to diagnostic attributes." +cc = ["@mejrs"] + # Content-based mentions [mentions."miri"] @@ -1501,13 +1508,6 @@ code; adding it needs t-lang approval. """ cc = ["@rust-lang/wg-const-eval"] -[mentions."compiler/rustc_attr_parsing/src/attributes/diagnostic"] -message = "Some changes occurred to diagnostic attributes." -cc = ["@mejrs"] -[mentions."compiler/rustc_hir/src/attrs/diagnostic.rs"] -message = "Some changes occurred to diagnostic attributes." -cc = ["@mejrs"] - # ------------------------------------------------------------------------------ # PR assignments # ------------------------------------------------------------------------------