diff options
| author | Michael Goulet <michael@errs.io> | 2023-06-19 17:53:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-19 17:53:34 -0700 |
| commit | 935452b619033457c1d42411e72a813befc3009c (patch) | |
| tree | 8956ae709a6100d6e2f26a5dfd623a6a7e9f882c /compiler/rustc_codegen_gcc | |
| parent | 31d1fbf8d242df1be9ee14c9d46304f5fcb63792 (diff) | |
| parent | 22d00dcd47e0b8e18eb254966750fb523c726e4e (diff) | |
| download | rust-935452b619033457c1d42411e72a813befc3009c.tar.gz rust-935452b619033457c1d42411e72a813befc3009c.zip | |
Rollup merge of #112499 - tgross35:py-ruff-fixes, r=Mark-Simulacrum
Fix python linting errors These were flagged by `ruff`, run using the config in https://github.com/rust-lang/rust/pull/112482
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py b/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py index 6188924b0d5..83abe145e64 100644 --- a/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py +++ b/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py @@ -3,7 +3,6 @@ import os import re import sys import subprocess -from os import walk def run_command(command, cwd=None): @@ -180,7 +179,7 @@ def update_intrinsics(llvm_path, llvmint, llvmint2): intrinsics[arch].sort(key=lambda x: (x[0], x[2])) out.write(' // {}\n'.format(arch)) for entry in intrinsics[arch]: - if entry[2] == True: # if it is a duplicate + if entry[2] is True: # if it is a duplicate out.write(' // [DUPLICATE]: "{}" => "{}",\n'.format(entry[0], entry[1])) elif "_round_mask" in entry[1]: out.write(' // [INVALID CONVERSION]: "{}" => "{}",\n'.format(entry[0], entry[1])) |
