about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-22 07:01:54 +0000
committerbors <bors@rust-lang.org>2021-06-22 07:01:54 +0000
commit44f4a87d7047db0deff5ef033fd2af820722e9a5 (patch)
tree4960627de594af7fc920104a8f40245e480485e9 /library/std/src
parentc38111c4fb9c22a36f9a9195d1884052bb670af2 (diff)
parentaa3580baa6f5ef69aba41a63297fb659bcd4b793 (diff)
downloadrust-44f4a87d7047db0deff5ef033fd2af820722e9a5.tar.gz
rust-44f4a87d7047db0deff5ef033fd2af820722e9a5.zip
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.
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions