rust/compiler
bors 44f4a87d70 Auto merge of #85707 - jam1garner:future_prelude_collision_lint, r=nikomatsakis
Add `future_prelude_collision` lint

Implements #84594. (RFC rust-lang/rfcs#3114 ([rendered](https://github.com/rust-lang/rfcs/blob/master/text/3114-prelude-2021.md))) Not entirely complete but wanted to have my progress decently available while I finish off the last little bits.

Things left to implement:

* [x] UI tests for lints
* [x] Only emit lint for 2015 and 2018 editions
* [ ] Lint name/message bikeshedding
* [x] Implement for `FromIterator` (from best I can tell, the current approach as mentioned from [this comment](https://github.com/rust-lang/rust/issues/84594#issuecomment-847288288) won't work due to `FromIterator` instances not using dot-call syntax, but if I'm correct about this then that would also need to be fixed for `TryFrom`/`TryInto`)*
* [x] Add to `rust-2021-migration` group? (See #85512) (added to `rust-2021-compatibility` group)
* [ ] Link to edition guide in lint docs

*edit: looked into it, `lookup_method` will also not be hit for `TryFrom`/`TryInto` for non-dotcall syntax. If anyone who is more familiar with typecheck knows the equivalent for looking up associated functions, feel free to chime in.
2021-06-22 07:01:54 +00:00
..
rustc
rustc_apfloat Use the now available implementation of IntoIterator for arrays 2021-06-14 23:40:09 +02:00
rustc_arena
rustc_ast Use AttrVec for Arm, FieldDef, and Variant 2021-06-17 08:04:54 +09:00
rustc_ast_lowering Auto merge of #86321 - JohnTitor:rollup-q61c8q4, r=JohnTitor 2021-06-15 20:15:23 +00:00
rustc_ast_passes Auto merge of #86164 - FabianWolff:issue-86053, r=davidtwco 2021-06-17 06:34:12 +00:00
rustc_ast_pretty Use AttrVec for Arm, FieldDef, and Variant 2021-06-17 08:04:54 +09:00
rustc_attr
rustc_builtin_macros cfg_eval: Replace multiple unwraps with a single unwrap 2021-06-20 18:54:45 +03:00
rustc_codegen_cranelift Auto merge of #86291 - crlf0710:trait_vtbl_refactor, r=bjorn3 2021-06-16 07:20:27 +00:00
rustc_codegen_llvm
rustc_codegen_ssa Auto merge of #86166 - tmiasko:no-alloca-for-zsts, r=nagisa 2021-06-21 04:03:51 +00:00
rustc_data_structures Rollup merge of #86387 - JohnTitor:now-no-unused-lifetimes, r=Mark-Simulacrum 2021-06-22 07:37:53 +09:00
rustc_driver
rustc_error_codes Fix typo with custom a custom -> with a custom 2021-06-13 21:21:45 +02:00
rustc_errors
rustc_expand Rollup merge of #86491 - petrochenkov:derefact, r=Aaron1011 2021-06-21 09:42:19 +09:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #86383 - shamatar:slice_len_lowering, r=bjorn3 2021-06-21 22:24:13 +00:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Auto merge of #86164 - FabianWolff:issue-86053, r=davidtwco 2021-06-17 06:34:12 +00:00
rustc_interface Auto merge of #85284 - eggyal:custom-profiler-runtime, r=jackh726 2021-06-18 04:39:01 +00:00
rustc_lexer
rustc_lint Lint for unused borrows as part of UNUSED_MUST_USE 2021-06-18 15:09:40 +08:00
rustc_lint_defs Auto merge of #85707 - jam1garner:future_prelude_collision_lint, r=nikomatsakis 2021-06-22 07:01:54 +00:00
rustc_llvm
rustc_macros Lint for unused borrows as part of UNUSED_MUST_USE 2021-06-18 15:09:40 +08:00
rustc_metadata Auto merge of #85284 - eggyal:custom-profiler-runtime, r=jackh726 2021-06-18 04:39:01 +00:00
rustc_middle Auto merge of #86437 - nikomatsakis:tait-docs, r=oli-obk 2021-06-19 12:41:10 +00:00
rustc_mir Auto merge of #86383 - shamatar:slice_len_lowering, r=bjorn3 2021-06-21 22:24:13 +00:00
rustc_mir_build Auto merge of #86460 - JohnTitor:use-static-in-pattern-err, r=oli-obk 2021-06-19 19:46:02 +00:00
rustc_parse Use AttrVec for Arm, FieldDef, and Variant 2021-06-17 08:04:54 +09:00
rustc_parse_format
rustc_passes Fix ICE when using #[doc(keyword = "...")] on non-items 2021-06-17 16:45:26 +02:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl Auto merge of #85154 - cjgillot:lessfn, r=bjorn3 2021-06-15 14:52:58 +00:00
rustc_query_system Auto merge of #85154 - cjgillot:lessfn, r=bjorn3 2021-06-15 14:52:58 +00:00
rustc_resolve expand: Move some more derive logic to rustc_builtin_macros 2021-06-20 18:48:42 +03:00
rustc_save_analysis
rustc_serialize Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00
rustc_session Auto merge of #85775 - adamrk:warn-unused-target-fields, r=nagisa 2021-06-21 06:56:51 +00:00
rustc_span Auto merge of #85707 - jam1garner:future_prelude_collision_lint, r=nikomatsakis 2021-06-22 07:01:54 +00:00
rustc_symbol_mangling
rustc_target Auto merge of #85775 - adamrk:warn-unused-target-fields, r=nagisa 2021-06-21 06:56:51 +00:00
rustc_trait_selection add various coments to explain how the code works 2021-06-18 11:44:56 -04:00
rustc_traits
rustc_ty_utils
rustc_type_ir
rustc_typeck Auto merge of #85707 - jam1garner:future_prelude_collision_lint, r=nikomatsakis 2021-06-22 07:01:54 +00:00