rust/compiler/rustc_resolve/src
bors 0978711950 Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compiler-errors,davidtwco,estebank,oli-obk
diagnostics: if AssocFn has self argument, describe as method

Discussed in https://rust-lang.zulipchat.com/#narrow/stream/147480-t-compiler.2Fwg-diagnostics/topic/.22associated.20function.22.20vs.20.22method.22/near/329265515

This commit also changes the tooltips on rustdoc intra-doc links targeting methods.

For anyone not sure why this is being done, see the Reference definitions of these terms in <https://doc.rust-lang.org/1.67.1/reference/items/associated-items.html#methods>

> Associated functions whose first parameter is named `self` are called methods and may be invoked using the [method call operator](https://doc.rust-lang.org/1.67.1/reference/expressions/method-call-expr.html), for example, `x.foo()`, as well as the usual function call notation.

In particular, while this means it's technically correct for rustc to refer to a method as an associated function (and there are a few cases where it'll still do so), rustc *must never* use the term "method" to refer to an associated function that does not have a `self` parameter.
2023-02-23 00:19:12 +00:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Auto merge of #105462 - oli-obk:feeding_full, r=cjgillot,petrochenkov 2023-02-21 01:19:25 +00:00
build_reduced_graph.rs Remove definitions field that is only needed for one method 2023-02-20 15:28:59 +00:00
check_unused.rs Prepare for adding a TyCtxt to Resolver 2023-02-20 10:38:48 +00:00
def_collector.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
diagnostics.rs Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compiler-errors,davidtwco,estebank,oli-obk 2023-02-23 00:19:12 +00:00
effective_visibilities.rs Remove ResolverTree 2023-02-20 15:28:59 +00:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
ident.rs Prepare for adding a TyCtxt to Resolver 2023-02-20 10:38:48 +00:00
imports.rs resolve: Remove ImportResolver 2023-02-22 21:29:38 +04:00
late.rs Auto merge of #105462 - oli-obk:feeding_full, r=cjgillot,petrochenkov 2023-02-21 01:19:25 +00:00
lib.rs Rollup merge of #108353 - petrochenkov:rmir, r=cjgillot 2023-02-22 20:06:00 +01:00
macros.rs resolve: Remove ImportResolver 2023-02-22 21:29:38 +04:00
rustdoc.rs Rollup merge of #108129 - GuillaumeGomez:correctly-handle-links-starting-with-whitespace, r=petrochenkov 2023-02-19 14:47:55 +01:00