about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/asm.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-10 22:40:33 +0100
committerGitHub <noreply@github.com>2021-12-10 22:40:33 +0100
commit5510803fe98660d96e9b6b9ba95cc00b8539155f (patch)
tree6ec15978f6a0181cefeaba3d31ca4d9bd09a1aee /compiler/rustc_codegen_llvm/src/asm.rs
parentb7b4d7742e42d821acf15663ca3c0285cc20fa76 (diff)
parent72a6974e455793f9dcc370cc8bdf9c055b843d39 (diff)
downloadrust-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