Skip to content

Commit e5c645f

Browse files
committed
Turn useless #[unstable] attributes into errors.
1 parent 1854f8b commit e5c645f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/stability.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ impl Visitor<'tcx> for Checker<'tcx> {
555555
.iter()
556556
.find(|a| a.has_name(sym::unstable))
557557
.map_or(item.span, |a| a.span);
558-
self.tcx.sess.span_warn(
558+
self.tcx.sess.span_err(
559559
span,
560560
"An `#[unstable]` annotation here has no effect. \
561561
See issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information.",

0 commit comments

Comments
 (0)