diff options
| author | bors <bors@rust-lang.org> | 2018-11-20 15:15:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-11-20 15:15:53 +0000 |
| commit | 3991bfbbc212ad4825588bb18ad39344e4b600b7 (patch) | |
| tree | af04391dc28496ca6112c1089bde65b594d08a7b /src/libsyntax/ext | |
| parent | 15e661328198540e35670138f485bbc06a866464 (diff) | |
| parent | 737dec0ec16b2606380ed73166b82e44be080ab5 (diff) | |
| download | rust-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/libsyntax/ext')
0 files changed, 0 insertions, 0 deletions
