]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #89144 - sexxi-goose:insig_stdlib, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sun, 26 Sep 2021 19:36:00 +0000 (19:36 +0000)
committerbors <bors@rust-lang.org>
Sun, 26 Sep 2021 19:36:00 +0000 (19:36 +0000)
commit05044c2e6c043929a11537d7f6169eb3a2397bb8
treead74f466ebb0a828cf2ef5827c726e7fa41c7c3f
parentc09d6374324ee23cb5a4fe738f74369717dd642d
parent994793faabba1c490d108504b428ac653433ae44
Auto merge of #89144 - sexxi-goose:insig_stdlib, r=nikomatsakis

2229: Mark insignificant dtor in stdlib

I looked at all public [stdlib Drop implementations](https://doc.rust-lang.org/stable/std/ops/trait.Drop.html#implementors) and categorized them into Insigificant/Maybe/Significant Drop.

Reasons are noted here: https://docs.google.com/spreadsheets/d/19edb9r5lo2UqMrCOVjV0fwcSdS-R7qvKNL76q7tO8VA/edit#gid=1838773501

One thing missing from this PR is tagging HashMap as insigificant destructor as that needs some discussion.

r? `@Mark-Simulacrum`

cc `@nikomatsakis`
library/alloc/src/collections/btree/map.rs
library/alloc/src/collections/linked_list.rs
library/alloc/src/rc.rs
library/alloc/src/vec/mod.rs
library/std/src/collections/hash/map.rs