Uh oh!
There was an error while loading. Please reload this page.
Add note if method is called on a function object - #32358
Merged
Conversation
added 5 commits
March 19, 2016 22:06
Fixes issue rust-lang#29124. If method is called on a function type a note is generated to suggest that the developer may have forgotten to call it. e.g. fn main() { let mut guess = String::new(); std::io::stdin.read_line(&mut guess); } will generate the note: note: called method on function type. did you mean `std::io::stdin().read_line(..)`?
Split `fileline_note` into a `file_line note` and `span_suggestion` as per @Manishearth's suggestions. Change nested `match`es to `if let`s.
rust-highfive
commented
Mar 19, 2016
Contributor
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
Manishearth
commented
Mar 19, 2016
MemberAuthor
@bors r+ |
bors
commented
Mar 19, 2016
Collaborator
📌 Commit 88ad229 has been approved by |
bors
commented
Mar 20, 2016
Collaborator
⌛ Testing commit 88ad229 with merge b6fcab5... |
bors added a commit
that referenced
this pull request
Mar 20, 2016
Add note if method is called on a function object rebase of #32053
bors
commented
Mar 20, 2016
Collaborator
Manishearth
commented
Mar 20, 2016
MemberAuthor
This merged. Thanks, @djrollins! |
Manishearth added a commit
to Manishearth/rust
that referenced
this pull request
Apr 1, 2016
…arth Remove accidental `println!` This removes a use of `println!` added in rust-lang#32358 that appears to accidental. r? @Manishearth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rebase of #32053