rust/compiler/rustc_span/src
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
..
analyze_source_file
lev_distance
source_map Split span_to_string into span_to_diagnostic/embeddable_string 2021-05-11 00:04:12 +01:00
symbol
analyze_source_file.rs
caching_source_map_view.rs
crate_disambiguator.rs Revert "Merge CrateDisambiguator into StableCrateId" 2021-06-07 10:37:45 +02:00
def_id.rs Sprinkle inline. 2021-06-11 16:48:24 +02:00
edition.rs fix: wrong word 2021-03-10 09:09:37 +08:00
fatal_error.rs
hygiene.rs Make DummyHashStableContext dummier. 2021-06-11 16:54:34 +02:00
lev_distance.rs
lib.rs Hash DefId in rustc_span. 2021-06-11 12:25:02 +02:00
source_map.rs Print dummy spans as no-location 2021-06-09 00:33:46 +02:00
span_encoding.rs Remove SpanInterner::get 2021-05-03 17:32:06 -04:00
symbol.rs Auto merge of #85707 - jam1garner:future_prelude_collision_lint, r=nikomatsakis 2021-06-22 07:01:54 +00:00
tests.rs