Skip to content

Commit

Permalink
Remove array_into_iter lint (tracking issue #66145)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LukasKalbertodt committed Mar 29, 2021
1 parent f326adf commit e6bccc9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 508 deletions.
125 changes: 0 additions & 125 deletions compiler/rustc_lint/src/array_into_iter.rs

This file was deleted.

3 changes: 0 additions & 3 deletions compiler/rustc_lint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ extern crate rustc_middle;
#[macro_use]
extern crate rustc_session;

mod array_into_iter;
pub mod builtin;
mod context;
mod early;
Expand Down Expand Up @@ -76,7 +75,6 @@ use rustc_session::lint::builtin::{
use rustc_span::symbol::{Ident, Symbol};
use rustc_span::Span;

use array_into_iter::ArrayIntoIter;
use builtin::*;
use internal::*;
use methods::*;
Expand Down Expand Up @@ -166,7 +164,6 @@ macro_rules! late_lint_passes {
// FIXME: Turn the computation of types which implement Debug into a query
// and change this to a module lint pass
MissingDebugImplementations: MissingDebugImplementations::default(),
ArrayIntoIter: ArrayIntoIter,
ClashingExternDeclarations: ClashingExternDeclarations::new(),
DropTraitConstraints: DropTraitConstraints,
TemporaryCStringAsPtr: TemporaryCStringAsPtr,
Expand Down
61 changes: 0 additions & 61 deletions src/test/ui/iterators/into-iter-on-arrays-lint.fixed

This file was deleted.

61 changes: 0 additions & 61 deletions src/test/ui/iterators/into-iter-on-arrays-lint.rs

This file was deleted.

Loading

0 comments on commit e6bccc9

Please sign in to comment.