Skip to content

Commit 53acfc3

Browse files
Utilize shared error codes rather than re-querying env
1 parent 583a81d commit 53acfc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ fn stability_tags(item: &clean::Item) -> String {
21232123
/// documentation.
21242124
fn short_stability(item: &clean::Item, cx: &Context) -> Vec<String> {
21252125
let mut stability = vec![];
2126-
let error_codes = ErrorCodes::from(UnstableFeatures::from_environment().is_nightly_build());
2126+
let error_codes = cx.shared.codes;
21272127

21282128
if let Some(Deprecation { note, since }) = &item.deprecation() {
21292129
// We display deprecation messages for #[deprecated] and #[rustc_deprecated]

0 commit comments

Comments
 (0)