-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add future_prelude_collision
lint
#85707
Merged
bors
merged 25 commits into
rust-lang:master
from
jam1garner:future_prelude_collision_lint
Jun 22, 2021
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
79388aa
Add future_prelude_collision lint
jam1garner 01bdb8e
Disable `future_prelude_collision` for 2021 edition
jam1garner a9dc234
Add docs for FnCtxt::resolve_ufcs
jam1garner 1626e19
Add support for associated functions to `future_prelude_collision` lint
jam1garner c341d5b
Improve documentation for `future_prelude_collision` lint
jam1garner 35af383
Add UI tests for `future_prelude_collision` lint
jam1garner c41a157
Fix incorrect argument description on FnCtxt::resolve_ufcs
jam1garner 327697a
Fix autoderef and autoref for `future_prelude_collision` lint
jam1garner eb5e0af
Add autoderef and autoref tests for `future_prelude_collision` lint
jam1garner 93c60f2
Fix missing generic parameters from `future_prelude_collision` lint s…
jam1garner cb49992
Fix `future_prelude_collision` lint breaking for pointer mutabilty co…
jam1garner 4a21a0b
Fix `future_prelude_collision` not maintaining type aliases
jam1garner 64c61a3
Fix `future_prelude_collision` adding unneeded generic arguments
jam1garner 32408cf
move test to rust-2021 directory
nikomatsakis 19ba219
add inherent-method-collision test
nikomatsakis 8d42f3d
don't warn for fully qual inherent methods
nikomatsakis 17ab9c0
extract Rust 2021 prelude logic to its own module
nikomatsakis 3efa5b4
Emit additional arguments in `future_prelude_collision` lint
jam1garner 56108f6
Add future_prelude_collision to 2021 compat group
jam1garner dbc9da7
WIP: Find the imports that were used to reach a method
nikomatsakis 9bee7f0
WIP: identify the case where we need to serialize path
nikomatsakis b18704d
Fix future_prelude_collision for object calls and use as _
jam1garner 3dc47e2
do not run rustfix for future-prelude-collision-shadow
nikomatsakis 186c09a
add test for `dyn` collisions
nikomatsakis aa3580b
introduce helper function
nikomatsakis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: We should link to the edition guide once the 2021 stuff is online.