about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-22 13:29:35 +0000
committerbors <bors@rust-lang.org>2024-04-22 13:29:35 +0000
commitfc6dfeb1bfb496f0aa1d3980b1c1e76586a29ae4 (patch)
tree41e304a8f21eff7fe6adabcd1b06cfcf4cd73989 /compiler/rustc_codegen_llvm/src
parentc642d0cab63546ce094b75f2d31e0639d9b12399 (diff)
parent54de78a2128ce1b9019f2bf2380c581e054bfe37 (diff)
downloadrust-fc6dfeb1bfb496f0aa1d3980b1c1e76586a29ae4.tar.gz
rust-fc6dfeb1bfb496f0aa1d3980b1c1e76586a29ae4.zip
Auto merge of #11852 - rust-lang:single-char-pattern-ascii-only, r=xFrednet
reduce `single_char_pattern` to only lint on ascii chars

This should mostly fix the `single_char_pattern` lint, because with a single byte, the optimizer will usually see through the char-to-string-expansion and single loop iteration. This fixes #11675 and #8111.

Update: As per the meeting on November 28th, 2023, we voted to also downgrade the lint to pedantic.

---

changelog: downgrade [`single_char_pattern`] to `pedantic`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions