Don't check stability for tests

This commit is contained in:
Manish Goregaokar 2015-02-04 03:21:10 +05:30
parent f5e5bdb197
commit 2258f906ab

View file

@ -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");
}