-
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
NLL feature complete (adds feature(nll)
)!
#46862
Merged
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
f3335c6
simplify `AnonTypeDecl` in the impl trait code
nikomatsakis f6741d0
region_infer/values.rs: rustfmt
nikomatsakis e447b54
Add tracking of causes for nll
Nashenas88 39b0e49
rustfmt: borrow_check/mod.rs
nikomatsakis 594c386
dump out causal information for "free region" errors
nikomatsakis 741ef41
use Rc to store nonlexical_regioncx in Borrows
nikomatsakis 0e64a75
integrate -Znll-dump-cause into borrowck
nikomatsakis fe89f4b
get the `DefiningTy` from the `body_owner_kind` not type
nikomatsakis 4a967c9
propagate `region_bound_pairs` into MIR type-check
nikomatsakis e96f4be
extract `instantiate_anon_types` to the `InferCtxt`
nikomatsakis 8e64ba8
extract `constrain_anon_types` to the `InferCtxt`
nikomatsakis 7f50e7c
extract the writeback code for anon types into InferCtxt
nikomatsakis a66c651
pass `UniversalRegions` to MIR type-checker instead of fields
nikomatsakis da63aaa
extract `input_output` code into its own module
nikomatsakis 93afb1a
connect NLL type checker to the impl trait code
nikomatsakis 58b0506
Move MirVisitable to visit.rs
spastorino 6d2987c
Move categorize logic out of visit_local function
nikomatsakis 3a185a5
Add three point error handling to borrowck
spastorino e28d03f
only dump causes if we have nothing better
nikomatsakis 4089d14
move nice-region-error reporting into its own module
nikomatsakis 93498e0
make `util` fns private to nice_region_error
nikomatsakis 3720242
extract `find_anon_type` into its own module
nikomatsakis a28ab84
nice_region_error: rustfmt
nikomatsakis cba4732
introduce a `NiceRegionError` type and define methods on that
nikomatsakis de56308
use `Option<ErrorReported>` instead of `bool`
nikomatsakis 94e7072
give precedence to `try_report_named_anon_conflict` method
nikomatsakis 6b39781
connect NLL machinery to the `NiceRegionError` code
nikomatsakis 3788f42
refactor `report_generic_bound_failure` to be usable by NLL code
nikomatsakis 508a831
use `report_generic_bound_failure` when we can in the compiler
nikomatsakis 95b6148
Add nll_dump_cause helper to Session
spastorino 0b2db1e
Add nll feature and make nll imply nll_dump_cause
spastorino 2019d69
feature nll implies two-phase-borrows
spastorino e980fb8
feature nll implies borrowck=mir
spastorino cfa4ffa
document and tweak the nll, use_mir, etc helpers
nikomatsakis 80c510e
when using feature(nll), don't warn about AST-based region errors
nikomatsakis cba8256
add some run-pass tests for NLL showing that things work as expected
nikomatsakis 3f490ca
convert region-liveness-drop{-,-no-}may-dangle.rs into ui tests
nikomatsakis 4f549fe
improve comment about instantiating anon types
nikomatsakis d925f4d
fix truncated comment
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
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.
call
leaves garbage in the destination on the unwind path, so the old value of the variable is still irrelevant - i.e. it's still a def.