about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-02-27 22:17:31 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-02-28 00:48:43 +0100
commit5ab4d46e9ada163f7f6025500313d2b51c87f657 (patch)
tree57ae783020e6b157e81c9bf280494865cf6a0e45
parent25e030bc4252bd23e1bed60dfbaca8a0ce7206bb (diff)
downloadrust-5ab4d46e9ada163f7f6025500313d2b51c87f657.tar.gz
rust-5ab4d46e9ada163f7f6025500313d2b51c87f657.zip
Update rustdoc test to make it work with newly added rustc passes
-rw-r--r--src/test/rustdoc/implementor-stable-version.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/rustdoc/implementor-stable-version.rs b/src/test/rustdoc/implementor-stable-version.rs
index 0a065d8095b..a1f3fd5a8c5 100644
--- a/src/test/rustdoc/implementor-stable-version.rs
+++ b/src/test/rustdoc/implementor-stable-version.rs
@@ -1,3 +1,4 @@
+#![stable(feature = "bar", since = "OLD 1.0")]
 #![crate_name = "foo"]
 
 #![feature(staged_api)]
@@ -8,6 +9,7 @@ pub trait Bar {}
 #[stable(feature = "baz", since = "OLD 1.0")]
 pub trait Baz {}
 
+#[stable(feature = "baz", since = "OLD 1.0")]
 pub struct Foo;
 
 // @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0'