Skip to content

Commit 2258f90

Browse files
committed
Don't check stability for tests
1 parent f5e5bdb commit 2258f90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/middle/stability.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ impl<'a> Annotator<'a> {
7575
if let Some(stab) = self.parent.clone() {
7676
self.index.local.insert(id, stab);
7777
} else if self.index.staged_api && required
78-
&& self.export_map.contains(&id) {
78+
&& self.export_map.contains(&id)
79+
&& !self.sess.opts.test {
7980
self.sess.span_err(item_sp,
8081
"This node does not have a stability attribute");
8182
}

0 commit comments

Comments
 (0)