Skip to content

Commit 0812732

Browse files
committed
stabilize is_sorted
1 parent eb2fc42 commit 0812732

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

clippy_lints/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#![feature(f128)]
66
#![feature(f16)]
77
#![feature(if_let_guard)]
8-
#![feature(is_sorted)]
98
#![feature(iter_intersperse)]
109
#![feature(iter_partition_in_place)]
1110
#![feature(let_chains)]

tests/compile-test.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(is_sorted)]
21
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
32
#![warn(rust_2018_idioms, unused_lifetimes)]
43
#![allow(unused_extern_crates)]

tests/ui/unit_return_expecting_ord.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![allow(clippy::needless_return)]
33
#![allow(clippy::unused_unit)]
44
#![allow(clippy::useless_vec)]
5-
#![feature(is_sorted)]
65

76
struct Struct {
87
field: isize,

tests/ui/unit_return_expecting_ord.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
error: this closure returns the unit type which also implements Ord
2-
--> tests/ui/unit_return_expecting_ord.rs:19:25
2+
--> tests/ui/unit_return_expecting_ord.rs:18:25
33
|
44
LL | structs.sort_by_key(|s| {
55
| ^^^
66
|
77
help: probably caused by this trailing semicolon
8-
--> tests/ui/unit_return_expecting_ord.rs:21:24
8+
--> tests/ui/unit_return_expecting_ord.rs:20:24
99
|
1010
LL | double(s.field);
1111
| ^
1212
= note: `-D clippy::unit-return-expecting-ord` implied by `-D warnings`
1313
= help: to override `-D warnings` add `#[allow(clippy::unit_return_expecting_ord)]`
1414

1515
error: this closure returns the unit type which also implements PartialOrd
16-
--> tests/ui/unit_return_expecting_ord.rs:24:30
16+
--> tests/ui/unit_return_expecting_ord.rs:23:30
1717
|
1818
LL | structs.is_sorted_by_key(|s| {
1919
| ^^^
2020
|
2121
help: probably caused by this trailing semicolon
22-
--> tests/ui/unit_return_expecting_ord.rs:26:24
22+
--> tests/ui/unit_return_expecting_ord.rs:25:24
2323
|
2424
LL | double(s.field);
2525
| ^
2626

2727
error: this closure returns the unit type which also implements PartialOrd
28-
--> tests/ui/unit_return_expecting_ord.rs:28:30
28+
--> tests/ui/unit_return_expecting_ord.rs:27:30
2929
|
3030
LL | structs.is_sorted_by_key(|s| {
3131
| ^^^
3232

3333
error: this closure returns the unit type which also implements Ord
34-
--> tests/ui/unit_return_expecting_ord.rs:39:25
34+
--> tests/ui/unit_return_expecting_ord.rs:38:25
3535
|
3636
LL | structs.sort_by_key(|s| unit(s.field));
3737
| ^^^

0 commit comments

Comments
 (0)