mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 00:23:41 +00:00
Don't check stability for tests
This commit is contained in:
parent
f5e5bdb197
commit
2258f906ab
@ -75,7 +75,8 @@ impl<'a> Annotator<'a> {
|
||||
if let Some(stab) = self.parent.clone() {
|
||||
self.index.local.insert(id, stab);
|
||||
} else if self.index.staged_api && required
|
||||
&& self.export_map.contains(&id) {
|
||||
&& self.export_map.contains(&id)
|
||||
&& !self.sess.opts.test {
|
||||
self.sess.span_err(item_sp,
|
||||
"This node does not have a stability attribute");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user