Skip to content
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

librustc: Make `use` statements crate-relative by default #4174

Closed
wants to merge 1 commit into from

Conversation

Projects
None yet
2 participants
@pcwalton
Copy link
Contributor

pcwalton commented Dec 13, 2012

r? @brson

@brson

This comment has been minimized.

Copy link

brson commented on src/librustc/middle/resolve.rs in e934c3b Dec 13, 2012

Is this a bug or a user-visible error? It should be using the session to report the error.

This comment has been minimized.

Copy link
Owner Author

pcwalton replied Dec 13, 2012

This is a user-visible error. It will error out when Failed bubbles to the top.

@brson

This comment has been minimized.

Copy link

brson commented on src/librustc/middle/resolve.rs in e934c3b Dec 13, 2012

There should probably be a compile-fail test for using super when there's no parent module.

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Dec 13, 2012

This doesn't make either self or super into keywords, but it does effectively make super a contextual keyword. Let's at least open issues to turn these into real keywords.

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Dec 13, 2012

r+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.