about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-12-24 21:43:51 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2018-12-26 20:01:52 +0100
commit809a1a86e04d03619642ab9074b9c95a24cbf82b (patch)
treef6f543e9a79c1e1519b5e88cf0d09fca3d0bcfbb /src/rustllvm/RustWrapper.cpp
parent79d8a0fcefa5134db2a94739b1d18daa01fc6e9f (diff)
downloadrust-809a1a86e04d03619642ab9074b9c95a24cbf82b.tar.gz
rust-809a1a86e04d03619642ab9074b9c95a24cbf82b.zip
mark str::string::String.trim.* functions as #[must_use].
The functions return a reference to a new object and do not modify in-place
as the following code shows:
````
let s = String::from("   hello   ");
s.trim();
assert_eq!(s, "   hello   ");
````

The new reference should be bound to a variable as now indicated by #[must_use].
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions