about summary refs log tree commit diff
path: root/src/test/ui/fn_must_use.rs
AgeCommit message (Collapse)AuthorLines
2021-03-20Move some tests to more reasonable directories - 5Caio-76/+0
2020-04-23Moving more build-pass tests to check-passVal Markovic-1/+1
One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
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.