Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore future deprecations in #[deprecated] #58202

Merged
merged 7 commits into from
Feb 14, 2019
Prev Previous commit
Next Next commit
Add a rustdoc test for future rustc_deprecated attributes
  • Loading branch information
varkor committed Feb 11, 2019
commit 01df8fe8ff4d57336ec84ac475988cc7403308a8
11 changes: 11 additions & 0 deletions src/test/rustdoc/rustc_deprecated-future.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#![feature(staged_api)]

#![stable(feature = "rustc_deprecated-future-test", since = "1.0.0")]

// @has rustc_deprecated_future/index.html '//*[@class="stab deprecated"]' \
// 'Deprecation planned'
// @has rustc_deprecated_future/struct.S.html '//*[@class="stab deprecated"]' \
// 'Deprecating in 99.99.99: effectively never'
#[rustc_deprecated(since = "99.99.99", reason = "effectively never")]
#[stable(feature = "rustc_deprecated-future-test", since = "1.0.0")]
pub struct S;