diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2018-10-11 23:10:37 -0700 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-10-12 22:01:43 -0700 |
| commit | ab91a6b4df04a60cf19682b1f016848d3e4784ad (patch) | |
| tree | 10fd45f1eaf3b09a4b84b5f1c8154e46d2334042 /src/libsyntax/parse | |
| parent | c47785f6beb7f2047b2915c42d1d3d4c0ab0abf0 (diff) | |
| download | rust-ab91a6b4df04a60cf19682b1f016848d3e4784ad.tar.gz rust-ab91a6b4df04a60cf19682b1f016848d3e4784ad.zip | |
`#[must_use]` for associated functions is supposed to actually work
In the comments of (closed, defunct) pull request #54884, Mazdak "Centril" Farrokhzad noted that must-use annotations didn't work on an associated function (what other communities might call a "static method"). Subsequent logging revealed that in this case we have a `Def::Method`, whereas the lint pass was only matching on `Def::Fn`. (One could argue that those def-names are thereby misleading—must-use for self-ful methods have always worked—but documenting or reworking that can be left to another day.)
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
