about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2022-07-01 18:20:46 +0300
committerklensy <klensy@users.noreply.github.com>2022-07-21 22:53:02 +0300
commitb38c94857df02a402ba46bc559d5bc8dc5256023 (patch)
treed4e249e5f2fa9e5a8abb19e6e3078f6fee5c3192 /compiler/rustc_resolve/src
parent1673f1450eeaf4a5452e086db0fe2ae274a0144f (diff)
downloadrust-b38c94857df02a402ba46bc559d5bc8dc5256023.tar.gz
rust-b38c94857df02a402ba46bc559d5bc8dc5256023.zip
avoid embedding StabilityLevel::Unstable reason string into metadata multiple times
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/macros.rs b/compiler/rustc_resolve/src/macros.rs
index 2b5eb12a8a8..070fb9c721b 100644
--- a/compiler/rustc_resolve/src/macros.rs
+++ b/compiler/rustc_resolve/src/macros.rs
@@ -812,7 +812,7 @@ impl<'a> Resolver<'a> {
                     stability::report_unstable(
                         self.session,
                         feature,
-                        reason,
+                        reason.to_opt_reason(),
                         issue,
                         None,
                         is_soft,