Stream: t-compiler/help

Topic: unrelated tidy errors


lcnr (Aug 07 2020 at 05:47, on Zulip):

why running ./x.py test tidy I get a lot of errors for things I didn't even touch. Afaik it's mostly from submodules.

How can I fix this?

Updating only changed submodules
Submodules updated in 0.02 seconds
    Finished dev [unoptimized + debuginfo] target(s) in 0.08s
Building stage0 tool tidy (x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.07s
tidy check
* 615 error codes
* highest error code: E0772
Checking which error codes lack tests...
Found 509 error codes
Found 0 error codes with no tests
Done!
tidy error: /home/lcnr/rust2/src/stdarch/ci/android-install-ndk.sh:2: copyright notices attributed to the Rust Project Developers are deprecated
tidy error: /home/lcnr/rust2/src/stdarch/ci/android-sysimage.sh:3: copyright notices attributed to the Rust Project Developers are deprecated
tidy error: /home/lcnr/rust2/src/stdarch/ci/run.sh:29: tab character
tidy error: /home/lcnr/rust2/src/stdarch/ci/run.sh:30: tab character
tidy error: /home/lcnr/rust2/src/stdarch/ci/run.sh:62: line longer than 100 chars
tidy error: /home/lcnr/rust2/src/stdarch/ci/run.sh:81: line longer than 100 chars
tidy error: /home/lcnr/rust2/src/stdarch/ci/run.sh:94: tab character
tidy error: /home/lcnr/rust2/src/stdarch/ci/run.sh:98: tab character
tidy error: /home/lcnr/rust2/src/stdarch/ci/style.sh: too many trailing newlines (2)
tidy error: /home/lcnr/rust2/src/stdarch/ci/android-install-sdk.sh:2: copyright notices attributed to the Rust Project Developers are deprecated
tidy error: /home/lcnr/rust2/src/stdarch/ci/android-install-sdk.sh:49: line longer than 100 chars
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/mips.rs:23: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:177: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:178: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:179: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:180: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:181: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:182: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:183: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:185: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:186: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/std_detect/src/detect/os/linux/cpuinfo.rs:187: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/simd_llvm.rs:3: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86_64/bmi.rs:172: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/wasm32/simd128.rs:1877: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/wasm32/simd128.rs:1878: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/wasm32/simd128.rs:1903: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/arm/neon/mod.rs: too many lines (3336) (add `// ignore-tidy-filelength` to the file to suppress this error)
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/arm/neon/generated.rs: too many lines (4675) (add `// ignore-tidy-filelength` to the file to suppress this error)
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/bmi1.rs:167: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx2.rs:3247: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx2.rs: too many lines (6100) (add `// ignore-tidy-filelength` to the file to suppress this error)
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx.rs:866: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx.rs:885: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx.rs:904: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx.rs:923: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx.rs:944: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx.rs:965: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx.rs:1762: tab character
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/avx.rs: too many lines (5022) (add `// ignore-tidy-filelength` to the file to suppress this error)
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/sse2.rs: too many lines (5218) (add `// ignore-tidy-filelength` to the file to suppress this error)
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/sse.rs:1067: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/sse.rs:1106: TODO is deprecated; use FIXME
tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/sse.rs:1522: unexplained "```ignore" doctest; try one:

* make the test actually pass, by adding necessary imports and declarations, or
* use "```text", if the code is not Rust code, or
* use "```compile_fail,Ennnn", if the code is expected to fail at compile time, or
* use "```should_panic", if the code is expected to fail at run time, or
* use "```no_run", if the code should type-check but not necessary linkable/runnable, or
* explain it like "```ignore (cannot-test-this-because-xxxx)", if the annotation cannot be avoided.


tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/sse.rs:1538: unexplained "```ignore" doctest; try one:

* make the test actually pass, by adding necessary imports and declarations, or
* use "```text", if the code is not Rust code, or
* use "```compile_fail,Ennnn", if the code is expected to fail at compile time, or
* use "```should_panic", if the code is expected to fail at run time, or
* use "```no_run", if the code should type-check but not necessary linkable/runnable, or
* explain it like "```ignore (cannot-test-this-because-xxxx)", if the annotation cannot be avoided.


tidy error: /home/lcnr/rust2/src/stdarch/crates/core_arch/src/x86/sse.rs:1546: unexplained "```ignore" doctest; try one:

* make the test actually pass, by adding necessary imports and declarations, or
* use "```text", if the code is not Rust code, or
* use "```compile_fail,Ennnn", if the code is expected to fail at compile time, or
* use "```should_panic", if the code is expected to fail at run time, or
* use "```no_run", if the code should type-check but not necessary linkable/runnable, or
* explain it like "```ignore (cannot-test-this-because-xxxx)", if the annotation cannot be avoided.

and so on for a total of 8958 error messages

oli (Aug 07 2020 at 06:54, on Zulip):

that's because during a rebase the submodule path changed, but the old directory stayed around. rm -rf src/stdarch is what I had to run on all my working copies

lcnr (Aug 07 2020 at 06:56, on Zulip):

thanks :thumbs_up:

Last update: Sep 28 2020 at 16:00UTC