about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-19 13:09:04 +0000
committerbors <bors@rust-lang.org>2018-06-19 13:09:04 +0000
commita646c912f76412921b27b426a1da83e7df981dcc (patch)
treebba0a543c01ddbae6175a4f7833473625c3aa260 /src/test/incremental/thinlto
parent72b0f915ba84e08cd21c799e859d2329e95ab004 (diff)
parent01e82f111e618c5907b93504df29aec152821810 (diff)
downloadrust-a646c912f76412921b27b426a1da83e7df981dcc.tar.gz
rust-a646c912f76412921b27b426a1da83e7df981dcc.zip
Auto merge of #51081 - kornelski:examplestr, r=steveklabnik
Use String, not &str in some collection examples

Discussed in #46966

Overuse of borrowed values in data structures is a common mistake I see in Rust user forums. Users who copy&paste such examples end up fighting with the borrow checker as soon as they replace string literals with some real values.

This changes a couple of examples to use `String`, and it adds opportunity to demonstrate use of `Borrow`.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions