about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_system.rs
diff options
context:
space:
mode:
authorJohn Kugelman <john@kugelman.name>2021-10-09 01:01:40 -0400
committerJohn Kugelman <john@kugelman.name>2021-10-09 01:01:40 -0400
commit54d807cfc7f529ac1812ff1a9f4475c109f308e8 (patch)
treee39c4a1c7867c5f69f2dd671ee2494be6fd7e6b9 /compiler/rustc_codegen_gcc/example/alloc_system.rs
parentf8751436ffce35cd1b7291b03b394166b77ff0da (diff)
downloadrust-54d807cfc7f529ac1812ff1a9f4475c109f308e8.tar.gz
rust-54d807cfc7f529ac1812ff1a9f4475c109f308e8.zip
Add #[must_use] to string/char transformation methods
These methods could be misconstrued as modifying their arguments instead
of returning new values.

Where possible I made the note recommend a method that does mutate in
place.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_system.rs')
0 files changed, 0 insertions, 0 deletions