rust/compiler/rustc_middle/src
bors e8fbd99128 Auto merge of #124097 - compiler-errors:box-into-iter, r=WaffleLapkin
Add `IntoIterator` for `Box<[T]>` + edition 2024-specific lints

* Adds a similar method probe opt-out mechanism to the `[T;N]: IntoIterator` implementation for edition 2021.
* Adjusts the relevant lints (shadowed `.into_iter()` calls, new source of method ambiguity).
* Adds some tests.
* Took the liberty to rework the logic in the `ARRAY_INTO_ITER` lint, since it was kind of confusing.

Based mostly off of #116607.

ACP: rust-lang/libs-team#263
References #59878
Tracking for Rust 2024: https://github.com/rust-lang/rust/issues/123759

Crater run was done here: https://github.com/rust-lang/rust/pull/116607#issuecomment-1770293013
Consensus afaict was that there is too much breakage, so let's do this in an edition-dependent way much like `[T; N]: IntoIterator`.
2024-05-21 10:13:53 +00:00
..
dep_graph Use a dyn Debug trait object instead of a closure. 2024-03-27 10:59:18 +00:00
hir Inline get_node_fn_decl into get_fn_decl, simplify/explain logic in report_return_mismatched_types 2024-05-20 20:16:29 -04:00
hooks Rollup merge of #124016 - DaniPopes:dedup-default-providers, r=lcnr 2024-04-16 21:41:26 +02:00
infer Uplift GenericArgKind, CanonicalVarValues, QueryInput 2024-05-18 16:21:43 -04:00
middle Remove extern crate bitflags from a couple of crates. 2024-04-29 18:47:54 +10:00
mir Rollup merge of #125173 - scottmcm:never-checked, r=davidtwco 2024-05-20 18:13:48 +02:00
query Give items related to issue 33140 a more meaningful name 2024-04-30 22:27:19 +02:00
thir Track mutability of deref patterns 2024-04-20 15:59:54 +02:00
traits move global cache lookup into fn 2024-05-20 20:40:02 +00:00
ty Auto merge of #124097 - compiler-errors:box-into-iter, r=WaffleLapkin 2024-05-21 10:13:53 +00:00
util remove some ancient debug output, looks unused? 2024-04-13 11:30:48 +03:00
arena.rs Uplift inspect into rustc_type_ir 2024-05-18 16:21:43 -04:00
error.rs Remove extern crate rustc_macros from rustc_middle. 2024-04-29 11:19:16 +10:00
lib.rs Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
lint.rs Remove extern crate rustc_macros from rustc_middle. 2024-04-29 11:19:16 +10:00
macros.rs Lift Lift 2024-05-10 15:44:03 -04:00
metadata.rs Remove extern crate rustc_macros from rustc_middle. 2024-04-29 11:19:16 +10:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs Lower never patterns to Unreachable in mir 2024-05-04 16:30:01 +02:00
values.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00