about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-05 16:07:19 -0700
committerGitHub <noreply@github.com>2020-07-05 16:07:19 -0700
commit5311daa136907146d1bb7408ab603b7f93025f9e (patch)
tree50926ceec3b71bc47341d33e3d166ed171659d53 /src/test/codegen/src-hash-algorithm
parent2753fab7ce3647033146b07c8b6c9f4856a910b0 (diff)
parentb4337ab8c387658b7012fa242e429f46c5f31141 (diff)
downloadrust-5311daa136907146d1bb7408ab603b7f93025f9e.tar.gz
rust-5311daa136907146d1bb7408ab603b7f93025f9e.zip
Rollup merge of #72688 - djugei:master, r=Amanieu
added .collect() into String from Box<str>

I have not created an rfc, because i felt like this is a very minor change.

i have just set a random feature name and rust version as stability attribute, i expect to have to change that, i just don't know what the policy on that is. all guides i could find focused on contributing to the compiler, not contributing to the standard library.

drawbacks: more code in the standard library, could be replaced with specialization: base-implementation for AsRef\<str> and specialization for String and Cow. i can write that code if ppl want it.

advantages: using "real strings" i.e. Box\<str> is as ergonomic as string slices (&str) and string buffers (String) with iterators.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions