Skip to content

Add feature(nll) - #28

Merged
nikomatsakis merged 7 commits into
nikomatsakis:nll-masterfrom
spastorino:feature-nll
Dec 20, 2017
Merged

nikomatsakis merged 7 commits into
nikomatsakis:nll-masterfrom
spastorino:feature-nll

Conversation

@spastorino

@spastorino spastorino commented Dec 19, 2017 •

Copy link
Copy Markdown
Collaborator

This is for rust-lang#46716

Comment thread src/librustc/session/mod.rs Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am debating whether we should have #![feature(nll)] enable dump-cause or not. The main reason not to is that it is so sloooooow right now. I feel like we might want to enable it once we make it faster (and then we wouldn't have this switch at all.)

@nikomatsakis nikomatsakis left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks basically right, modulo the question about -Znll-dump-cause, and the fact that it needs to handle -Zborrowck=mir

@spastorino spastorino changed the title [WIP] Add feature(nll) Add feature(nll) Dec 20, 2017
@spastorino

Copy link
Copy Markdown
Collaborator Author

This should be ready!

spastorino and others added 7 commits December 20, 2017 04:22
In particular, -Znll might as well imply -Zborrowck=mir by default,
just like `#![feature(nll)]` does.

Also, if NLL is in use, no reason to emit end regions. The NLL pass
just strips them out anyway.
Also, keep reporting AST-based region errors that are not occuring in
a fn body.
@nikomatsakis
nikomatsakis merged commit 0f41fbb into nikomatsakis:nll-master Dec 20, 2017
nikomatsakis pushed a commit that referenced this pull request Sep 25, 2019
Sync to rust-lang/rust master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants