diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-01-31 02:10:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-31 02:10:41 +0100 |
| commit | 7ebb0a8c8ec51c8baa3420ffa0f3621bcec791ca (patch) | |
| tree | 006c6c1a0f201f2971be9ee31c8033bf7e6d02ba /src/rustllvm/RustWrapper.cpp | |
| parent | ab844daadb8c513488c9dc349120a58c4a71b27b (diff) | |
| parent | 74e9057905c3c24303245a4a2c5671d80a9503b6 (diff) | |
| download | rust-7ebb0a8c8ec51c8baa3420ffa0f3621bcec791ca.tar.gz rust-7ebb0a8c8ec51c8baa3420ffa0f3621bcec791ca.zip | |
Rollup merge of #57106 - matthiaskrgr:trim_must_use, r=sfackler
Mark str::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
