Skip to content

Add feature(nll) #28

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

Merged
merged 7 commits into from
Dec 20, 2017
Merged

Conversation

spastorino
Copy link
Collaborator

@spastorino spastorino commented Dec 19, 2017

This is for rust-lang#46716

self.features.borrow().nll || self.opts.debugging_opts.nll
}
pub fn nll_dump_cause(&self) -> bool {
self.features.borrow().nll || self.opts.debugging_opts.nll_dump_cause
Copy link
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.)

Copy link
Owner

@nikomatsakis nikomatsakis left a comment

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
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