-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Implement (most of) RFC 1214 #27641
Merged
Merged
Implement (most of) RFC 1214 #27641
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
4561607
Don't report a hard error if there are inference failures until
nikomatsakis 9289552
Define the `wf` and `outlives` relation separately, unlike the existing
nikomatsakis b196315
Add two new kinds of predicates, WellFormed and ObjectSafe.
nikomatsakis ad47bd8
Extend ParameterEnvironment to remember the free_id, and to be usable
nikomatsakis 8d98877
Implement a new wfcheck to replace the old wf; this new code only issues
nikomatsakis 6bb1e22
New WF condition requires checking that argument types are WF
nikomatsakis 39d164d
New tests --- check that wf relation is being checked in various posi…
nikomatsakis 75ee8f1
Introduce a "origin/cause" for new requirements (or bugfixes...) intr…
nikomatsakis d159977
Generalize the outlives rule for projections to handle the new cases;
nikomatsakis 788a802
New tests --- projection outlives relation
nikomatsakis 91b3e9c
Fallout in libs -- misc missing bounds uncovered by WF checks.
nikomatsakis d15d743
Add FIXME for apparent stage0 regression
nikomatsakis 09bf2fe
Fallout in tests -- we now report an error if you even reference a type
nikomatsakis 92d16d9
Fallout in tests -- break the object safety part into a separate file…
nikomatsakis 532fcb2
Fallout in tests -- break this test into three tests, since we later saw
nikomatsakis f4aaedb
Fallout in tests -- break test into a run-pass and compile-fail compo…
nikomatsakis dee8b54
Fallout in tests --- misc error message changes, WF fixes
nikomatsakis 7ed39c6
Fallout in tests -- explain an interesting test failure having to
nikomatsakis ff39ee9
wip 082a011e2bd5c8254e6c1b2fdc97a6fcb2927a7f rm binary
nikomatsakis b7e849b
infer/mod.rs: add doc comment to RFC1214 variant
nikomatsakis 0582fed
middle/outlives.rs: fix typo
nikomatsakis 9c3a866
middle/outlives.rs: s/temp/subcomponents/
nikomatsakis c9a49f9
regionck.rs: remove dead fn type_strictly_outlives
nikomatsakis fb1b6fc
regionck.rs: correct misuse of ty.regions() rather than regions()
nikomatsakis 9c5cfea
traits: consider whether origin is RFC1214 when caching, ensuring
nikomatsakis a264440
outlives: convert outlives to use an exhaustive match, for better
nikomatsakis a7c9a15
outlives.rs: remove use of ty.walk and replace with recursive of
nikomatsakis 2b2a113
check/wf.rs: change to use correct span and older WF algorithm;
nikomatsakis 157422a
Update test error messages based on changes to wfcheck; also, break
nikomatsakis c106dd4
traits/error_reporting.rs: always note obligation cause
nikomatsakis 213326c
outlives.rs: correct typo
nikomatsakis fda9b83
regionck.rs: add a delayed_span_bug call to validate an asserrtion
nikomatsakis ad700ab
ty.rs: document/cleanup required_region_bounds a bit
nikomatsakis 9f3f69e
regionck.rs: experimentally adopt a more conservative strategy for
nikomatsakis e1fa00b
add regression test for #27592. Fixes #27592.
nikomatsakis 33200a3
expr_use_visitor: Remove FIXME that is no longer needed (and in fact
nikomatsakis 401a243
astconv.rs: extended ast_ty_to_ty debugging
nikomatsakis 7f8942c
Correct nits from @nrc
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
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
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.
what is the role of implicator now? just backwards compatibility?
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.
@arielb1
yes, it can be removed once we change from warnings to hard errors.