about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/mod.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-03-31 16:28:32 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-02 19:36:44 -0400
commit53a11050742ae1c59ccb33302a2d998cd35aed03 (patch)
tree9ae8afe31ab7a159e03930865d5388be94ac6ea7 /compiler/rustc_mir/src/transform/coverage/mod.rs
parentbba40880c0750f880119b4517821ffe0a96f74d1 (diff)
downloadrust-53a11050742ae1c59ccb33302a2d998cd35aed03.tar.gz
rust-53a11050742ae1c59ccb33302a2d998cd35aed03.zip
On stable, suggest removing `#![feature]` for features that have been stabilized
I don't know how to test this. I confirmed locally that this gives the
appropriate help with `channel = "beta"`:

```
error[E0554]: `#![feature]` may not be used on the beta release channel
 --> src/lib.rs:2:1
  |
2 | #![feature(min_const_generics)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute
  |
  = help: the feature `min_const_generics` has been stable since 1.51.0 and no longer requires an attribute to enable

error[E0554]: `#![feature]` may not be used on the beta release channel
 --> src/lib.rs:3:1
  |
3 | #![feature(min_const_generics, min_specialization)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: the feature `min_const_generics` has been stable since 1.51.0 and no longer requires an attribute to enable

error[E0554]: `#![feature]` may not be used on the beta release channel
 --> src/lib.rs:4:1
  |
4 | #![feature(box_patterns)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^
```
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions