about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-17 15:45:38 +0000
committerbors <bors@rust-lang.org>2024-06-17 15:45:38 +0000
commit0625183e282c5bd193051a644ce30c2cc2922562 (patch)
treefee87bd0b0bf8368359dd6684c10fce0edc88478 /compiler/rustc_codegen_gcc/example/std_example.rs
parent95504810568c69018cd1315dd7ae9e3e48d0e866 (diff)
parent059eaf1386e36791785275e22d00b999a5dc12f4 (diff)
downloadrust-0625183e282c5bd193051a644ce30c2cc2922562.tar.gz
rust-0625183e282c5bd193051a644ce30c2cc2922562.zip
Auto merge of #12903 - Jarcho:issue_12284, r=y21
Fix ICE in `upper_case_acronyms`

fixes #12284

The logic has been rewritten to avoid allocations. The old version allocated multiple vecs and strings for each identifier. The new logic allocates a single string only when the lint triggers.

This also no longer lints on strings which don't start with an uppercase letter (e.g. `something_FOO`).

changelog: none
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions