about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-11-20 15:15:53 +0000
committerbors <bors@rust-lang.org>2018-11-20 15:15:53 +0000
commit3991bfbbc212ad4825588bb18ad39344e4b600b7 (patch)
treeaf04391dc28496ca6112c1089bde65b594d08a7b /src/libstd/sys
parent15e661328198540e35670138f485bbc06a866464 (diff)
parent737dec0ec16b2606380ed73166b82e44be080ab5 (diff)
downloadrust-3991bfbbc212ad4825588bb18ad39344e4b600b7.tar.gz
rust-3991bfbbc212ad4825588bb18ad39344e4b600b7.zip
Auto merge of #55663 - varkor:must_use-traits, r=estebank
Allow #[must_use] on traits

Addresses https://github.com/rust-lang/rust/issues/55506, but we'll probably want to add it to some library traits like `Iterator` before the issue is considered fixed. Fixes https://github.com/rust-lang/rust/issues/51560.

`#[must_use]` is already permitted on traits, with no effect, so this seems like a bug fix, but I might be overlooking something. This currently warns for `impl Trait` or `dyn Trait` when the `Trait` is `#[must_use]` (although I don't think the latter is currently possible, so it's simply future-proofed).
Diffstat (limited to 'src/libstd/sys')
0 files changed, 0 insertions, 0 deletions