about summary refs log tree commit diff
path: root/src/librustdoc/formats
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-01-01 19:09:01 +0100
committerRalf Jung <post@ralfj.de>2025-01-15 09:41:33 +0100
commitcf0ab86251f1ab3e11132332695eee73ff746e27 (patch)
tree6b9380ad1a5179aad154516d2b54d0bd3b9bb20f /src/librustdoc/formats
parent561a097b653c53d264fb60b417ba07c19ee14f4a (diff)
downloadrust-cf0ab86251f1ab3e11132332695eee73ff746e27.tar.gz
rust-cf0ab86251f1ab3e11132332695eee73ff746e27.zip
allowed_through_unstable_modules: support showing a deprecation message when the unstable module name is used
Diffstat (limited to 'src/librustdoc/formats')
-rw-r--r--src/librustdoc/formats/cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/formats/cache.rs b/src/librustdoc/formats/cache.rs
index cbb3ce6abe6..4760e579199 100644
--- a/src/librustdoc/formats/cache.rs
+++ b/src/librustdoc/formats/cache.rs
@@ -316,7 +316,7 @@ impl DocFolder for CacheBuilder<'_, '_> {
 
                 let skip_because_unstable = matches!(
                     item.stability.map(|stab| stab.level),
-                    Some(StabilityLevel::Stable { allowed_through_unstable_modules: true, .. })
+                    Some(StabilityLevel::Stable { allowed_through_unstable_modules: Some(_), .. })
                 );
 
                 if (!self.cache.stripped_mod && !skip_because_unstable) || self.is_json_output {