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

Add new help messages for E0425 #30584

Merged
merged 1 commit into from
Jan 9, 2016
Merged

Conversation

GuillaumeGomez
Copy link
Member

Last part of #30413.

r? @pnkfelix

@pnkfelix
Copy link
Member

pnkfelix commented Jan 5, 2016

@GuillaumeGomez where are the tests of the new messages you are adding here?

see e.g. pnkfelix@6946995 from #30413

@GuillaumeGomez
Copy link
Member Author

Tests have been added.

}
} else {
help_msg = format!("Module `{module}` cannot be used as an object!",
Copy link
Member

Choose a reason for hiding this comment

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

hmm, do we used the terminology "used as an object" elsewhere? (That is supposed to mean that its been used as the receiver in a method call or field lookup, right?)

On the one hand, your phrasing is succinct. But on the other hand, I'm not sure everyone will understand what it means ...

Copy link
Member

Choose a reason for hiding this comment

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

oh, duh, I should have looked at the test!

Copy link
Member

Choose a reason for hiding this comment

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

Okay, so I don't like the phrasing "used as an object" here.

I would instead say something like "Module {module} cannot be passed around as a first-class value."

(except that may be a bit long winded... maybe just "Module {module} cannot be the value of an expression" ?)

@GuillaumeGomez
Copy link
Member Author

I changed the message, tell me if it fits better what you have in mind.

@pnkfelix
Copy link
Member

pnkfelix commented Jan 8, 2016

@GuillaumeGomez thanks, sorry for the slow processing of the PR!

@pnkfelix
Copy link
Member

pnkfelix commented Jan 8, 2016

@bors r+ c078769

@pnkfelix
Copy link
Member

pnkfelix commented Jan 8, 2016

@bors rollup+

@pnkfelix
Copy link
Member

pnkfelix commented Jan 8, 2016

@bors rollup

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Jan 8, 2016
bors added a commit that referenced this pull request Jan 8, 2016
@bors bors merged commit c078769 into rust-lang:master Jan 9, 2016
@GuillaumeGomez GuillaumeGomez deleted the new_handles branch January 9, 2016 15:02
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.

3 participants