Skip to content

Commit e6bccc9

Browse files
Remove array_into_iter lint (tracking issue rust-lang#66145)
This was lint's only purpose was to detect code that would break once arrays would implement `IntoIterator`. Now that this impl exists, this lint will never be triggered and thus is useless.
1 parent f326adf commit e6bccc9

6 files changed

+0
-508
lines changed

compiler/rustc_lint/src/array_into_iter.rs

-125
This file was deleted.

compiler/rustc_lint/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ extern crate rustc_middle;
4747
#[macro_use]
4848
extern crate rustc_session;
4949

50-
mod array_into_iter;
5150
pub mod builtin;
5251
mod context;
5352
mod early;
@@ -76,7 +75,6 @@ use rustc_session::lint::builtin::{
7675
use rustc_span::symbol::{Ident, Symbol};
7776
use rustc_span::Span;
7877

79-
use array_into_iter::ArrayIntoIter;
8078
use builtin::*;
8179
use internal::*;
8280
use methods::*;
@@ -166,7 +164,6 @@ macro_rules! late_lint_passes {
166164
// FIXME: Turn the computation of types which implement Debug into a query
167165
// and change this to a module lint pass
168166
MissingDebugImplementations: MissingDebugImplementations::default(),
169-
ArrayIntoIter: ArrayIntoIter,
170167
ClashingExternDeclarations: ClashingExternDeclarations::new(),
171168
DropTraitConstraints: DropTraitConstraints,
172169
TemporaryCStringAsPtr: TemporaryCStringAsPtr,

src/test/ui/iterators/into-iter-on-arrays-lint.fixed

-61
This file was deleted.

src/test/ui/iterators/into-iter-on-arrays-lint.rs

-61
This file was deleted.

0 commit comments

Comments
 (0)