Skip to content

rustc: Give a hint for missing self/super for imports & reduce number of redundant errors #14879

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 2 commits into from
Jun 18, 2014

Conversation

Ryman
Copy link
Contributor

@Ryman Ryman commented Jun 13, 2014

No description provided.

parent.module().external_module_children.borrow_mut()
.insert(name.name,
external_module.clone());
self.build_reduced_graph_for_external_crate(external_module);
Copy link
Member

Choose a reason for hiding this comment

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

In the future, could you split out cosmetic changes like this into separate commits? Sadly it's sometimes tough to see if something changed here or if it's just a reformatting (thanks github diffs!)

@alexcrichton
Copy link
Member

This seems like it's definitely an improvement, thanks!

@jdm
Copy link
Contributor

jdm commented Jun 16, 2014

This is a great usability improvement - these errors have always bothered me. Great work!

@Ryman
Copy link
Contributor Author

Ryman commented Jun 18, 2014

@alexcrichton r?

  • Revoked a number of changes that fit 100char rather than 80char.
  • kept . {} with lowercase first sentence, uppercase second.
  • changed to suggest absolute module path.

@bors bors closed this Jun 18, 2014
@bors bors merged commit 3791a85 into rust-lang:master Jun 18, 2014
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.

4 participants