diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-10 22:40:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 22:40:33 +0100 |
| commit | 5510803fe98660d96e9b6b9ba95cc00b8539155f (patch) | |
| tree | 6ec15978f6a0181cefeaba3d31ca4d9bd09a1aee /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | b7b4d7742e42d821acf15663ca3c0285cc20fa76 (diff) | |
| parent | 72a6974e455793f9dcc370cc8bdf9c055b843d39 (diff) | |
| download | rust-5510803fe98660d96e9b6b9ba95cc00b8539155f.tar.gz rust-5510803fe98660d96e9b6b9ba95cc00b8539155f.zip | |
Rollup merge of #91482 - JosephTLyons:update-HashMap-and-BTreeMap-documentation, r=yaahc
Update documentation to use `from()` to initialize `HashMap`s and `BTreeMap`s As of Rust 1.56, `HashMap` and `BTreeMap` both have associated `from()` functions. I think using these in the documentation cleans things up a bit. It allows us to remove some of the `mut`s and avoids the Initialize-Then-Modify anti-pattern.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
0 files changed, 0 insertions, 0 deletions
