about summary refs log tree commit diff
path: root/src/test/ui/fn_must_use.rs
AgeCommit message (Collapse)AuthorLines
2018-12-25Remove licensesMark Rousskov-10/+0
2018-10-12`#[must_use]` for associated functions is supposed to actually workZack M. Davis-0/+8
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.)
2018-04-28stabilize `#[must_use]` for functions and must-use operatorsZack M. Davis-0/+78
This is in the matter of RFC 1940 and tracking issue #43302.