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 note if method is called on a function object #32053

Closed
wants to merge 6 commits into from
Closed

Add note if method is called on a function object #32053

wants to merge 6 commits into from

Commits on Mar 5, 2016

  1. Add note if method is called on a function object

    Fixes issue #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(..)`?
    Daniel J Rollins committed Mar 5, 2016
    Configuration menu
    Copy the full SHA
    904281f View commit details
    Browse the repository at this point in the history
  2. Fix code review actions in PR #32053

    Split `fileline_note` into a `file_line note` and `span_suggestion` as per
    @Manishearth's suggestions.
    
    Change nested `match`es to `if let`s.
    Daniel J Rollins committed Mar 5, 2016
    Configuration menu
    Copy the full SHA
    87b8197 View commit details
    Browse the repository at this point in the history
  3. Add test for issue 29124

    Daniel J Rollins committed Mar 5, 2016
    Configuration menu
    Copy the full SHA
    d4cc783 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    091d143 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2016

  1. Add Help and Suggestion to issue-29124 tests

    Daniel J Rollins committed Mar 6, 2016
    Configuration menu
    Copy the full SHA
    086feeb View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2016

  1. typeck: Fix merge conflicts

    Daniel J Rollins committed Mar 18, 2016
    Configuration menu
    Copy the full SHA
    4f1ec4b View commit details
    Browse the repository at this point in the history