forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify implicator to take a "syntactic" approach, ensuring that fns and
object types impose minimal constraints on their arguments. Also modify regionck to consider `<P0 as TraitRef<P1..Pn>>::Foo: 'r` to hold if `Pi: 'r` (for all `i`). This is a fallback, because in some cases we can impose looser requirements. Currently the inference is sound but not precise. Fixes rust-lang#24622. Adapted cherry-pick of 45f93290969f19d8217a2e4dff7b12dc81957eb6.
- Loading branch information
1 parent
76ff835
commit 11fa4d2
Showing
20 changed files
with
654 additions
and
132 deletions.
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.