Utilize shared error codes rather than re-querying env
This commit is contained in:
parent
583a81dc5e
commit
53acfc3f8a
@ -2123,7 +2123,7 @@ fn stability_tags(item: &clean::Item) -> String {
|
||||
/// documentation.
|
||||
fn short_stability(item: &clean::Item, cx: &Context) -> Vec<String> {
|
||||
let mut stability = vec![];
|
||||
let error_codes = ErrorCodes::from(UnstableFeatures::from_environment().is_nightly_build());
|
||||
let error_codes = cx.shared.codes;
|
||||
|
||||
if let Some(Deprecation { note, since }) = &item.deprecation() {
|
||||
// We display deprecation messages for #[deprecated] and #[rustc_deprecated]
|
||||
|
Loading…
Reference in New Issue
Block a user