Bless other tests

This commit is contained in:
mu001999
2026-03-09 23:38:30 +08:00
parent 2c7690e1e6
commit dfd5e905c5
2 changed files with 3 additions and 10 deletions
@@ -5,8 +5,7 @@
#![feature(step_trait)]
//~^ ERROR feature `step_trait` is declared but not used
#![feature(is_sorted)]
//~^ ERROR feature `is_sorted` is declared but not used
//~^^ WARN the feature `is_sorted` has been stable since 1.82.0 and no longer requires an attribute to enable
//~^ WARN the feature `is_sorted` has been stable since 1.82.0 and no longer requires an attribute to enable
// Enabled via cfg_attr, unused
#![cfg_attr(all(), feature(slice_ptr_get))]
@@ -18,17 +18,11 @@ note: the lint level is defined here
LL | #![deny(unused_features)]
| ^^^^^^^^^^^^^^^
error: feature `is_sorted` is declared but not used
--> $DIR/unused-library-features.rs:7:12
|
LL | #![feature(is_sorted)]
| ^^^^^^^^^
error: feature `slice_ptr_get` is declared but not used
--> $DIR/unused-library-features.rs:12:28
--> $DIR/unused-library-features.rs:11:28
|
LL | #![cfg_attr(all(), feature(slice_ptr_get))]
| ^^^^^^^^^^^^^
error: aborting due to 3 previous errors; 1 warning emitted
error: aborting due to 2 previous errors; 1 warning emitted