Skip to content

Commit c03d8eb

Browse files
committed
tidy
1 parent a9fa78c commit c03d8eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_lint/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
3131
#![doc(rust_logo)]
3232
#![feature(array_windows)]
33-
#![feature(box_patterns)]
3433
#![feature(box_into_inner)]
34+
#![feature(box_patterns)]
3535
#![feature(control_flow_enum)]
3636
#![feature(extract_if)]
3737
#![feature(if_let_guard)]

src/tools/clippy/tests/ui/indexing_slicing_index.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ fn main() {
6262
x[const { idx4() }];
6363
// This should be linted, since `suppress-restriction-lint-in-const` default is false.
6464
const { &ARR[idx()] };
65-
// ERROR: indexing may panic
65+
// ~^ ERROR: indexing may panic
6666
// This should be linted, since `suppress-restriction-lint-in-const` default is false.
6767
const { &ARR[idx4()] };
68-
// ERROR: indexing may panic
68+
// ~^ ERROR: indexing may panic
6969

7070
let y = &x;
7171
// Ok, referencing shouldn't affect this lint. See the issue 6021

0 commit comments

Comments
 (0)