rust
rust copied to clipboard
Autodiff Upstreaming - enzyme frontend
This is an upstream PR for the autodiff rustc_builtin_macro that is part of the autodiff feature.
For the full implementation, see: https://github.com/rust-lang/rust/pull/129175
Content:
It contains a new #[autodiff(<args>)] rustc_builtin_macro, as well as a #[rustc_autodiff] builtin attribute.
The autodiff macro is applied on function f and will expand to a second function df (name given by user).
It will add a dummy body to df to make sure it type-checks. The body will later be replaced by enzyme on llvm-ir level,
we therefore don't really care about the content. Most of the changes (700 from 1.2k) are in compiler/rustc_builtin_macros/src/autodiff.rs, which expand the macro. Nothing except expansion is implemented for now.
I have a fallback implementation for relevant functions in case that rustc should be build without autodiff support. The default for now will be off, although we want to flip it later (once everything landed) to on for nightly. For the sake of CI, I have flipped the defaults, I'll revert this before merging.
Dummy function Body:
The first line is an inline_asm nop to make inlining less likely (I have additional checks to prevent this in the middle end of rustc. If f gets inlined too early, we can't pass it to enzyme and thus can't differentiate it.
If df gets inlined too early, the call site will just compute this dummy code instead of the derivatives, a correctness issue. The following black_box lines make sure that none of the input arguments is getting optimized away before we replace the body.
Motivation: The user facing autodiff macro can verify the user input. Then I write it as args to the rustc_attribute, so from here on I can know that these values should be sensible. A rustc_attribute also turned out to be quite nice to attach this information to the corresponding function and carry it till the backend. This is also just an experiment, I expect to adjust the user facing autodiff macro based on user feedback, to improve usability.
As a simple example of what this will do, we can see this expansion: From:
#[autodiff(df, Reverse, Duplicated, Const, Active)]
pub fn f1(x: &[f64], y: f64) -> f64 {
unimplemented!()
}
to
#[rustc_autodiff]
#[inline(never)]
pub fn f1(x: &[f64], y: f64) -> f64 {
::core::panicking::panic("not implemented")
}
#[rustc_autodiff(Reverse, Duplicated, Const, Active,)]
#[inline(never)]
pub fn df(x: &[f64], dx: &mut [f64], y: f64, dret: f64) -> f64 {
unsafe { asm!("NOP"); };
::core::hint::black_box(f1(x, y));
::core::hint::black_box((dx, dret));
::core::hint::black_box(f1(x, y))
}
I will add a few more tests once I figured out why rustc rebuilds every time I touch a test.
Tracking:
- https://github.com/rust-lang/rust/issues/124509
r? @pnkfelix
rustbot has assigned @pnkfelix. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.895 Building wheels for collected packages: reuse
#13 2.896 Building wheel for reuse (pyproject.toml): started
#13 3.142 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.143 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.143 Stored in directory: /tmp/pip-ephem-wheel-cache-86zqtt40/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.146 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.547 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.547 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.086 Collecting virtualenv
#13 4.086 Collecting virtualenv
#13 4.134 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.360 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 25.3 MB/s eta 0:00:00
#13 4.403 Collecting distlib<1,>=0.3.7
#13 4.410 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.422 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 48.8 MB/s eta 0:00:00
#13 4.461 Collecting filelock<4,>=3.12.2
#13 4.469 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.505 Collecting platformdirs<5,>=3.9.1
#13 4.512 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.594 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.783 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.9s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 196544 kB
DirectMap2M: 6094848 kB
DirectMap1G: 12582912 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/b5723af3457b9cd3795eeb97e9af2d34964854f2/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-b5723af3457b9cd3795eeb97e9af2d34964854f2-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5511 files
tidy check
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:229: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:236: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:565: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:572: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:585: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:592: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:604: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_passes/src/check_attr.rs:2390: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_ast/src/expand/autodiff_attrs.rs:72: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:752: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.1)
Downloading pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.2-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 18.4 MB/s eta 0:00:00
Installing collected packages: pip
---
Successfully installed pip-24.2
linting python files
All checks passed!
checking C++ file formatting
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Fri Aug 23 08:38:29 UTC 2024
network time: Fri, 23 Aug 2024 08:38:29 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.819 Building wheels for collected packages: reuse
#13 2.820 Building wheel for reuse (pyproject.toml): started
#13 3.064 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.065 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.066 Stored in directory: /tmp/pip-ephem-wheel-cache-it2egmju/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.068 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.460 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.460 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.984 Collecting virtualenv
#13 3.984 Collecting virtualenv
#13 4.033 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.224 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 30.1 MB/s eta 0:00:00
#13 4.284 Collecting filelock<4,>=3.12.2
#13 4.292 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.312 Collecting distlib<1,>=0.3.7
#13 4.319 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.330 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 55.3 MB/s eta 0:00:00
#13 4.362 Collecting platformdirs<5,>=3.9.1
#13 4.370 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.451 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.635 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 231360 kB
DirectMap2M: 11302912 kB
DirectMap1G: 7340032 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/f167efad2f51088d86180ee89177b3d7c9e7c2f5/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-f167efad2f51088d86180ee89177b3d7c9e7c2f5-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:601:
// Nothing to do here.
}
_ => {
- trace!{"{:#?}", &activity};
+ trace! {"{:#?}", &activity};
panic!("Not implemented");
}
}
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/tests/run-make/static-dylib-by-default/bar.rs" "/checkout/tests/run-make/static-dylib-by-default/foo.rs" "/checkout/tests/run-make/static-dylib-by-default/rmake.rs" "/checkout/tests/run-make/json-error-no-offset/main.rs" "/checkout/tests/run-make/json-error-no-offset/submodule/mod.rs" "/checkout/tests/run-make/json-error-no-offset/rmake.rs" "/checkout/tests/run-make/codegen-options-parsing/dummy.rs" "/checkout/tests/run-make/codegen-options-parsing/rmake.rs" "/checkout/tests/run-make/print-to-output/rmake.rs" "/checkout/tests/run-make/pgo-branch-weights/main.rs" "/checkout/tests/run-make/pgo-branch-weights/opaque.rs" "/checkout/tests/run-make/pgo-branch-weights/rmake.rs" "/checkout/tests/run-make/pgo-branch-weights/interesting.rs" "/checkout/tests/run-make/sanitizer-dylib-link/library.rs" "/checkout/tests/run-make/sanitizer-dylib-link/program.rs" "/checkout/tests/run-make/sanitizer-dylib-link/rmake.rs" "/checkout/tests/run-make/optimization-remarks-dir-pgo/foo.rs" "/checkout/tests/run-make/optimization-remarks-dir-pgo/rmake.rs" "/checkout/tests/run-make/zero-extend-abi-param-passing/rmake.rs" "/checkout/tests/run-make/zero-extend-abi-param-passing/param_passing.rs" "/checkout/compiler/rustc_builtin_macros/src/concat_idents.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign.rs" "/checkout/compiler/rustc_builtin_macros/src/errors.rs" "/checkout/compiler/rustc_builtin_macros/src/log_syntax.rs" "/checkout/compiler/rustc_builtin_macros/src/trace_macros.rs" "/checkout/compiler/rustc_builtin_macros/src/cfg_accessible.rs" "/checkout/compiler/rustc_builtin_macros/src/asm.rs" "/checkout/compiler/rustc_builtin_macros/src/edition_panic.rs" "/checkout/compiler/rustc_builtin_macros/src/derive.rs" "/checkout/compiler/rustc_builtin_macros/src/source_util.rs" "/checkout/compiler/rustc_builtin_macros/src/global_allocator.rs" "/checkout/compiler/rustc_builtin_macros/src/test_harness.rs" "/checkout/compiler/rustc_builtin_macros/src/standard_library_imports.rs" "/checkout/tests/run-make/staticlib-thin-archive/bin.rs" "/checkout/tests/run-make/staticlib-thin-archive/rmake.rs" "/checkout/tests/run-make/staticlib-thin-archive/rust_lib.rs" "/checkout/tests/run-make/staticlib-thin-archive/simple_obj.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs" "/checkout/tests/run-make/c-link-to-rust-dylib/foo.rs" "/checkout/tests/run-make/c-link-to-rust-dylib/rmake.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign/shell/tests.rs" "/checkout/compiler/rustc_builtin_macros/src/alloc_error_handler.rs" "/checkout/compiler/rustc_builtin_macros/src/proc_macro_harness.rs" "/checkout/compiler/rustc_builtin_macros/src/autodiff.rs" "/checkout/compiler/rustc_builtin_macros/src/lib.rs" "/checkout/compiler/rustc_builtin_macros/src/test.rs" "/checkout/compiler/rustc_builtin_macros/src/assert.rs" "/checkout/compiler/rustc_builtin_macros/src/concat_bytes.rs" "/checkout/tests/run-make/alloc-no-oom-handling/rmake.rs" "/checkout/compiler/rustc_builtin_macros/src/assert/context.rs" "/checkout/compiler/rustc_builtin_macros/src/pattern_type.rs" "/checkout/compiler/rustc_builtin_macros/src/compile_error.rs" "/checkout/compiler/rustc_builtin_macros/src/util.rs" "/checkout/compiler/rustc_builtin_macros/src/env.rs" "/checkout/compiler/rustc_builtin_macros/src/concat.rs" "/checkout/compiler/rustc_builtin_macros/src/cmdline_attrs.rs" "/checkout/compiler/rustc_builtin_macros/src/cfg_eval.rs" "/checkout/compiler/rustc_builtin_macros/src/format.rs" "/checkout/compiler/rustc_builtin_macros/src/cfg.rs" "/checkout/tests/run-make/lto-avoid-object-duplication/downstream.rs" "/checkout/tests/run-make/lto-avoid-object-duplication/rmake.rs" "/checkout/tests/run-make/lto-avoid-object-duplication/upstream.rs" "/checkout/tests/run-make/compiler-lookup-paths-2/c.rs" "/checkout/compiler/rustc_next_trait_solver/src/relate/combine.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Sat Aug 24 20:31:41 UTC 2024
network time: Sat, 24 Aug 2024 20:31:41 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
:umbrella: The latest upstream changes (presumably #129563) made this pull request unmergeable. Please resolve the merge conflicts.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.834 Building wheels for collected packages: reuse
#13 2.835 Building wheel for reuse (pyproject.toml): started
#13 3.096 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.097 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.097 Stored in directory: /tmp/pip-ephem-wheel-cache-af5k_gun/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.100 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.507 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.508 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.029 Collecting virtualenv
#13 4.029 Collecting virtualenv
#13 4.079 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.278 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 28.9 MB/s eta 0:00:00
#13 4.337 Collecting platformdirs<5,>=3.9.1
#13 4.344 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.367 Collecting distlib<1,>=0.3.7
#13 4.385 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 49.6 MB/s eta 0:00:00
#13 4.424 Collecting filelock<4,>=3.12.2
#13 4.430 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.430 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.511 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.701 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.8s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 196544 kB
DirectMap2M: 7143424 kB
DirectMap1G: 11534336 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/2251572086f12186b5a499bf55dee82145173ed3/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-2251572086f12186b5a499bf55dee82145173ed3-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5527 files
tidy check
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:228: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:235: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:564: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:571: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:584: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:591: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:603: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:759: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.1)
Downloading pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.2-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 10.0 MB/s eta 0:00:00
Installing collected packages: pip
---
Successfully installed pip-24.2
linting python files
All checks passed!
checking C++ file formatting
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Tue Sep 3 02:25:26 UTC 2024
network time: Tue, 03 Sep 2024 02:25:26 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.773 Building wheels for collected packages: reuse
#13 2.774 Building wheel for reuse (pyproject.toml): started
#13 3.017 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.018 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.018 Stored in directory: /tmp/pip-ephem-wheel-cache-n05f3lqb/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.021 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.411 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.412 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.933 Collecting virtualenv
#13 3.933 Collecting virtualenv
#13 3.985 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.190 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 28.1 MB/s eta 0:00:00
#13 4.248 Collecting filelock<4,>=3.12.2
#13 4.255 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.274 Collecting distlib<1,>=0.3.7
#13 4.281 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.291 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 58.5 MB/s eta 0:00:00
#13 4.323 Collecting platformdirs<5,>=3.9.1
#13 4.330 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.411 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.597 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 214976 kB
DirectMap2M: 9222144 kB
DirectMap1G: 9437184 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/2251572086f12186b5a499bf55dee82145173ed3/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-2251572086f12186b5a499bf55dee82145173ed3-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5527 files
tidy check
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:228: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:235: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:564: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:571: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:584: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:591: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:603: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:759: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.1)
Downloading pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.2-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 47.6 MB/s eta 0:00:00
Installing collected packages: pip
---
Successfully installed pip-24.2
linting python files
All checks passed!
checking C++ file formatting
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Tue Sep 3 02:40:59 UTC 2024
network time: Tue, 03 Sep 2024 02:40:59 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.840 Building wheels for collected packages: reuse
#13 2.841 Building wheel for reuse (pyproject.toml): started
#13 3.084 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.085 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.085 Stored in directory: /tmp/pip-ephem-wheel-cache-upsawf2l/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.088 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.475 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.475 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.991 Collecting virtualenv
#13 3.991 Collecting virtualenv
#13 4.035 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.198 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 35.4 MB/s eta 0:00:00
#13 4.240 Collecting distlib<1,>=0.3.7
#13 4.246 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.256 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 62.7 MB/s eta 0:00:00
#13 4.288 Collecting platformdirs<5,>=3.9.1
#13 4.294 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.333 Collecting filelock<4,>=3.12.2
#13 4.339 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.419 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.603 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 188352 kB
DirectMap2M: 7151616 kB
DirectMap1G: 11534336 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/2251572086f12186b5a499bf55dee82145173ed3/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-2251572086f12186b5a499bf55dee82145173ed3-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5527 files
tidy check
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:228: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:235: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:564: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:571: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:584: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:591: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:603: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:759: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.1)
Downloading pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.2-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 50.1 MB/s eta 0:00:00
Installing collected packages: pip
---
Successfully installed pip-24.2
linting python files
All checks passed!
checking C++ file formatting
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Tue Sep 3 02:57:31 UTC 2024
network time: Tue, 03 Sep 2024 02:57:31 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.855 Building wheels for collected packages: reuse
#13 2.856 Building wheel for reuse (pyproject.toml): started
#13 3.105 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.106 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.106 Stored in directory: /tmp/pip-ephem-wheel-cache-2228aan5/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.109 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.519 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.519 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.060 Collecting virtualenv
#13 4.060 Collecting virtualenv
#13 4.111 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.295 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 31.3 MB/s eta 0:00:00
#13 4.356 Collecting filelock<4,>=3.12.2
#13 4.364 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.387 Collecting distlib<1,>=0.3.7
#13 4.395 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.406 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 51.5 MB/s eta 0:00:00
#13 4.439 Collecting platformdirs<5,>=3.9.1
#13 4.446 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.529 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.717 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.8s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 210880 kB
DirectMap2M: 6080512 kB
DirectMap1G: 12582912 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/2251572086f12186b5a499bf55dee82145173ed3/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-2251572086f12186b5a499bf55dee82145173ed3-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5527 files
tidy check
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:236: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:243: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:573: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:580: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:593: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:600: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:612: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:759: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.1)
Downloading pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.2-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 14.1 MB/s eta 0:00:00
Installing collected packages: pip
---
Successfully installed pip-24.2
linting python files
All checks passed!
checking C++ file formatting
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Tue Sep 3 03:30:43 UTC 2024
network time: Tue, 03 Sep 2024 03:30:43 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.763 Building wheels for collected packages: reuse
#13 2.764 Building wheel for reuse (pyproject.toml): started
#13 3.010 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.011 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.011 Stored in directory: /tmp/pip-ephem-wheel-cache-w8ehmi0u/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.014 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.414 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.414 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.955 Collecting virtualenv
#13 3.955 Collecting virtualenv
#13 4.151 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.414 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 21.8 MB/s eta 0:00:00
#13 4.477 Collecting filelock<4,>=3.12.2
#13 4.485 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.508 Collecting distlib<1,>=0.3.7
#13 4.516 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.529 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 44.7 MB/s eta 0:00:00
#13 4.562 Collecting platformdirs<5,>=3.9.1
#13 4.570 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.651 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.839 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.9s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 212928 kB
DirectMap2M: 8175616 kB
DirectMap1G: 10485760 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/2251572086f12186b5a499bf55dee82145173ed3/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-2251572086f12186b5a499bf55dee82145173ed3-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5527 files
tidy check
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:236: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:243: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:573: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:580: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:593: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:600: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:612: `dbg!` macro is intended as a debugging tool. It should not be in version control.
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:759: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.1)
Downloading pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.2-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 71.9 MB/s eta 0:00:00
Installing collected packages: pip
---
Successfully installed pip-24.2
linting python files
All checks passed!
checking C++ file formatting
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Tue Sep 3 03:45:05 UTC 2024
network time: Tue, 03 Sep 2024 03:45:05 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.878 Building wheels for collected packages: reuse
#13 2.879 Building wheel for reuse (pyproject.toml): started
#13 3.131 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.132 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.132 Stored in directory: /tmp/pip-ephem-wheel-cache-1qxi069t/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.135 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.529 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.530 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.059 Collecting virtualenv
#13 4.059 Collecting virtualenv
#13 4.117 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.359 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 23.7 MB/s eta 0:00:00
#13 4.416 Collecting platformdirs<5,>=3.9.1
#13 4.424 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.446 Collecting distlib<1,>=0.3.7
#13 4.464 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 53.0 MB/s eta 0:00:00
#13 4.501 Collecting filelock<4,>=3.12.2
#13 4.509 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.509 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.591 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.777 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.9s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 219072 kB
DirectMap2M: 7120896 kB
DirectMap1G: 11534336 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/d6c8169c186ab16a3404cd0d0866674018e8a19e/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-d6c8169c186ab16a3404cd0d0866674018e8a19e-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
Finished `release` profile [optimized] target(s) in 29.47s
##[endgroup]
fmt check
Diff in /checkout/library/std/src/lib.rs:620:
#[cfg(not(bootstrap))]
#[unstable(feature = "autodiff", issue = "12345")]
mod autodiff {
- pub use core::autodiff as autodiff;
+ pub use core::autodiff;
}
#[cfg(not(bootstrap))]
#[unstable(feature = "autodiff", issue = "12345")]
Diff in /checkout/library/std/src/lib.rs:627:
pub use autodiff::autodiff;
#[stable(feature = "futures_api", since = "1.36.0")]
pub mod task {
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/library/panic_unwind/src/lib.rs" "/checkout/library/panic_unwind/src/miri.rs" "/checkout/library/panic_unwind/src/gcc.rs" "/checkout/library/panic_unwind/src/dummy.rs" "/checkout/library/panic_unwind/src/seh.rs" "/checkout/library/panic_unwind/src/hermit.rs" "/checkout/library/std/benches/lib.rs" "/checkout/library/std/benches/hash/mod.rs" "/checkout/library/std/benches/hash/map.rs" "/checkout/library/std/benches/hash/set_ops.rs" "/checkout/library/std/build.rs" "/checkout/compiler/rustc_metadata/src/creader.rs" "/checkout/compiler/rustc_metadata/src/lib.rs" "/checkout/compiler/rustc_metadata/src/locator.rs" "/checkout/compiler/rustc_metadata/src/fs.rs" "/checkout/compiler/rustc_metadata/src/errors.rs" "/checkout/compiler/rustc_metadata/src/foreign_modules.rs" "/checkout/compiler/rustc_metadata/src/dependency_format.rs" "/checkout/compiler/rustc_metadata/src/native_libs.rs" "/checkout/compiler/rustc_metadata/src/rmeta/encoder.rs" "/checkout/compiler/rustc_metadata/src/rmeta/decoder.rs" "/checkout/compiler/rustc_metadata/src/rmeta/table.rs" "/checkout/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs" "/checkout/compiler/rustc_metadata/src/rmeta/mod.rs" "/checkout/compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs" "/checkout/library/std/src/path.rs" "/checkout/library/std/src/f32.rs" "/checkout/library/std/src/keyword_docs.rs" "/checkout/library/std/src/lib.rs" "/checkout/library/std/src/time/tests.rs" "/checkout/library/std/src/lib.miri.rs" "/checkout/library/std/src/f16.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/context.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/alloc.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/mod.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/convert/abi.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/convert/ty.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/convert/error.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/convert/mod.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/convert/mir.rs" "/checkout/compiler/rustc_smir/src/rustc_smir/builder.rs" "/checkout/library/std/src/sync/mpsc/mod.rs" "/checkout/library/std/src/sync/mpsc/sync_tests.rs" "/checkout/library/std/src/sync/mpsc/tests.rs" "/checkout/library/std/src/sync/barrier.rs" "/checkout/library/std/src/sync/mutex.rs" "/checkout/library/std/src/sync/once_lock/tests.rs" "/checkout/compiler/rustc_smir/src/rustc_internal/pretty.rs" "/checkout/compiler/rustc_smir/src/rustc_internal/mod.rs" "/checkout/compiler/rustc_smir/src/rustc_internal/internal.rs" "/checkout/compiler/rustc_smir/src/lib.rs" "/checkout/library/std/src/sync/barrier/tests.rs" "/checkout/library/std/src/sync/once.rs" "/checkout/library/std/src/sync/lazy_lock.rs" "/checkout/library/std/src/sync/reentrant_lock/tests.rs" "/checkout/library/std/src/sync/condvar.rs" "/checkout/compiler/rustc_error_messages/src/lib.rs" "/checkout/library/std/src/sync/once/tests.rs" "/checkout/library/std/src/sync/reentrant_lock.rs" "/checkout/library/std/src/sync/mod.rs" "/checkout/library/std/src/sync/lazy_lock/tests.rs" "/checkout/library/std/src/sync/once_lock.rs" "/checkout/library/std/src/sync/poison.rs" "/checkout/library/panic_unwind/src/emcc.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Wed Sep 4 02:00:28 UTC 2024
network time: Wed, 04 Sep 2024 02:00:28 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.870 Building wheels for collected packages: reuse
#13 2.871 Building wheel for reuse (pyproject.toml): started
#13 3.115 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.116 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.116 Stored in directory: /tmp/pip-ephem-wheel-cache-7rhst7_7/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.119 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.507 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.507 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.020 Collecting virtualenv
#13 4.020 Collecting virtualenv
#13 4.060 Downloading virtualenv-20.26.4-py3-none-any.whl (6.0 MB)
#13 4.158 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 63.4 MB/s eta 0:00:00
#13 4.211 Collecting platformdirs<5,>=3.9.1
#13 4.217 Downloading platformdirs-4.3.2-py3-none-any.whl (18 kB)
#13 4.233 Collecting distlib<1,>=0.3.7
#13 4.245 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 66.6 MB/s eta 0:00:00
#13 4.277 Collecting filelock<4,>=3.12.2
#13 4.280 Downloading filelock-3.16.0-py3-none-any.whl (16 kB)
#13 4.280 Downloading filelock-3.16.0-py3-none-any.whl (16 kB)
#13 4.361 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.549 Successfully installed distlib-0.3.8 filelock-3.16.0 platformdirs-4.3.2 virtualenv-20.26.4
#13 DONE 4.6s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 208832 kB
DirectMap2M: 7131136 kB
DirectMap1G: 11534336 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/085744b7ad8b227239bcee0a44cd78dcd0310ab9/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-085744b7ad8b227239bcee0a44cd78dcd0310ab9-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
Finished `release` profile [optimized] target(s) in 28.62s
##[endgroup]
fmt check
Diff in /checkout/library/std/src/lib.rs:619:
#[cfg(not(bootstrap))]
#[unstable(feature = "autodiff", issue = "12345")]
mod autodiff {
- pub use core::autodiff as autodiff;
+ pub use core::autodiff;
}
#[cfg(not(bootstrap))]
#[unstable(feature = "autodiff", issue = "12345")]
Diff in /checkout/library/std/src/lib.rs:626:
pub use autodiff::autodiff;
#[stable(feature = "futures_api", since = "1.36.0")]
pub mod task {
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/library/std/src/sync/once_lock.rs" "/checkout/library/std/src/sync/barrier.rs" "/checkout/library/std/src/sync/lazy_lock.rs" "/checkout/library/std/src/sync/lazy_lock/tests.rs" "/checkout/library/std/src/sync/mutex/tests.rs" "/checkout/library/std/src/sync/barrier/tests.rs" "/checkout/library/std/src/sync/reentrant_lock.rs" "/checkout/library/std/src/sync/condvar.rs" "/checkout/library/std/src/sync/mod.rs" "/checkout/library/std/src/sync/once/tests.rs" "/checkout/library/std/src/sync/rwlock/tests.rs" "/checkout/library/std/src/sync/mutex.rs" "/checkout/library/std/src/alloc.rs" "/checkout/library/std/src/keyword_docs.rs" "/checkout/library/std/src/net/ip_addr.rs" "/checkout/library/std/src/net/socket_addr/tests.rs" "/checkout/library/std/src/net/tcp.rs" "/checkout/library/std/src/net/udp/tests.rs" "/checkout/library/std/src/net/udp.rs" "/checkout/library/std/src/net/ip_addr/tests.rs" "/checkout/library/std/src/net/mod.rs" "/checkout/library/std/src/net/socket_addr.rs" "/checkout/library/std/src/net/tcp/tests.rs" "/checkout/library/std/src/net/test.rs" "/checkout/library/std/src/pat.rs" "/checkout/library/std/src/path/tests.rs" "/checkout/library/std/src/f32/tests.rs" "/checkout/library/std/src/env.rs" "/checkout/library/std/src/error/tests.rs" "/checkout/library/std/src/sys_common/tests.rs" "/checkout/library/std/src/sys_common/net/tests.rs" "/checkout/library/std/src/sys_common/lazy_box.rs" "/checkout/library/std/src/sys_common/wtf8/tests.rs" "/checkout/library/std/src/sys_common/process.rs" "/checkout/library/std/src/sys_common/net.rs" "/checkout/library/std/src/sys_common/mod.rs" "/checkout/library/std/src/sys_common/wtf8.rs" "/checkout/library/std/src/sys_common/wstr.rs" "/checkout/library/std/src/sys_common/fs.rs" "/checkout/library/std/src/sys_common/io.rs" "/checkout/library/std/src/pipe.rs" "/checkout/library/std/src/fs/tests.rs" "/checkout/library/std/src/panicking.rs" "/checkout/library/std/src/error.rs" "/checkout/library/std/src/macros.rs" "/checkout/library/std/src/f16/tests.rs" "/checkout/library/std/src/prelude/mod.rs" "/checkout/library/std/src/prelude/common.rs" "/checkout/library/std/src/time/tests.rs" "/checkout/library/std/src/process/tests.rs" "/checkout/library/std/src/num.rs" "/checkout/library/std/src/thread/local.rs" "/checkout/library/std/src/thread/tests.rs" "/checkout/library/std/src/thread/scoped.rs" "/checkout/library/std/src/thread/mod.rs" "/checkout/library/std/src/thread/local/tests.rs" "/checkout/library/std/src/thread/local/dynamic_tests.rs" "/checkout/library/std/src/f64/tests.rs" "/checkout/library/std/src/backtrace/tests.rs" "/checkout/library/std/src/lib.miri.rs" "/checkout/library/std/src/process.rs" "/checkout/library/std/src/f64.rs" "/checkout/library/std/src/lib.rs" "/checkout/library/std/src/sync/reentrant_lock/tests.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Mon Sep 9 03:28:27 UTC 2024
network time: Mon, 09 Sep 2024 03:28:27 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.659 Building wheels for collected packages: reuse
#13 2.660 Building wheel for reuse (pyproject.toml): started
#13 2.903 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 2.904 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 2.904 Stored in directory: /tmp/pip-ephem-wheel-cache-fvcgbkht/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 2.907 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.294 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.296 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.810 Collecting virtualenv
#13 3.810 Collecting virtualenv
#13 3.844 Downloading virtualenv-20.26.4-py3-none-any.whl (6.0 MB)
#13 3.919 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 82.7 MB/s eta 0:00:00
#13 3.958 Collecting distlib<1,>=0.3.7
#13 3.962 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 3.968 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 98.0 MB/s eta 0:00:00
#13 4.002 Collecting filelock<4,>=3.12.2
#13 4.005 Downloading filelock-3.16.0-py3-none-any.whl (16 kB)
#13 4.037 Collecting platformdirs<5,>=3.9.1
#13 4.040 Downloading platformdirs-4.3.2-py3-none-any.whl (18 kB)
#13 4.120 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.308 Successfully installed distlib-0.3.8 filelock-3.16.0 platformdirs-4.3.2 virtualenv-20.26.4
#13 DONE 4.4s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 210880 kB
DirectMap2M: 8177664 kB
DirectMap1G: 10485760 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/085744b7ad8b227239bcee0a44cd78dcd0310ab9/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-085744b7ad8b227239bcee0a44cd78dcd0310ab9-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5537 files
tidy check
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:236: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:243: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:580: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:600: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:759: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
##[error]tidy error: /checkout/library/core/src/macros/mod.rs:1556: feature gate autodiff has inconsistent `issue`: "none" mismatches the previous `issue` of "12345"
##[error]tidy error: /checkout/library/std/src/lib.rs:620: feature gate autodiff has inconsistent `issue`: "12345" mismatches the previous `issue` of "none"
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.2)
All checks passed!
checking C++ file formatting
some tidy checks failed
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Mon Sep 9 04:26:25 UTC 2024
network time: Mon, 09 Sep 2024 04:26:25 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.733 Building wheels for collected packages: reuse
#13 2.734 Building wheel for reuse (pyproject.toml): started
#13 2.978 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 2.979 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 2.980 Stored in directory: /tmp/pip-ephem-wheel-cache-k8tym9g0/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 2.982 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.370 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.370 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.897 Collecting virtualenv
#13 3.897 Collecting virtualenv
#13 3.950 Downloading virtualenv-20.26.4-py3-none-any.whl (6.0 MB)
#13 4.207 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 23.6 MB/s eta 0:00:00
#13 4.267 Collecting platformdirs<5,>=3.9.1
#13 4.276 Downloading platformdirs-4.3.2-py3-none-any.whl (18 kB)
#13 4.316 Collecting filelock<4,>=3.12.2
#13 4.346 Collecting distlib<1,>=0.3.7
#13 4.354 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.368 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 38.7 MB/s eta 0:00:00
#13 4.368 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 38.7 MB/s eta 0:00:00
#13 4.448 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.635 Successfully installed distlib-0.3.8 filelock-3.16.0 platformdirs-4.3.2 virtualenv-20.26.4
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 176064 kB
DirectMap2M: 7163904 kB
DirectMap1G: 11534336 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/085744b7ad8b227239bcee0a44cd78dcd0310ab9/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-085744b7ad8b227239bcee0a44cd78dcd0310ab9-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5537 files
tidy check
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:238: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:245: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:587: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:607: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:759: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
##[error]tidy error: /checkout/library/core/src/macros/mod.rs:1556: feature gate autodiff has inconsistent `issue`: "none" mismatches the previous `issue` of "12345"
##[error]tidy error: /checkout/library/std/src/lib.rs:620: feature gate autodiff has inconsistent `issue`: "12345" mismatches the previous `issue` of "none"
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.2)
All checks passed!
checking C++ file formatting
some tidy checks failed
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Mon Sep 9 04:56:17 UTC 2024
network time: Mon, 09 Sep 2024 04:56:18 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
working my way through it. Already lead to some nice improvement, because I now return incorrect function signatures for df if I encounter a usage error, knowing that compilation will abort later anyway. By not erroring immediately we can catch more errors in one go.
- [x] Positive test cases for what autodiff should be applied to.
- [x] Negative test cases for when autodiff is misapplied to AST nodes and their diagnostics. In particular, closures, statements and expressions.
- [x] #[autodiff] malformed attribute (where args?) error
- [x] #[autodiff = ""] invalid attribute syntax
- [x] #[autodiff()] where arg
- [x] #[autodiff(df)] + fn df() <- what if I already have a df in value namespace?
- [x] #[autodiff(df, Reverse)] + enum Foo { Reverse } + use Foo::Reverse; <- what if I already have a Reverse in type (enum variant decl) and value (enum variant constructor) namespace?
- [x] #[autodiff(df)] <- is this minimally acceptable?
- [x] #[autodiff(df, Reverse)] <- valid mode
- [x] #[autodiff(df, Debug)] <- invalid mode
- [x] #[autodiff(df, Forward, Reverse)] <- is this valid
- [x] target fn has specified valid return type e.g. -> f64
- [x] target fn has unspecified return type fn foo() {}
- [x] target fn has specified but invalid return type e.g. -> Owo
- [x] target fn has aliased f32/f64 return types (currently unsupported) -> F64Alias
- [x] target fn has #[repr(transparent)] struct F64Trans { inner: f64 } return type (currently unsupported) -> F64Trans.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.772 Building wheels for collected packages: reuse
#13 2.773 Building wheel for reuse (pyproject.toml): started
#13 3.015 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.017 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.017 Stored in directory: /tmp/pip-ephem-wheel-cache-27tcs7ua/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.020 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.416 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.416 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.938 Collecting virtualenv
#13 3.938 Collecting virtualenv
#13 3.989 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.206 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 27.9 MB/s eta 0:00:00
#13 4.269 Collecting filelock<4,>=3.12.2
#13 4.276 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.297 Collecting distlib<1,>=0.3.7
#13 4.304 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.315 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 51.3 MB/s eta 0:00:00
#13 4.351 Collecting platformdirs<5,>=3.9.1
#13 4.358 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.438 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.628 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 239552 kB
DirectMap2M: 9197568 kB
DirectMap1G: 9437184 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/6ce376774c0bc46ac8be247bca93ff5a1287a8fc/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-6ce376774c0bc46ac8be247bca93ff5a1287a8fc-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5573 files
tidy check
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:239: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:246: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:604: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:624: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:755: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/tests/pretty/autodiff_illegal.rs:45: trailing whitespace
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
##[error]tidy error: /checkout/library/core/src/macros/mod.rs:1556: feature gate autodiff has inconsistent `issue`: "none" mismatches the previous `issue` of "12345"
##[error]tidy error: /checkout/library/std/src/lib.rs:621: feature gate autodiff has inconsistent `issue`: "12345" mismatches the previous `issue` of "none"
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.2)
All checks passed!
checking C++ file formatting
some tidy checks failed
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Sun Sep 22 05:44:34 UTC 2024
network time: Sun, 22 Sep 2024 05:44:34 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.769 Building wheels for collected packages: reuse
#13 2.770 Building wheel for reuse (pyproject.toml): started
#13 3.013 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.014 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.014 Stored in directory: /tmp/pip-ephem-wheel-cache-jrmwit48/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.017 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.568 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.569 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.107 Collecting virtualenv
#13 4.107 Collecting virtualenv
#13 4.156 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.339 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 33.3 MB/s eta 0:00:00
#13 4.400 Collecting platformdirs<5,>=3.9.1
#13 4.407 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.445 Collecting filelock<4,>=3.12.2
#13 4.475 Collecting distlib<1,>=0.3.7
#13 4.482 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.493 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 54.6 MB/s eta 0:00:00
#13 4.493 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 54.6 MB/s eta 0:00:00
#13 4.574 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.764 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.8s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 200640 kB
DirectMap2M: 9236480 kB
DirectMap1G: 9437184 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.05s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/6ce376774c0bc46ac8be247bca93ff5a1287a8fc/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-6ce376774c0bc46ac8be247bca93ff5a1287a8fc-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5573 files
tidy check
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:246: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:253: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:611: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:631: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:755: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/tests/pretty/autodiff_illegal.rs:45: trailing whitespace
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
##[error]tidy error: /checkout/library/core/src/macros/mod.rs:1556: feature gate autodiff has inconsistent `issue`: "none" mismatches the previous `issue` of "12345"
##[error]tidy error: /checkout/library/std/src/lib.rs:621: feature gate autodiff has inconsistent `issue`: "12345" mismatches the previous `issue` of "none"
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.2)
All checks passed!
checking C++ file formatting
some tidy checks failed
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Sun Sep 22 06:04:44 UTC 2024
network time: Sun, 22 Sep 2024 06:04:44 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.659 Building wheels for collected packages: reuse
#13 2.660 Building wheel for reuse (pyproject.toml): started
#13 2.904 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 2.905 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 2.905 Stored in directory: /tmp/pip-ephem-wheel-cache-n0r0qupa/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 2.907 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.302 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.302 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.840 Collecting virtualenv
#13 3.840 Collecting virtualenv
#13 3.895 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.173 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 21.9 MB/s eta 0:00:00
#13 4.237 Collecting filelock<4,>=3.12.2
#13 4.245 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.268 Collecting distlib<1,>=0.3.7
#13 4.277 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.290 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 42.0 MB/s eta 0:00:00
#13 4.327 Collecting platformdirs<5,>=3.9.1
#13 4.336 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.416 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.604 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 196544 kB
DirectMap2M: 9240576 kB
DirectMap1G: 9437184 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/6ce376774c0bc46ac8be247bca93ff5a1287a8fc/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-6ce376774c0bc46ac8be247bca93ff5a1287a8fc-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5573 files
tidy check
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:246: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:253: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:611: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:631: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:755: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/tests/pretty/autodiff_illegal.rs:45: trailing whitespace
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
##[error]tidy error: /checkout/library/core/src/macros/mod.rs:1556: feature gate autodiff has inconsistent `issue`: "none" mismatches the previous `issue` of "12345"
##[error]tidy error: /checkout/library/std/src/lib.rs:621: feature gate autodiff has inconsistent `issue`: "12345" mismatches the previous `issue` of "none"
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.2)
All checks passed!
checking C++ file formatting
some tidy checks failed
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Sun Sep 22 06:48:30 UTC 2024
network time: Sun, 22 Sep 2024 06:48:30 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.784 Building wheels for collected packages: reuse
#13 2.785 Building wheel for reuse (pyproject.toml): started
#13 3.031 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.032 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.032 Stored in directory: /tmp/pip-ephem-wheel-cache-gduy_hnj/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.035 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.439 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.439 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.978 Collecting virtualenv
#13 3.978 Collecting virtualenv
#13 4.016 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.102 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 71.5 MB/s eta 0:00:00
#13 4.147 Collecting distlib<1,>=0.3.7
#13 4.150 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.158 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 88.1 MB/s eta 0:00:00
#13 4.198 Collecting filelock<4,>=3.12.2
#13 4.202 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.241 Collecting platformdirs<5,>=3.9.1
#13 4.245 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.331 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.530 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.6s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 200640 kB
DirectMap2M: 8187904 kB
DirectMap1G: 10485760 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/6ce376774c0bc46ac8be247bca93ff5a1287a8fc/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-6ce376774c0bc46ac8be247bca93ff5a1287a8fc-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5573 files
tidy check
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:246: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:253: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:611: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:631: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/compiler/rustc_feature/src/builtin_attrs.rs:755: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
##[error]tidy error: /checkout/tests/pretty/autodiff_illegal.rs:45: trailing whitespace
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
##[error]tidy error: /checkout/library/core/src/macros/mod.rs:1556: feature gate autodiff has inconsistent `issue`: "none" mismatches the previous `issue` of "12345"
##[error]tidy error: /checkout/library/std/src/lib.rs:621: feature gate autodiff has inconsistent `issue`: "12345" mismatches the previous `issue` of "none"
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.2)
All checks passed!
checking C++ file formatting
some tidy checks failed
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Sun Sep 22 07:15:26 UTC 2024
network time: Sun, 22 Sep 2024 07:15:26 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.814 Building wheels for collected packages: reuse
#13 2.815 Building wheel for reuse (pyproject.toml): started
#13 3.077 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.078 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.078 Stored in directory: /tmp/pip-ephem-wheel-cache-_0yd8vxo/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.081 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.497 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.497 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.069 Collecting virtualenv
#13 4.069 Collecting virtualenv
#13 4.106 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.178 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 86.7 MB/s eta 0:00:00
#13 4.244 Collecting filelock<4,>=3.12.2
#13 4.248 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.288 Collecting platformdirs<5,>=3.9.1
#13 4.292 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.318 Collecting distlib<1,>=0.3.7
#13 4.332 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 77.1 MB/s eta 0:00:00
#13 4.332 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 77.1 MB/s eta 0:00:00
#13 4.415 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.612 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 231360 kB
DirectMap2M: 9205760 kB
DirectMap1G: 9437184 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/1f9a018fa30a13150b5e3b308d1aa16f86e27ecb/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-1f9a018fa30a13150b5e3b308d1aa16f86e27ecb-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5573 files
tidy check
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
##[error]tidy error: /checkout/tests/pretty/autodiff_illegal.rs:45: trailing whitespace
##[error]tidy error: /checkout/library/core/src/macros/mod.rs:1556: feature gate autodiff has inconsistent `issue`: "none" mismatches the previous `issue` of "12345"
##[error]tidy error: /checkout/library/std/src/lib.rs:621: feature gate autodiff has inconsistent `issue`: "12345" mismatches the previous `issue` of "none"
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.2)
All checks passed!
checking C++ file formatting
some tidy checks failed
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Sun Sep 22 08:26:37 UTC 2024
network time: Sun, 22 Sep 2024 08:26:38 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.685 Building wheels for collected packages: reuse
#13 2.686 Building wheel for reuse (pyproject.toml): started
#13 2.934 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 2.935 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 2.935 Stored in directory: /tmp/pip-ephem-wheel-cache-wjbc9dxv/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 2.938 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.329 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.330 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.851 Collecting virtualenv
#13 3.851 Collecting virtualenv
#13 3.902 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.158 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 23.6 MB/s eta 0:00:00
#13 4.213 Collecting platformdirs<5,>=3.9.1
#13 4.221 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.255 Collecting filelock<4,>=3.12.2
#13 4.279 Collecting distlib<1,>=0.3.7
#13 4.288 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.300 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 47.8 MB/s eta 0:00:00
#13 4.300 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 47.8 MB/s eta 0:00:00
#13 4.378 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.568 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.6s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 235456 kB
DirectMap2M: 8153088 kB
DirectMap1G: 10485760 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/1f9a018fa30a13150b5e3b308d1aa16f86e27ecb/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-1f9a018fa30a13150b5e3b308d1aa16f86e27ecb-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
##[endgroup]
fmt check
fmt: checked 5573 files
tidy check
tidy error: /checkout/compiler/rustc_passes/messages.ftl: message `passes_autodiff_attr` appears before `passes_allow_incoherent_impl`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_unknown_activity` appears before `builtin_macros_autodiff`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_not_build` appears before `builtin_macros_autodiff_mode_activity`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_number_activities` appears before `builtin_macros_autodiff_mode`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy error: /checkout/compiler/rustc_builtin_macros/messages.ftl: message `builtin_macros_autodiff_ty_activity` appears before `builtin_macros_asm_clobber_abi`, but is alphabetically later than it
run `./x.py test tidy --bless` to sort the file correctly
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/tests/pretty/autodiff_illegal.rs:45: trailing whitespace
##[error]tidy error: /checkout/compiler/rustc_builtin_macros/src/lib.rs:18: line not in alphabetical order
##[error]tidy error: /checkout/library/core/src/macros/mod.rs:1556: feature gate autodiff has inconsistent `issue`: "none" mismatches the previous `issue` of "12345"
##[error]tidy error: /checkout/library/std/src/lib.rs:621: feature gate autodiff has inconsistent `issue`: "12345" mismatches the previous `issue` of "none"
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (24.2)
All checks passed!
checking C++ file formatting
some tidy checks failed
some tidy checks failed
Command has failed. Rerun with -v to see more details.
local time: Sun Sep 22 08:55:35 UTC 2024
network time: Sun, 22 Sep 2024 08:55:35 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
I added a lot of tests and the needed fixes to not make any of them ICE. I'll hopefully get to the remaining fewer comments soon.
For the meantime, has anyone an idea how to fix this behaviour? I assume my dummy get's executed, instead of the real function I add on llvm-ir. If df (the function generated by me) is called in the same module it works.
https://github.com/g-bauer/enzyme_playground/tree/main?tab=readme-ov-file#problems
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.861 Building wheels for collected packages: reuse
#13 2.862 Building wheel for reuse (pyproject.toml): started
#13 3.114 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.116 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.116 Stored in directory: /tmp/pip-ephem-wheel-cache-wvsrcq6a/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.119 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.520 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.521 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.062 Collecting virtualenv
#13 4.062 Collecting virtualenv
#13 4.107 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.282 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 35.0 MB/s eta 0:00:00
#13 4.346 Collecting filelock<4,>=3.12.2
#13 4.352 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.373 Collecting distlib<1,>=0.3.7
#13 4.380 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.390 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 56.9 MB/s eta 0:00:00
#13 4.427 Collecting platformdirs<5,>=3.9.1
#13 4.434 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.519 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.709 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.8s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 204736 kB
DirectMap2M: 8183808 kB
DirectMap1G: 10485760 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/702987f75b74f789ba227ee04a3d7bb1680c2309/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-702987f75b74f789ba227ee04a3d7bb1680c2309-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
fmt check
Diff in /checkout/compiler/rustc_ast/src/expand/autodiff_attrs.rs:152:
return true;
}
if matches!(activity, Dual | DualOnly) {
+ return true;
}
}
// FIXME(ZuseZ4) We should make this more robust to also
// handle type aliases. Once that is done, we can be more restrictive here.
Diff in /checkout/compiler/rustc_ast/src/expand/autodiff_attrs.rs:159:
if matches!(activity, Active | ActiveOnly) {
+ return true;
}
}
matches!(ty.kind, TyKind::Ptr(_) | TyKind::Ref(..))
&& matches!(activity, Duplicated | DuplicatedOnly)
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/src/tools/build_helper/src/metrics.rs" "/checkout/src/tools/build_helper/src/util.rs" "/checkout/src/tools/build_helper/src/drop_bomb/tests.rs" "/checkout/src/tools/build_helper/src/drop_bomb/mod.rs" "/checkout/src/tools/remote-test-client/src/main.rs" "/checkout/src/tools/miropt-test-tools/src/lib.rs" "/checkout/src/tools/linkchecker/tests/checks.rs" "/checkout/src/tools/linkchecker/main.rs" "/checkout/src/tools/rustbook/src/main.rs" "/checkout/src/tools/rustdoc-gui-test/src/config.rs" "/checkout/src/tools/rustdoc-gui-test/src/main.rs" "/checkout/src/tools/rust-installer/src/combiner.rs" "/checkout/src/tools/rust-installer/src/lib.rs" "/checkout/src/tools/rust-installer/src/scripter.rs" "/checkout/src/tools/rust-installer/src/util.rs" "/checkout/src/tools/rust-installer/src/compression.rs" "/checkout/src/tools/rust-installer/src/generator.rs" "/checkout/src/tools/rust-installer/src/tarballer.rs" "/checkout/src/tools/rust-installer/src/main.rs" "/checkout/compiler/rustc_transmute/src/layout/tree/tests.rs" "/checkout/compiler/rustc_transmute/src/layout/tree.rs" "/checkout/compiler/rustc_transmute/src/layout/dfa.rs" "/checkout/compiler/rustc_transmute/src/layout/mod.rs" "/checkout/compiler/rustc_transmute/src/layout/nfa.rs" "/checkout/compiler/rustc_transmute/src/lib.rs" "/checkout/compiler/rustc_transmute/src/maybe_transmutable/tests.rs" "/checkout/compiler/rustc_transmute/src/maybe_transmutable/mod.rs" "/checkout/compiler/rustc_transmute/src/maybe_transmutable/query_context.rs" "/checkout/compiler/rustc_ast/src/ptr.rs" "/checkout/compiler/rustc_ast/src/tokenstream.rs" "/checkout/compiler/rustc_ast/src/entry.rs" "/checkout/compiler/rustc_ast/src/mut_visit.rs" "/checkout/compiler/rustc_ast/src/node_id.rs" "/checkout/compiler/rustc_ast/src/ast_traits.rs" "/checkout/compiler/rustc_ast/src/visit.rs" "/checkout/compiler/rustc_ast/src/token.rs" "/checkout/compiler/rustc_ast/src/lib.rs" "/checkout/compiler/rustc_ast/src/format.rs" "/checkout/compiler/rustc_ast/src/expand/allocator.rs" "/checkout/compiler/rustc_ast/src/expand/autodiff_attrs.rs" "/checkout/compiler/rustc_ast/src/expand/mod.rs" "/checkout/compiler/rustc_ast/src/expand/typetree.rs" "/checkout/compiler/rustc_ast/src/attr/mod.rs" "/checkout/compiler/rustc_ast/src/util/comments.rs" "/checkout/compiler/rustc_ast/src/util/literal.rs" "/checkout/compiler/rustc_ast/src/util/parser.rs" "/checkout/compiler/rustc_ast/src/util/unicode.rs" "/checkout/compiler/rustc_ast/src/util/case.rs" "/checkout/compiler/rustc_ast/src/util/comments/tests.rs" "/checkout/compiler/rustc_ast/src/util/classify.rs" "/checkout/compiler/rustc_ast/src/ast.rs" "/checkout/compiler/rustc_resolve/src/effective_visibilities.rs" "/checkout/compiler/rustc_resolve/src/ident.rs" "/checkout/compiler/rustc_resolve/src/check_unused.rs" "/checkout/compiler/rustc_resolve/src/macros.rs" "/checkout/compiler/rustc_resolve/src/late.rs" "/checkout/compiler/rustc_resolve/src/build_reduced_graph.rs" "/checkout/compiler/rustc_resolve/src/errors.rs" "/checkout/compiler/rustc_resolve/src/lib.rs" "/checkout/compiler/rustc_resolve/src/diagnostics.rs" "/checkout/compiler/rustc_resolve/src/imports.rs" "/checkout/compiler/rustc_resolve/src/late/diagnostics.rs" "/checkout/compiler/rustc_resolve/src/def_collector.rs" "/checkout/src/tools/build_helper/src/lib.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Mon Sep 23 10:35:10 UTC 2024
network time: Mon, 23 Sep 2024 10:35:10 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.740 Building wheels for collected packages: reuse
#13 2.741 Building wheel for reuse (pyproject.toml): started
#13 2.990 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 2.991 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 2.991 Stored in directory: /tmp/pip-ephem-wheel-cache-7cw0q3_1/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 2.994 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.391 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.391 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.928 Collecting virtualenv
#13 3.928 Collecting virtualenv
#13 3.989 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.212 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 27.1 MB/s eta 0:00:00
#13 4.252 Collecting distlib<1,>=0.3.7
#13 4.261 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.275 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 38.2 MB/s eta 0:00:00
#13 4.310 Collecting platformdirs<5,>=3.9.1
#13 4.320 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.356 Collecting filelock<4,>=3.12.2
#13 4.365 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.447 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.636 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 212928 kB
DirectMap2M: 9224192 kB
DirectMap1G: 9437184 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/648d024a7859e1ab7fdffe5e419b6e35ccb16a4a/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-648d024a7859e1ab7fdffe5e419b6e35ccb16a4a-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
fmt check
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:2:
use std::string::String;
use rustc_ast::expand::autodiff_attrs::{
- valid_input_activity, valid_ty_for_activity, AutoDiffAttrs, DiffActivity, DiffMode,
+ AutoDiffAttrs, DiffActivity, DiffMode, valid_input_activity, valid_ty_for_activity,
use rustc_ast::ptr::P;
use rustc_ast::ptr::P;
use rustc_ast::token::{Token, TokenKind};
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:9:
use rustc_ast::tokenstream::*;
use rustc_ast::visit::AssocCtxt::*;
-
// FIXME(ZuseZ4): Remove the allow once linters get smart enough to recognize that these imports are
// used (either if the llvm_enzyme cfg is enabled or disabled), just not in both cases.
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:17:
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:17:
ItemKind, MetaItemKind, NestedMetaItem, PatKind, Stmt, StmtKind, TyKind,
};
use rustc_expand::base::{Annotatable, ExtCtxt};
-use rustc_span::symbol::{kw, sym, Ident};
+use rustc_span::symbol::{Ident, kw, sym};
use rustc_span::{Span, Symbol};
-use thin_vec::{thin_vec, ThinVec};
+use thin_vec::{ThinVec, thin_vec};
use tracing::{debug, trace};
use crate::errors;
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:226:
sig_span,
new_decl_span,
new_decl_span,
idents,
- errored
+ errored,
);
let d_ident = first_ident(&meta_item_vec[0]);
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:400:
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:400:
.map(|arg| ecx.expr_path(ecx.path_ident(span, Ident::from_str(arg))))
.collect();
- let black_box_remaining_args = ecx.expr_call(
- sig_span,
- blackbox_call_expr.clone(),
- blackbox_call_expr.clone(),
- thin_vec![ecx.expr_tuple(sig_span, tup_args)],
- );
+ let black_box_remaining_args = ecx.expr_call(sig_span, blackbox_call_expr.clone(), thin_vec![
+ ecx.expr_tuple(sig_span, tup_args)
let mut body = ecx.block(span, ThinVec::new());
body.stmts.push(ecx.stmt_semi(unsf_expr));
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:614:
// This is not the right signature, but we can continue parsing.
return (sig.clone(), new_inputs, idents, true);
}
- let unsafe_activities = x.input_activity.iter().any(|&act| matches!(act, DiffActivity::DuplicatedOnly | DiffActivity::DualOnly));
+ let unsafe_activities = x
+ .input_activity
+ .iter()
+ .any(|&act| matches!(act, DiffActivity::DuplicatedOnly | DiffActivity::DualOnly));
for (arg, activity) in sig.decl.inputs.iter().zip(x.input_activity.iter()) {
d_inputs.push(arg.clone());
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:667:
}
DiffActivity::Const => {
// Nothing to do here.
// Nothing to do here.
- },
- &DiffActivity::None | &DiffActivity::FakeActivitySize => {
+ }
+ &DiffActivity::None | &DiffActivity::FakeActivitySize => {
panic!("Should not happen");
-
}
}
if let PatKind::Ident(_, ident, _) = arg.pat.kind {
idents.push(ident.clone());
Diff in /checkout/compiler/rustc_ast/src/expand/autodiff_attrs.rs:152:
}
}
if matches!(activity, Dual | DualOnly) {
+ return true;
}
}
// FIXME(ZuseZ4) We should make this more robust to also
// handle type aliases. Once that is done, we can be more restrictive here.
Diff in /checkout/compiler/rustc_ast/src/expand/autodiff_attrs.rs:159:
if matches!(activity, Active | ActiveOnly) {
+ return true;
}
}
matches!(ty.kind, TyKind::Ptr(_) | TyKind::Ref(..))
&& matches!(activity, Duplicated | DuplicatedOnly)
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/compiler/rustc_transmute/src/layout/dfa.rs" "/checkout/compiler/rustc_transmute/src/layout/mod.rs" "/checkout/compiler/rustc_transmute/src/layout/nfa.rs" "/checkout/compiler/rustc_transmute/src/lib.rs" "/checkout/compiler/rustc_transmute/src/maybe_transmutable/tests.rs" "/checkout/compiler/rustc_transmute/src/maybe_transmutable/mod.rs" "/checkout/compiler/rustc_transmute/src/maybe_transmutable/query_context.rs" "/checkout/compiler/rustc_ast/src/ptr.rs" "/checkout/compiler/rustc_ast/src/tokenstream.rs" "/checkout/compiler/rustc_ast/src/entry.rs" "/checkout/compiler/rustc_ast/src/mut_visit.rs" "/checkout/compiler/rustc_ast/src/node_id.rs" "/checkout/compiler/rustc_ast/src/ast_traits.rs" "/checkout/compiler/rustc_ast/src/visit.rs" "/checkout/compiler/rustc_ast/src/token.rs" "/checkout/compiler/rustc_ast/src/lib.rs" "/checkout/compiler/rustc_ast/src/format.rs" "/checkout/compiler/rustc_ast/src/expand/allocator.rs" "/checkout/compiler/rustc_ast/src/expand/autodiff_attrs.rs" "/checkout/compiler/rustc_ast/src/expand/mod.rs" "/checkout/compiler/rustc_ast/src/expand/typetree.rs" "/checkout/compiler/rustc_ast/src/attr/mod.rs" "/checkout/compiler/rustc_ast/src/util/comments.rs" "/checkout/compiler/rustc_ast/src/util/literal.rs" "/checkout/compiler/rustc_ast/src/util/parser.rs" "/checkout/compiler/rustc_ast/src/util/unicode.rs" "/checkout/compiler/rustc_ast/src/util/case.rs" "/checkout/compiler/rustc_ast/src/util/comments/tests.rs" "/checkout/compiler/rustc_ast/src/util/classify.rs" "/checkout/compiler/rustc_ast/src/ast.rs" "/checkout/compiler/rustc_resolve/src/effective_visibilities.rs" "/checkout/compiler/rustc_resolve/src/ident.rs" "/checkout/compiler/rustc_resolve/src/check_unused.rs" "/checkout/compiler/rustc_resolve/src/macros.rs" "/checkout/compiler/rustc_resolve/src/late.rs" "/checkout/compiler/rustc_resolve/src/build_reduced_graph.rs" "/checkout/compiler/rustc_resolve/src/errors.rs" "/checkout/compiler/rustc_resolve/src/lib.rs" "/checkout/compiler/rustc_resolve/src/diagnostics.rs" "/checkout/compiler/rustc_resolve/src/imports.rs" "/checkout/compiler/rustc_resolve/src/late/diagnostics.rs" "/checkout/compiler/rustc_resolve/src/def_collector.rs" "/checkout/compiler/rustc_resolve/src/rustdoc.rs" "/checkout/compiler/rustc_fs_util/src/lib.rs" "/checkout/compiler/rustc_attr/src/session_diagnostics.rs" "/checkout/compiler/rustc_attr/src/lib.rs" "/checkout/compiler/rustc_attr/src/builtin.rs" "/checkout/compiler/rustc_hir_typeck/src/pat.rs" "/checkout/compiler/rustc_hir_typeck/src/expr_use_visitor.rs" "/checkout/compiler/rustc_hir_typeck/src/callee.rs" "/checkout/compiler/rustc_hir_typeck/src/op.rs" "/checkout/compiler/rustc_hir_typeck/src/rvalue_scopes.rs" "/checkout/compiler/rustc_hir_typeck/src/upvar.rs" "/checkout/compiler/rustc_incremental/src/persist/mod.rs" "/checkout/compiler/rustc_incremental/src/persist/fs.rs" "/checkout/compiler/rustc_incremental/src/persist/dirty_clean.rs" "/checkout/compiler/rustc_incremental/src/persist/save.rs" "/checkout/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs" "/checkout/compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs" "/checkout/compiler/rustc_hir_typeck/src/fn_ctxt/inspect_obligations.rs" "/checkout/compiler/rustc_hir_typeck/src/fn_ctxt/adjust_fulfillment_errors.rs" "/checkout/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs" "/checkout/compiler/rustc_hir_typeck/src/fn_ctxt/arg_matrix.rs" "/checkout/compiler/rustc_transmute/src/layout/tree.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Mon Sep 23 17:46:48 UTC 2024
network time: Mon, 23 Sep 2024 17:46:48 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.833 Building wheels for collected packages: reuse
#13 2.834 Building wheel for reuse (pyproject.toml): started
#13 3.080 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.081 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.081 Stored in directory: /tmp/pip-ephem-wheel-cache-jhxh3wdd/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.084 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.477 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.477 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.180 Collecting virtualenv
#13 4.180 Collecting virtualenv
#13 4.227 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.438 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 28.7 MB/s eta 0:00:00
#13 4.500 Collecting filelock<4,>=3.12.2
#13 4.506 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.526 Collecting distlib<1,>=0.3.7
#13 4.532 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.542 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 57.2 MB/s eta 0:00:00
#13 4.577 Collecting platformdirs<5,>=3.9.1
#13 4.583 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.665 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.852 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.9s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 190400 kB
DirectMap2M: 8198144 kB
DirectMap1G: 10485760 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/648d024a7859e1ab7fdffe5e419b6e35ccb16a4a/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-648d024a7859e1ab7fdffe5e419b6e35ccb16a4a-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
fmt check
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:2:
use std::string::String;
use rustc_ast::expand::autodiff_attrs::{
- valid_input_activity, valid_ty_for_activity, AutoDiffAttrs, DiffActivity, DiffMode,
+ AutoDiffAttrs, DiffActivity, DiffMode, valid_input_activity, valid_ty_for_activity,
use rustc_ast::ptr::P;
use rustc_ast::ptr::P;
use rustc_ast::token::{Token, TokenKind};
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:16:
ItemKind, MetaItemKind, NestedMetaItem, PatKind, Stmt, StmtKind, TyKind,
};
use rustc_expand::base::{Annotatable, ExtCtxt};
-use rustc_span::symbol::{kw, sym, Ident};
+use rustc_span::symbol::{Ident, kw, sym};
use rustc_span::{Span, Symbol};
-use thin_vec::{thin_vec, ThinVec};
+use thin_vec::{ThinVec, thin_vec};
use tracing::{debug, trace};
use crate::errors;
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:390:
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:390:
.map(|arg| ecx.expr_path(ecx.path_ident(span, Ident::from_str(arg))))
.collect();
- let black_box_remaining_args = ecx.expr_call(
- sig_span,
- blackbox_call_expr.clone(),
- blackbox_call_expr.clone(),
- thin_vec![ecx.expr_tuple(sig_span, tup_args)],
- );
+ let black_box_remaining_args = ecx.expr_call(sig_span, blackbox_call_expr.clone(), thin_vec![
+ ecx.expr_tuple(sig_span, tup_args)
let mut body = ecx.block(span, ThinVec::new());
body.stmts.push(ecx.stmt_semi(unsf_expr));
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/src/librustdoc/html/escape.rs" "/checkout/src/librustdoc/html/markdown/tests.rs" "/checkout/src/librustdoc/html/mod.rs" "/checkout/src/librustdoc/html/highlight/tests.rs" "/checkout/src/librustdoc/html/highlight/fixtures/union.rs" "/checkout/src/librustdoc/html/highlight/fixtures/sample.rs" "/checkout/src/librustdoc/html/escape/tests.rs" "/checkout/src/librustdoc/html/highlight.rs" "/checkout/src/librustdoc/html/toc/tests.rs" "/checkout/src/librustdoc/visit.rs" "/checkout/src/librustdoc/docfs.rs" "/checkout/src/librustdoc/config.rs" "/checkout/src/librustdoc/lib.rs" "/checkout/src/librustdoc/core.rs" "/checkout/src/librustdoc/externalfiles.rs" "/checkout/src/librustdoc/doctest/tests.rs" "/checkout/src/librustdoc/doctest/markdown.rs" "/checkout/src/librustdoc/doctest/runner.rs" "/checkout/src/librustdoc/doctest/rust.rs" "/checkout/src/librustdoc/doctest/make.rs" "/checkout/compiler/rustc_builtin_macros/src/global_allocator.rs" "/checkout/compiler/rustc_builtin_macros/src/trace_macros.rs" "/checkout/compiler/rustc_builtin_macros/src/cfg_accessible.rs" "/checkout/compiler/rustc_builtin_macros/src/cfg.rs" "/checkout/compiler/rustc_builtin_macros/src/env.rs" "/checkout/compiler/rustc_builtin_macros/src/derive.rs" "/checkout/compiler/rustc_builtin_macros/src/assert.rs" "/checkout/compiler/rustc_builtin_macros/src/concat_idents.rs" "/checkout/compiler/rustc_builtin_macros/src/assert/context.rs" "/checkout/compiler/rustc_builtin_macros/src/edition_panic.rs" "/checkout/compiler/rustc_builtin_macros/src/proc_macro_harness.rs" "/checkout/compiler/rustc_builtin_macros/src/cfg_eval.rs" "/checkout/compiler/rustc_builtin_macros/src/concat.rs" "/checkout/compiler/rustc_builtin_macros/src/alloc_error_handler.rs" "/checkout/compiler/rustc_builtin_macros/src/errors.rs" "/checkout/compiler/rustc_builtin_macros/src/standard_library_imports.rs" "/checkout/compiler/rustc_builtin_macros/src/log_syntax.rs" "/checkout/compiler/rustc_builtin_macros/src/source_util.rs" "/checkout/compiler/rustc_builtin_macros/src/pattern_type.rs" "/checkout/compiler/rustc_builtin_macros/src/concat_bytes.rs" "/checkout/compiler/rustc_builtin_macros/src/lib.rs" "/checkout/src/librustdoc/json/import_finder.rs" "/checkout/compiler/rustc_builtin_macros/src/format.rs" "/checkout/src/librustdoc/json/conversions.rs" "/checkout/compiler/rustc_builtin_macros/src/util.rs" "/checkout/src/librustdoc/json/mod.rs" "/checkout/compiler/rustc_builtin_macros/src/asm.rs" "/checkout/compiler/rustc_builtin_macros/src/autodiff.rs" "/checkout/compiler/rustc_builtin_macros/src/cmdline_attrs.rs" "/checkout/src/librustdoc/formats/cache.rs" "/checkout/src/librustdoc/formats/item_type.rs" "/checkout/src/librustdoc/formats/renderer.rs" "/checkout/src/librustdoc/formats/mod.rs" "/checkout/src/librustdoc/fold.rs" "/checkout/src/librustdoc/visit_ast.rs" "/checkout/src/librustdoc/scrape_examples.rs" "/checkout/src/librustdoc/lint.rs" "/checkout/src/rustdoc-json-types/tests.rs" "/checkout/src/rustdoc-json-types/lib.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/default.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/clone.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/encodable.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs" "/checkout/src/librustdoc/html/static_files.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Mon Sep 23 18:04:20 UTC 2024
network time: Mon, 23 Sep 2024 18:04:20 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
But .. I force pushed a rebased implementation which has a commit not on the rust master? Why does git(hub) think it should close this? Git fun.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.821 Building wheels for collected packages: reuse
#13 2.822 Building wheel for reuse (pyproject.toml): started
#13 3.072 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.073 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.073 Stored in directory: /tmp/pip-ephem-wheel-cache-yzmhtov9/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.076 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.476 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.476 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.997 Collecting virtualenv
#13 3.997 Collecting virtualenv
#13 4.032 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.112 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 77.1 MB/s eta 0:00:00
#13 4.168 Collecting platformdirs<5,>=3.9.1
#13 4.171 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.188 Collecting distlib<1,>=0.3.7
#13 4.199 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 89.0 MB/s eta 0:00:00
#13 4.233 Collecting filelock<4,>=3.12.2
#13 4.238 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.238 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.319 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.511 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.6s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 217024 kB
DirectMap2M: 10268672 kB
DirectMap1G: 8388608 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/9d6039ccae68a2f1930ed9c1542d387b2c0c0ba6/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-9d6039ccae68a2f1930ed9c1542d387b2c0c0ba6-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
fmt check
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:2:
use std::string::String;
use rustc_ast::expand::autodiff_attrs::{
- valid_input_activity, valid_ty_for_activity, AutoDiffAttrs, DiffActivity, DiffMode,
+ AutoDiffAttrs, DiffActivity, DiffMode, valid_input_activity, valid_ty_for_activity,
use rustc_ast::ptr::P;
use rustc_ast::ptr::P;
use rustc_ast::token::{Token, TokenKind};
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:16:
ItemKind, MetaItemKind, NestedMetaItem, PatKind, Stmt, StmtKind, TyKind,
};
use rustc_expand::base::{Annotatable, ExtCtxt};
-use rustc_span::symbol::{kw, sym, Ident};
+use rustc_span::symbol::{Ident, kw, sym};
use rustc_span::{Span, Symbol};
-use thin_vec::{thin_vec, ThinVec};
+use thin_vec::{ThinVec, thin_vec};
use tracing::{debug, trace};
use crate::errors;
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:391:
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:391:
.map(|arg| ecx.expr_path(ecx.path_ident(span, Ident::from_str(arg))))
.collect();
- let black_box_remaining_args = ecx.expr_call(
- sig_span,
- blackbox_call_expr.clone(),
- blackbox_call_expr.clone(),
- thin_vec![ecx.expr_tuple(sig_span, tup_args)],
- );
+ let black_box_remaining_args = ecx.expr_call(sig_span, blackbox_call_expr.clone(), thin_vec![
+ ecx.expr_tuple(sig_span, tup_args)
let mut body = ecx.block(span, ThinVec::new());
body.stmts.push(ecx.stmt_semi(unsf_expr));
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/compiler/rustc_builtin_macros/src/util.rs" "/checkout/compiler/rustc_builtin_macros/src/asm.rs" "/checkout/compiler/rustc_builtin_macros/src/autodiff.rs" "/checkout/compiler/rustc_builtin_macros/src/cmdline_attrs.rs" "/checkout/src/librustdoc/passes/lint/unportable_markdown.rs" "/checkout/src/librustdoc/passes/lint/html_tags.rs" "/checkout/src/librustdoc/passes/lint/bare_urls.rs" "/checkout/src/librustdoc/passes/lint/check_code_block_syntax.rs" "/checkout/src/librustdoc/passes/lint/unescaped_backticks.rs" "/checkout/src/librustdoc/passes/lint/redundant_explicit_links.rs" "/checkout/src/librustdoc/passes/collect_intra_doc_links.rs" "/checkout/src/librustdoc/passes/strip_hidden.rs" "/checkout/src/librustdoc/passes/check_doc_test_visibility.rs" "/checkout/src/librustdoc/passes/strip_priv_imports.rs" "/checkout/src/librustdoc/passes/calculate_doc_coverage.rs" "/checkout/src/librustdoc/passes/mod.rs" "/checkout/src/librustdoc/passes/strip_aliased_non_local.rs" "/checkout/src/librustdoc/passes/lint.rs" "/checkout/src/librustdoc/passes/propagate_doc_cfg.rs" "/checkout/src/librustdoc/passes/collect_trait_impls.rs" "/checkout/src/librustdoc/doctest.rs" "/checkout/src/librustdoc/theme/tests.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/default.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/clone.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/encodable.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/debug.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/decodable.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/mod.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/cmp/partial_ord.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/cmp/ord.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/cmp/partial_eq.rs" "/checkout/src/librustdoc/clean/utils.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/bounds.rs" "/checkout/src/librustdoc/clean/cfg.rs" "/checkout/src/librustdoc/clean/render_macro_matchers.rs" "/checkout/src/librustdoc/clean/types.rs" "/checkout/src/librustdoc/clean/simplify.rs" "/checkout/src/librustdoc/clean/auto_trait.rs" "/checkout/src/librustdoc/clean/inline.rs" "/checkout/src/librustdoc/clean/utils/tests.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/generic/ty.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/hash.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign.rs" "/checkout/compiler/rustc_builtin_macros/src/test_harness.rs" "/checkout/compiler/rustc_builtin_macros/src/compile_error.rs" "/checkout/compiler/rustc_builtin_macros/src/test.rs" "/checkout/src/librustdoc/clean/cfg/tests.rs" "/checkout/src/librustdoc/clean/types/tests.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign/shell/tests.rs" "/checkout/src/librustdoc/clean/mod.rs" "/checkout/src/librustdoc/clean/blanket_impl.rs" "/checkout/src/librustdoc/markdown.rs" "/checkout/src/librustdoc/error.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs" "/checkout/src/librustdoc/html/tests.rs" "/checkout/compiler/rustc_trait_selection/src/error_reporting/infer/suggest.rs" "/checkout/compiler/rustc_trait_selection/src/error_reporting/infer/note.rs" "/checkout/compiler/rustc_trait_selection/src/error_reporting/infer/region.rs" "/checkout/compiler/rustc_trait_selection/src/error_reporting/infer/need_type_info.rs" "/checkout/compiler/rustc_trait_selection/src/error_reporting/infer/note_and_explain.rs" "/checkout/compiler/rustc_builtin_macros/src/format.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Mon Sep 23 22:20:49 UTC 2024
network time: Mon, 23 Sep 2024 22:20:49 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.924 Building wheels for collected packages: reuse
#13 2.925 Building wheel for reuse (pyproject.toml): started
#13 3.178 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.179 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.179 Stored in directory: /tmp/pip-ephem-wheel-cache-0j40jkx7/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.181 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.577 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.577 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.133 Collecting virtualenv
#13 4.133 Collecting virtualenv
#13 4.174 Downloading virtualenv-20.26.5-py3-none-any.whl (6.0 MB)
#13 4.333 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 38.4 MB/s eta 0:00:00
#13 4.372 Collecting distlib<1,>=0.3.7
#13 4.376 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.383 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 93.6 MB/s eta 0:00:00
#13 4.416 Collecting filelock<4,>=3.12.2
#13 4.420 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
#13 4.453 Collecting platformdirs<5,>=3.9.1
#13 4.457 Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
#13 4.539 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.727 Successfully installed distlib-0.3.8 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.26.5
#13 DONE 4.8s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 237504 kB
DirectMap2M: 8151040 kB
DirectMap1G: 10485760 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/7042c269c166191cd5d8daf0409890903df7af57/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-7042c269c166191cd5d8daf0409890903df7af57-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
fmt check
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:2:
use std::string::String;
use rustc_ast::expand::autodiff_attrs::{
- valid_input_activity, valid_ty_for_activity, AutoDiffAttrs, DiffActivity, DiffMode,
+ AutoDiffAttrs, DiffActivity, DiffMode, valid_input_activity, valid_ty_for_activity,
use rustc_ast::ptr::P;
use rustc_ast::ptr::P;
use rustc_ast::token::{Token, TokenKind};
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:16:
ItemKind, MetaItemKind, NestedMetaItem, PatKind, Stmt, StmtKind, TyKind,
};
use rustc_expand::base::{Annotatable, ExtCtxt};
-use rustc_span::symbol::{kw, sym, Ident};
+use rustc_span::symbol::{Ident, kw, sym};
use rustc_span::{Span, Symbol};
-use thin_vec::{thin_vec, ThinVec};
+use thin_vec::{ThinVec, thin_vec};
use tracing::{debug, trace};
use crate::errors;
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:392:
Diff in /checkout/compiler/rustc_builtin_macros/src/autodiff.rs:392:
.map(|arg| ecx.expr_path(ecx.path_ident(span, Ident::from_str(arg))))
.collect();
- let black_box_remaining_args = ecx.expr_call(
- sig_span,
- blackbox_call_expr.clone(),
- blackbox_call_expr.clone(),
- thin_vec![ecx.expr_tuple(sig_span, tup_args)],
- );
+ let black_box_remaining_args = ecx.expr_call(sig_span, blackbox_call_expr.clone(), thin_vec![
+ ecx.expr_tuple(sig_span, tup_args)
let mut body = ecx.block(span, ThinVec::new());
body.stmts.push(ecx.stmt_semi(unsf_expr));
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/src/librustdoc/html/render/context.rs" "/checkout/src/librustdoc/html/render/sidebar.rs" "/checkout/src/librustdoc/html/render/search_index.rs" "/checkout/src/librustdoc/html/render/mod.rs" "/checkout/src/librustdoc/html/render/ordered_json/tests.rs" "/checkout/src/librustdoc/html/render/type_layout.rs" "/checkout/src/librustdoc/html/render/print_item.rs" "/checkout/src/librustdoc/html/length_limit.rs" "/checkout/src/librustdoc/html/length_limit/tests.rs" "/checkout/src/librustdoc/html/url_parts_builder.rs" "/checkout/src/librustdoc/html/layout.rs" "/checkout/src/librustdoc/html/toc.rs" "/checkout/src/librustdoc/html/format.rs" "/checkout/src/librustdoc/html/url_parts_builder/tests.rs" "/checkout/src/librustdoc/html/static_files.rs" "/checkout/src/librustdoc/html/escape.rs" "/checkout/src/librustdoc/html/markdown/tests.rs" "/checkout/src/librustdoc/html/mod.rs" "/checkout/src/librustdoc/html/highlight/tests.rs" "/checkout/src/librustdoc/html/highlight/fixtures/union.rs" "/checkout/src/librustdoc/html/highlight/fixtures/sample.rs" "/checkout/src/librustdoc/html/escape/tests.rs" "/checkout/src/librustdoc/html/highlight.rs" "/checkout/src/librustdoc/html/toc/tests.rs" "/checkout/src/librustdoc/visit.rs" "/checkout/src/librustdoc/docfs.rs" "/checkout/src/librustdoc/config.rs" "/checkout/src/librustdoc/lib.rs" "/checkout/src/librustdoc/core.rs" "/checkout/src/librustdoc/externalfiles.rs" "/checkout/compiler/rustc_builtin_macros/src/standard_library_imports.rs" "/checkout/compiler/rustc_builtin_macros/src/log_syntax.rs" "/checkout/compiler/rustc_builtin_macros/src/source_util.rs" "/checkout/compiler/rustc_builtin_macros/src/pattern_type.rs" "/checkout/compiler/rustc_builtin_macros/src/concat_bytes.rs" "/checkout/compiler/rustc_builtin_macros/src/lib.rs" "/checkout/compiler/rustc_builtin_macros/src/format.rs" "/checkout/compiler/rustc_builtin_macros/src/util.rs" "/checkout/compiler/rustc_builtin_macros/src/asm.rs" "/checkout/compiler/rustc_builtin_macros/src/autodiff.rs" "/checkout/compiler/rustc_builtin_macros/src/cmdline_attrs.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/default.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/clone.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/encodable.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/debug.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/decodable.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/mod.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/cmp/partial_ord.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/cmp/ord.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/cmp/partial_eq.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/bounds.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/generic/ty.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs" "/checkout/compiler/rustc_builtin_macros/src/deriving/hash.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign.rs" "/checkout/compiler/rustc_builtin_macros/src/test_harness.rs" "/checkout/compiler/rustc_builtin_macros/src/compile_error.rs" "/checkout/compiler/rustc_builtin_macros/src/test.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign/shell/tests.rs" "/checkout/compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs" "/checkout/compiler/rustc_trait_selection/src/error_reporting/infer/suggest.rs" "/checkout/src/librustdoc/html/render/write_shared/tests.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Tue Sep 24 00:04:36 UTC 2024
network time: Tue, 24 Sep 2024 00:04:36 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
@jieyouxu ok, so I think I'm mostly done by now, please let me know if I missed an important comment. cc @compiler-errors since you also provided some feedback.
I have somewhat overlapping checks for usage mistakes, but as explained in the code comments I'd prefer to delete those in a follow up PR, just keep minimal checks here (i.e. make sure we at least have the right number of args), and reintroduce them on THIR or later where I have actual type information.
I still need to add all the error messages into my autodiff_illegal.rs test file but I should be able to do that at the side.
We also now potentially want to flip the defaults again to make sure that this is not getting build by CI (for now). In that case someone would also need to help me with how to disable my three tests from running by default, as they will fail when rustc isn't build with autodiff support.
Is there anything else to do, before I ping the reviewer?
I'd still be happy about any hint on how to solve https://github.com/g-bauer/enzyme_playground/tree/main?tab=readme-ov-file#problems, but I'm fine with tackling that bug later.
The job x86_64-gnu-llvm-18 failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
------
> importing cache manifest from ghcr.io/rust-lang/rust-ci-cache:30ca74372d8b771363f68f939a58b017a592fae4f69398600dc51145997160f03e9652051f957840c41898984a88855e9757fa23464703a5a4ba21316ddebb04:
------
##[endgroup]
Setting extra environment values for docker: --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-18]
---
sccache: Starting the server...
##[group]Configure the build
configure: processing command line
configure:
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-18', '--enable-llvm-link-shared', '--set', 'rust.randomize-layout=true', '--set', 'rust.thin-lto-import-instr-limit=10', '--set', 'change-id=99999999', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'rust.lld=false', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--enable-new-symbol-mangling']
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-18/bin/llvm-config
configure: llvm.link-shared := True
configure: rust.randomize-layout := True
configure: rust.thin-lto-import-instr-limit := 10
---
Downloaded boml v0.3.1
Compiling boml v0.3.1
Compiling y v0.1.0 (/checkout/compiler/rustc_codegen_gcc/build_system)
Finished `release` profile [optimized] target(s) in 3.80s
Running `/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/x86_64-unknown-linux-gnu/release/y test --use-system-gcc --use-backend gcc --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/cg_gcc --release --mini-tests --std-tests`
Using system GCC
[BUILD] example
[AOT] mini_core_hello_world
/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/cg_gcc/mini_core_hello_world
abc
---
---- [pretty] tests/pretty/autodiff_illegal.rs stdout ----
error: pretty-printing failed in round 0 revision None
status: exit status: 1
command: RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/pretty/autodiff_illegal.rs" "-Z" "unpretty=expanded" "--target" "x86_64-unknown-linux-gnu" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/pretty/autodiff_illegal/auxiliary.pretty" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers"
#![feature(prelude_import)]
#![no_std]
#![feature(autodiff)]
#[prelude_import]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
//@ pretty-mode:expanded
//@ pretty-compare-only
//@ pp-exact:autodiff_illegal.pp
// Test that invalid ad macros give nice errors and don't ICE.
// We can't use Duplicated on scalars
#[rustc_autodiff]
#[inline(never)]
#[inline(never)]
pub fn f1(x: f64) {
// We can't use Dual on scalars
// Too many activities
---
// Invalid, please pick one Mode
// or use two autodiff macros.
// We can't handle Active structs, because that would mean (in the general case), that we would
// need to allocate and initialize arbitrary user types. We have Duplicated/Dual input args for
// that. FIXME: Give a nicer error and suggest to the user to have a `&mut Foo` input instead.
// We would like to support this case in the future,
// but that requires us to implement our checks at a later stage
// like THIR which has type information available.
---
// We would like to support this case in the future
::core::panicking::panic("not implemented")
}
#[rustc_autodiff(Reverse, Duplicated, None)]
#[inline(never)]
pub fn df1(x: f64) { unsafe { asm!("NOP"); }; ::core::hint::black_box(()); }
#[rustc_autodiff]
#[inline(never)]
pub fn f2(x: f64) { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Forward, Dual, None)]
#[inline(never)]
pub fn df2(x: f64, bx: f64) {
unsafe { asm!("NOP"); };
::core::hint::black_box(f2(x));
::core::hint::black_box((bx,));
#[rustc_autodiff]
#[inline(never)]
#[inline(never)]
pub fn f3(x: f64) { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, Duplicated, Const, None)]
#[inline(never)]
pub fn df3(x: f64) { unsafe { asm!("NOP"); }; ::core::hint::black_box(()); }
#[rustc_autodiff]
#[inline(never)]
pub fn f4(x: f64) { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, None)]
#[inline(never)]
pub fn df4(x: f64) { unsafe { asm!("NOP"); }; ::core::hint::black_box(()); }
#[rustc_autodiff]
#[inline(never)]
pub fn f5(x: f64) { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, Dual, None)]
#[inline(never)]
pub fn df5(x: f64) { unsafe { asm!("NOP"); }; ::core::hint::black_box(()); }
#[rustc_autodiff]
#[inline(never)]
pub fn f6(x: f64) { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Forward, Duplicated, None)]
#[inline(never)]
pub fn df6(x: f64) { unsafe { asm!("NOP"); }; ::core::hint::black_box(()); }
fn dummy() {
let mut x = 5;
x = x + 3;
let add_one_v2 = |x: u32| -> u32 { x + 1 };
}
pub fn f7(x: f64) { ::core::panicking::panic("not implemented") }
pub fn f8(x: f64) { ::core::panicking::panic("not implemented") }
pub fn f9(x: f64) { ::core::panicking::panic("not implemented") }
fn fn_exists() {}
#[rustc_autodiff]
#[inline(never)]
pub fn f10(x: f64) { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, Active, None)]
#[inline(never)]
pub fn fn_exists(x: f64) -> f64 {
unsafe { asm!("NOP"); };
::core::hint::black_box(f10(x));
::core::hint::black_box(());
f64::default()
}
pub fn f11() { ::core::panicking::panic("not implemented") }
pub fn f12() { ::core::panicking::panic("not implemented") }
pub fn f13() { ::core::panicking::panic("not implemented") }
#[rustc_autodiff]
#[inline(never)]
#[inline(never)]
fn f14(x: f32) -> Foo { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, Active, Active,)]
#[inline(never)]
fn df14(x: f32, dret: Foo) -> (Foo, f32) {
unsafe { asm!("NOP"); };
::core::hint::black_box(f14(x));
::core::hint::black_box((dret,));
::core::hint::black_box((f14(x), f32::default()))
}
type MyFloat = f32;
#[rustc_autodiff]
#[inline(never)]
fn f15(x: MyFloat) -> f32 { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, Active, Active,)]
#[inline(never)]
fn df15(x: MyFloat, dret: f32) -> (f32, MyFloat) {
unsafe { asm!("NOP"); };
::core::hint::black_box(f15(x));
::core::hint::black_box((dret,));
::core::hint::black_box((f15(x), MyFloat::default()))
#[rustc_autodiff]
#[inline(never)]
#[inline(never)]
fn f16(x: f32) -> MyFloat { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, Active, Active,)]
#[inline(never)]
fn df16(x: f32, dret: MyFloat) -> (MyFloat, f32) {
unsafe { asm!("NOP"); };
::core::hint::black_box(f16(x));
::core::hint::black_box((dret,));
::core::hint::black_box((f16(x), f32::default()))
#[repr(transparent)]
struct F64Trans {
inner: f64,
}
}
#[rustc_autodiff]
#[inline(never)]
fn f17(x: f64) -> F64Trans { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, Active, Active,)]
#[inline(never)]
fn df17(x: f64, dret: F64Trans) -> (F64Trans, f64) {
unsafe { asm!("NOP"); };
::core::hint::black_box(f17(x));
::core::hint::black_box((dret,));
::core::hint::black_box((f17(x), f64::default()))
#[rustc_autodiff]
#[inline(never)]
#[inline(never)]
fn f18(x: F64Trans) -> f64 { ::core::panicking::panic("not implemented") }
#[rustc_autodiff(Reverse, Active, Active,)]
#[inline(never)]
fn df18(x: F64Trans, dret: f64) -> (f64, F64Trans) {
unsafe { asm!("NOP"); };
::core::hint::black_box(f18(x));
::core::hint::black_box((dret,));
::core::hint::black_box((f18(x), F64Trans::default()))
fn main() {}
------------------------------------------
--- stderr -------------------------------
error[E0658]: attributes on expressions are experimental
error[E0658]: attributes on expressions are experimental
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:49:5
|
49 | #[autodiff(df7, Forward, Dual)]
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
= note: this compiler was built on 2024-09-24; consider upgrading it if it is out of date
= note: this compiler was built on 2024-09-24; consider upgrading it if it is out of date
error: Duplicated can not be used for this type
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:10:14
|
10 | pub fn f1(x: f64) {
error: expected 1 activities, but found 2
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:21:1
|
|
21 | #[autodiff(df3, Reverse, Duplicated, Const)]
|
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected 1 activities, but found 0
error: expected 1 activities, but found 0
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:27:1
|
27 | #[autodiff(df4, Reverse)]
|
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
error: Dual can not be used in Reverse Mode
error: Dual can not be used in Reverse Mode
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:33:1
|
33 | #[autodiff(df5, Reverse, Dual)]
|
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
error: Duplicated can not be used in Forward Mode
error: Duplicated can not be used in Forward Mode
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:39:1
|
39 | #[autodiff(df6, Forward, Duplicated)]
|
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
error: Duplicated can not be used for this type
error: Duplicated can not be used for this type
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:40:14
|
40 | pub fn f6(x: f64) {
error: autodiff must be applied to function
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:47:5
|
---
error: autodiff must be applied to function
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:53:5
|
53 | let add_one_v2 = |x: u32| -> u32 { x + 1 };
error: autodiff must be applied to function
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:58:1
|
|
58 | / pub fn f7(x: f64) {
60 | | }
| |_^
error: autodiff requires at least a name and mode
error: autodiff requires at least a name and mode
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:64:1
|
64 | / pub fn f8(x: f64) {
66 | | }
| |_^
error: autodiff must be applied to function
error: autodiff must be applied to function
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:70:1
|
70 | / pub fn f9(x: f64) {
72 | | }
| |_^
error[E0428]: the name `fn_exists` is defined multiple times
error[E0428]: the name `fn_exists` is defined multiple times
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:77:1
|
74 | fn fn_exists() {}
| -------------- previous definition of the value `fn_exists` here
...
77 | #[autodiff(fn_exists, Reverse, Active)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `fn_exists` redefined here
= note: `fn_exists` must be defined only once in the value namespace of this module
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
error: autodiff requires at least a name and mode
error: autodiff requires at least a name and mode
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:84:1
|
84 | / pub fn f11() {
85 | | unimplemented!()
86 | | }
| |_^
error: unknown Mode: `Debug`. Use `Forward` or `Reverse`
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:89:18
|
89 | #[autodiff(df12, Debug)]
error: did not recognize Activity: `Reverse`
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:96:27
|
|
96 | #[autodiff(df13, Forward, Reverse)]
error[E0433]: failed to resolve: use of undeclared type `MyFloat`
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:116:1
|
|
116 | #[autodiff(df15, Reverse, Active, Active)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyFloat`
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: use of undeclared type `F64Trans`
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:137:1
##[error] --> /checkout/tests/pretty/autodiff_illegal.rs:137:1
|
137 | #[autodiff(df18, Reverse, Active, Active)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `F64Trans`
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 19 previous errors
Well I'll go ahead and ping @ pnkfelix. This is the frontend for the new, experimental autodiff macro. The previous and the first comment have a summary of this work. Please let me know if you want any changes!