about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-08 19:09:42 +0000
committerbors <bors@rust-lang.org>2024-01-08 19:09:42 +0000
commit3b8323d79024efb4ed4664faa4f29a1a7117177a (patch)
treeb48a79a2dc54a0057c90991b8488504390f62e4f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent7fbaba856b711f9e945a59a4ba6647a973912564 (diff)
parenta843996e81cd6993b9125708558c3ec5b674baf1 (diff)
downloadrust-3b8323d79024efb4ed4664faa4f29a1a7117177a.tar.gz
rust-3b8323d79024efb4ed4664faa4f29a1a7117177a.zip
Auto merge of #12049 - cocodery:fix/issue#11243, r=Alexendoo
fix/issue#11243: allow 3-digit-grouped binary in non_octal_unix_permissions

fixes [Issue#11243](https://github.com/rust-lang/rust-clippy/issues/11243)

Issue#11243 suggest lint `non_octal_unix_permissions` should not report binary format literal unix permissions as an error, and we think binary format is a good way to understand these permissions.

To solve this problem, we need to add check for binary literal, which is written in function `check_binary_unix_permissions` , only `binary, 3 groups and each group length equals to 3` is a legal format.

changelog: [`non_octal_unix_permissions`]: Add check for binary format literal unix permissions like 0b111_111_111
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions