about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-09 11:56:07 +0200
committerGitHub <noreply@github.com>2021-10-09 11:56:07 +0200
commit827b540424cbd820ff7510083e65983dbe802b78 (patch)
tree96855ab8d1cd7a324891cf47fbc5ac16fd110612 /compiler/rustc_macros/src
parentee804594c8385c769dfde983a9ba455999a2f83e (diff)
parent2ec7588aa1a00c1f2287ee84a0d552f344746333 (diff)
downloadrust-827b540424cbd820ff7510083e65983dbe802b78.tar.gz
rust-827b540424cbd820ff7510083e65983dbe802b78.zip
Rollup merge of #89694 - jkugelman:must-use-string-transforms, r=joshtriplett
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.

Parent issue: #89692
Diffstat (limited to 'compiler/rustc_macros/src')
0 files changed, 0 insertions, 0 deletions