about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-06-28 08:48:07 +0000
committerGitHub <noreply@github.com>2025-06-28 08:48:07 +0000
commit428208eb9b61f44e5bbab70feea42a8d55994230 (patch)
tree463aa21e67c60f8ee725fc122f820f9b798aa384 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent8633bcbc3c7f71e463c7c9f81b03f0aa11728eb8 (diff)
parent7e406e276a1778390c06ce40a9a4929e3d371776 (diff)
downloadrust-428208eb9b61f44e5bbab70feea42a8d55994230.tar.gz
rust-428208eb9b61f44e5bbab70feea42a8d55994230.zip
Fix `disallowed_script_idents` FP on identifiers with `_` (#15123)
Closes rust-lang/rust-clippy#15116

The cause for this issue is that `_` belongs to the `Common` catagory in
unicode instead of `Latin` like other ASCII alphabets. Since ASCII
characters are always allowed, I just added an extra `is_ascii()` check
to ensure this.

changelog: [`disallowed_script_idents`] fix FP on identifiers with `_`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions