diff options
| author | bors <bors@rust-lang.org> | 2023-02-23 00:19:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-23 00:19:12 +0000 |
| commit | daa94d2583162a499227faa91dae474160fda460 (patch) | |
| tree | 09beb120679c19782eef50962d8858e8f1df2e29 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 95cd5284d4e9f4006a898e62d90fa18f18867bb4 (diff) | |
| parent | d254516be1aa62a33a4d336278d0e79b509bc1cf (diff) | |
| download | rust-daa94d2583162a499227faa91dae474160fda460.tar.gz rust-daa94d2583162a499227faa91dae474160fda460.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
