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

distinguish the method and associated function diagnostic information #99064

Merged
merged 1 commit into from
Aug 26, 2022

Commits on Jul 9, 2022

  1. distinguish the method and associated function diagnostic information

    Methods are defined within the context of a struct and their first parameter is always self
    Associated functions don’t take self as a parameter
    	modified:   compiler/rustc_typeck/src/check/method/suggest.rs
    	modified:   src/test/ui/auto-ref-slice-plus-ref.stderr
    	modified:   src/test/ui/block-result/issue-3563.stderr
    	modified:   src/test/ui/issues/issue-28344.stderr
    	modified:   src/test/ui/suggestions/dont-suggest-pin-array-dot-set.stderr
    	modified:   src/test/ui/suggestions/suggest-methods.stderr
    	modified:   src/test/ui/traits/trait-upcasting/subtrait-method.stderr
    Yiming Lei committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    54d35e7 View commit details
    Browse the repository at this point in the history