diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-09-10 09:36:17 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-09-11 13:36:15 +0200 |
| commit | e5c645f40e98bfcda81a10929aaaf18dd0a00414 (patch) | |
| tree | 2c701ca865dcc6aa3b585be3644a95718fb2dfff /compiler/rustc_passes/src | |
| parent | 1854f8b3d8bb5f35554f3bdf61f63853ae720742 (diff) | |
| download | rust-e5c645f40e98bfcda81a10929aaaf18dd0a00414.tar.gz rust-e5c645f40e98bfcda81a10929aaaf18dd0a00414.zip | |
Turn useless #[unstable] attributes into errors.
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/stability.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs index d3141c34d0e..dc82c80d205 100644 --- a/compiler/rustc_passes/src/stability.rs +++ b/compiler/rustc_passes/src/stability.rs @@ -555,7 +555,7 @@ impl Visitor<'tcx> for Checker<'tcx> { .iter() .find(|a| a.has_name(sym::unstable)) .map_or(item.span, |a| a.span); - self.tcx.sess.span_warn( + self.tcx.sess.span_err( span, "An `#[unstable]` annotation here has no effect. \ See issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information.", |
