Skip to content

Refactor how the parser looks for sub-modules #26750

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 1 commit into from
Jul 13, 2015

Conversation

nrc
Copy link
Member

@nrc nrc commented Jul 3, 2015

This makes the functionality usable from outside the parser

This makes the functionality usable from outside the parser
@rust-highfive
Copy link
Contributor

r? @sfackler

(rust_highfive has picked a reviewer for you, use r? to override)

/// Information about the path to a module.
pub struct ModulePath {
pub name: String,
pub path_exists: bool,
Copy link
Member

Choose a reason for hiding this comment

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

This probably makes more sense inside of ModulePathError, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's needed in both cases. In the non-error case, there can still be an error if !self.owns_directory and then we need to check path_exists. That can't be checked without a parser, so we need to be pass out path_exists here.

@nrc
Copy link
Member Author

nrc commented Jul 12, 2015

@sfackler review ping

@sfackler
Copy link
Member

@bors r+

sorry

@bors
Copy link
Collaborator

bors commented Jul 12, 2015

📌 Commit f3ba950 has been approved by sfackler

bors added a commit that referenced this pull request Jul 13, 2015
This makes the functionality usable from outside the parser
@bors
Copy link
Collaborator

bors commented Jul 13, 2015

⌛ Testing commit f3ba950 with merge 7ea2674...

@bors bors merged commit f3ba950 into rust-lang:master Jul 13, 2015
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