Skip to content

Commit

Permalink
Utilize shared error codes rather than re-querying env
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Sep 23, 2019
1 parent 583a81d commit 53acfc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 53acfc3

Please sign in to comment.