about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-01-14 17:00:12 +0100
committerRalf Jung <post@ralfj.de>2025-01-14 17:00:12 +0100
commit6103896b1fc192740e1190dfdba86a781a84b493 (patch)
treebe8d0d0fffa54b472dce01d6d2d9f95d14d0ccde /src/doc/rustc-dev-guide
parent5c2006b79ac109ad657c0f9c32db8639f2eac4cb (diff)
downloadrust-6103896b1fc192740e1190dfdba86a781a84b493.tar.gz
rust-6103896b1fc192740e1190dfdba86a781a84b493.zip
rustc-dev-guide: add note about not adding rustc_allowed_through_unstable_modules to more items
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/stability.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/stability.md b/src/doc/rustc-dev-guide/src/stability.md
index 1bfe911c900..230925252ba 100644
--- a/src/doc/rustc-dev-guide/src/stability.md
+++ b/src/doc/rustc-dev-guide/src/stability.md
@@ -34,7 +34,8 @@ Previously, due to a [rustc bug], stable items inside unstable modules were
 available to stable code in that location.
 As of <!-- date-check --> September 2024, items with [accidentally stabilized
 paths] are marked with the `#[rustc_allowed_through_unstable_modules]` attribute
-to prevent code dependent on those paths from breaking.
+to prevent code dependent on those paths from breaking. Do *not* add this attribute
+to any more items unless that is needed to avoid breaking changes.
 
 The `unstable` attribute may also have the `soft` value, which makes it a
 future-incompatible deny-by-default lint instead of a hard error. This is used