We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5e5bdb commit 2258f90Copy full SHA for 2258f90
src/librustc/middle/stability.rs
@@ -75,7 +75,8 @@ impl<'a> Annotator<'a> {
75
if let Some(stab) = self.parent.clone() {
76
self.index.local.insert(id, stab);
77
} else if self.index.staged_api && required
78
- && self.export_map.contains(&id) {
+ && self.export_map.contains(&id)
79
+ && !self.sess.opts.test {
80
self.sess.span_err(item_sp,
81
"This node does not have a stability attribute");
82
}
0 commit comments