]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #89786 - jkugelman:must-use-len-and-is_empty, r=joshtriplett
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 31 Oct 2021 12:20:05 +0000 (13:20 +0100)
committerGitHub <noreply@github.com>
Sun, 31 Oct 2021 12:20:05 +0000 (13:20 +0100)
commit88e5ae2dd3cf4a0bbb5af69ef70e80d5dc7b462c
tree2b75ed54b12905fbfd24ed552d20956ded93847f
parent6c5aa765fb64758825fae0371b54ef07c3589e7a
parent6745e8da06e1fd313d2ff20ff9fe8d8dc4714479
Rollup merge of #89786 - jkugelman:must-use-len-and-is_empty, r=joshtriplett

Add #[must_use] to len and is_empty

Parent issue: #89692

r? `@joshtriplett`
library/alloc/src/collections/binary_heap.rs
library/alloc/src/collections/btree/map.rs
library/alloc/src/collections/btree/set.rs
library/alloc/src/collections/linked_list.rs
library/alloc/src/string.rs
library/core/src/ptr/non_null.rs
library/core/src/str/mod.rs
library/std/src/ffi/os_str.rs
library/std/src/fs.rs
library/std/src/os/unix/net/ancillary.rs