about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-17 02:54:18 +0200
committerGitHub <noreply@github.com>2019-05-17 02:54:18 +0200
commita80a1d0e0d0d9cd47fe6070a7450fa81ccd0856d (patch)
tree9e1badb00f6b3b89b907801b66d6343e3ef806eb /src/libsyntax/parse/parser.rs
parent70b38d13a530a625725aa9a8cb7c959fa52e3747 (diff)
parent9161a4dbefd613fd86fab4bfea88ad93c55fb4da (diff)
downloadrust-a80a1d0e0d0d9cd47fe6070a7450fa81ccd0856d.tar.gz
rust-a80a1d0e0d0d9cd47fe6070a7450fa81ccd0856d.zip
Rollup merge of #60894 - cuviper:hash_set_entry, r=cramertj,Centril
Add entry-like methods to HashSet

* `HashSet::get_or_insert`
* `HashSet::get_or_insert_with`

These provide a simplification of the `Entry` API for `HashSet`, with
names chosen to match the similar methods on `Option`.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions