Skip to content

Clippy fixes.

Clippy fixes. #1085

Triggered via pull request August 1, 2025 14:52
Status Failure
Total duration 2m 3s
Artifacts

rust-ci.yml

on: pull_request
Matrix: Check
Matrix: Test Suite
Fit to window
Zoom out
Zoom in

Annotations

8 errors, 120 warnings, and 10 notices
Check (windows-2019, stable)
Windows Server 2019 has been retired. The Windows Server 2019 image has been removed as of 2025-06-30. For more details, see https://github.com/actions/runner-images/issues/12045
Check (windows-2019, nightly)
Windows Server 2019 has been retired. The Windows Server 2019 image has been removed as of 2025-06-30. For more details, see https://github.com/actions/runner-images/issues/12045
Test Suite (ubuntu-latest, nightly)
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
Test Suite (ubuntu-latest, nightly)
linking with `cc` failed: exit status: 1
Test Suite (ubuntu-latest, stable)
The operation was canceled.
Test Suite (ubuntu-latest, stable)
The strategy configuration was canceled because "test.ubuntu-latest_nightly" failed
Test Suite (macOS-latest, nightly)
The operation was canceled.
Test Suite (macOS-latest, nightly)
The strategy configuration was canceled because "test.ubuntu-latest_nightly" failed
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (ubuntu-latest, stable)
[email protected]: libtch/torch_api.h:19:5: note: in definition of macro 'PROTECT'
Check (ubuntu-latest, stable)
[email protected]: 200 | bool is_enabled = at::autocast::is_enabled();
Check (ubuntu-latest, stable)
[email protected]: libtch/torch_api.cpp: In function 'bool at_autocast_set_enabled(bool)':
Check (ubuntu-latest, stable)
[email protected]: 28 | TORCH_API inline bool is_enabled() {
Check (ubuntu-latest, stable)
[email protected]: In file included from libtch/torch_api.cpp:9:
Check (ubuntu-latest, stable)
[email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~^~
Check (ubuntu-latest, stable)
[email protected]: libtch/torch_api.cpp:193:36: warning: 'bool at::autocast::is_enabled()' is deprecated: at::autocast::is_enabled() is deprecated. Please use at::autocast::is_autocast_enabled(at::kCUDA) instead. [-Wdeprecated-declarations]
Check (ubuntu-latest, stable)
[email protected]: In file included from libtch/torch_api.cpp:15:
Check (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (macOS-latest, stable)
[email protected]: #define C10_DEPRECATED_MESSAGE(message) [[deprecated(message)]]
Test Suite (macOS-latest, stable)
[email protected]: /Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-e976f7915c7ab91e/out/libtorch/libtorch/include/ATen/autocast_mode.h:26:1: note: 'is_enabled' has been explicitly marked deprecated here
Test Suite (macOS-latest, stable)
[email protected]: bool is_enabled = at::autocast::is_enabled();
Test Suite (macOS-latest, stable)
[email protected]: /Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-e976f7915c7ab91e/out/libtorch/libtorch/include/c10/util/Deprecated.h:24:43: note: expanded from macro 'C10_DEPRECATED_MESSAGE'
Test Suite (macOS-latest, stable)
[email protected]: C10_DEPRECATED_MESSAGE(
Test Suite (macOS-latest, stable)
[email protected]: libtch/torch_api.cpp:193:26: warning: 'is_enabled' is deprecated: at::autocast::is_enabled() is deprecated. Please use at::autocast::is_autocast_enabled(at::kCUDA) instead. [-Wdeprecated-declarations]
Test Suite (macOS-latest, stable)
[email protected]: clang: warning: -Wl,-rpath=/Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-e976f7915c7ab91e/out/libtorch/libtorch/lib: 'linker' input unused [-Wunused-command-line-argument]
Test Suite (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (ubuntu-latest, nightly)
[email protected]: libtch/torch_api.h:19:5: note: in definition of macro 'PROTECT'
Test Suite (ubuntu-latest, nightly)
[email protected]: libtch/torch_api.h:19:5: note: in definition of macro 'PROTECT'
Check (ubuntu-latest, nightly)
[email protected]: 200 | bool is_enabled = at::autocast::is_enabled();
Check (ubuntu-latest, nightly)
[email protected]: libtch/torch_api.cpp: In function 'bool at_autocast_set_enabled(bool)':
Test Suite (ubuntu-latest, nightly)
[email protected]: 200 | bool is_enabled = at::autocast::is_enabled();
Check (ubuntu-latest, nightly)
[email protected]: 28 | TORCH_API inline bool is_enabled() {
Test Suite (ubuntu-latest, nightly)
[email protected]: libtch/torch_api.cpp: In function 'bool at_autocast_set_enabled(bool)':
Check (ubuntu-latest, nightly)
[email protected]: In file included from libtch/torch_api.cpp:9:
Test Suite (ubuntu-latest, nightly)
[email protected]: 28 | TORCH_API inline bool is_enabled() {
Check (ubuntu-latest, nightly)
[email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~^~
Test Suite (ubuntu-latest, nightly)
[email protected]: In file included from libtch/torch_api.cpp:9:
Check (ubuntu-latest, nightly)
[email protected]: libtch/torch_api.cpp:193:36: warning: 'bool at::autocast::is_enabled()' is deprecated: at::autocast::is_enabled() is deprecated. Please use at::autocast::is_autocast_enabled(at::kCUDA) instead. [-Wdeprecated-declarations]
Check (ubuntu-latest, nightly)
[email protected]: In file included from libtch/torch_api.cpp:15:
Test Suite (ubuntu-latest, nightly)
[email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~^~
Check (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, nightly)
[email protected]: libtch/torch_api.cpp:193:36: warning: 'bool at::autocast::is_enabled()' is deprecated: at::autocast::is_enabled() is deprecated. Please use at::autocast::is_autocast_enabled(at::kCUDA) instead. [-Wdeprecated-declarations]
Check (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, nightly)
[email protected]: In file included from libtch/torch_api.cpp:15:
Check (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, stable)
[email protected]: libtch/torch_api.h:19:5: note: in definition of macro 'PROTECT'
Test Suite (ubuntu-latest, stable)
[email protected]: 200 | bool is_enabled = at::autocast::is_enabled();
Test Suite (ubuntu-latest, stable)
[email protected]: libtch/torch_api.cpp: In function 'bool at_autocast_set_enabled(bool)':
Test Suite (ubuntu-latest, stable)
[email protected]: 28 | TORCH_API inline bool is_enabled() {
Test Suite (ubuntu-latest, stable)
[email protected]: In file included from libtch/torch_api.cpp:9:
Test Suite (ubuntu-latest, stable)
[email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~^~
Test Suite (ubuntu-latest, stable)
[email protected]: libtch/torch_api.cpp:193:36: warning: 'bool at::autocast::is_enabled()' is deprecated: at::autocast::is_enabled() is deprecated. Please use at::autocast::is_autocast_enabled(at::kCUDA) instead. [-Wdeprecated-declarations]
Test Suite (ubuntu-latest, stable)
[email protected]: In file included from libtch/torch_api.cpp:15:
Test Suite (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (macOS-latest, nightly)
[email protected]: #define C10_DEPRECATED_MESSAGE(message) [[deprecated(message)]]
Test Suite (macOS-latest, nightly)
[email protected]: /Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-5e61794588fc1791/out/libtorch/libtorch/include/ATen/autocast_mode.h:26:1: note: 'is_enabled' has been explicitly marked deprecated here
Test Suite (macOS-latest, nightly)
[email protected]: bool is_enabled = at::autocast::is_enabled();
Test Suite (macOS-latest, nightly)
[email protected]: /Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-5e61794588fc1791/out/libtorch/libtorch/include/c10/util/Deprecated.h:24:43: note: expanded from macro 'C10_DEPRECATED_MESSAGE'
Test Suite (macOS-latest, nightly)
[email protected]: C10_DEPRECATED_MESSAGE(
Test Suite (macOS-latest, nightly)
[email protected]: libtch/torch_api.cpp:193:26: warning: 'is_enabled' is deprecated: at::autocast::is_enabled() is deprecated. Please use at::autocast::is_autocast_enabled(at::kCUDA) instead. [-Wdeprecated-declarations]
Test Suite (macOS-latest, nightly)
[email protected]: clang: warning: -Wl,-rpath=/Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-5e61794588fc1791/out/libtorch/libtorch/lib: 'linker' input unused [-Wunused-command-line-argument]
Test Suite (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (macOS-latest, stable)
[email protected]: #define C10_DEPRECATED_MESSAGE(message) [[deprecated(message)]]
Check (macOS-latest, stable)
[email protected]: /Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-d7d21c75e91d7053/out/libtorch/libtorch/include/ATen/autocast_mode.h:26:1: note: 'is_enabled' has been explicitly marked deprecated here
Check (macOS-latest, stable)
[email protected]: bool is_enabled = at::autocast::is_enabled();
Check (macOS-latest, stable)
[email protected]: /Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-d7d21c75e91d7053/out/libtorch/libtorch/include/c10/util/Deprecated.h:24:43: note: expanded from macro 'C10_DEPRECATED_MESSAGE'
Check (macOS-latest, stable)
[email protected]: C10_DEPRECATED_MESSAGE(
Check (macOS-latest, stable)
[email protected]: libtch/torch_api.cpp:193:26: warning: 'is_enabled' is deprecated: at::autocast::is_enabled() is deprecated. Please use at::autocast::is_autocast_enabled(at::kCUDA) instead. [-Wdeprecated-declarations]
Check (macOS-latest, stable)
[email protected]: clang: warning: -Wl,-rpath=/Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-d7d21c75e91d7053/out/libtorch/libtorch/lib: 'linker' input unused [-Wunused-command-line-argument]
Check (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (macOS-latest, nightly)
[email protected]: #define C10_DEPRECATED_MESSAGE(message) [[deprecated(message)]]
Check (macOS-latest, nightly)
[email protected]: /Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-0179682bbbe4ef1c/out/libtorch/libtorch/include/ATen/autocast_mode.h:26:1: note: 'is_enabled' has been explicitly marked deprecated here
Check (macOS-latest, nightly)
[email protected]: bool is_enabled = at::autocast::is_enabled();
Check (macOS-latest, nightly)
[email protected]: /Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-0179682bbbe4ef1c/out/libtorch/libtorch/include/c10/util/Deprecated.h:24:43: note: expanded from macro 'C10_DEPRECATED_MESSAGE'
Check (macOS-latest, nightly)
[email protected]: C10_DEPRECATED_MESSAGE(
Check (macOS-latest, nightly)
[email protected]: libtch/torch_api.cpp:193:26: warning: 'is_enabled' is deprecated: at::autocast::is_enabled() is deprecated. Please use at::autocast::is_autocast_enabled(at::kCUDA) instead. [-Wdeprecated-declarations]
Check (macOS-latest, nightly)
[email protected]: clang: warning: -Wl,-rpath=/Users/runner/work/tch-rs/tch-rs/target/debug/build/torch-sys-0179682bbbe4ef1c/out/libtorch/libtorch/lib: 'linker' input unused [-Wunused-command-line-argument]
Check (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (windows-2019, stable)
The windows-2019 runner image is being deprecated, consider switching to windows-2022(windows-latest) or windows-2025 instead. For more details see https://github.com/actions/runner-images/issues/12045.
Check (windows-2019, nightly)
The windows-2019 runner image is being deprecated, consider switching to windows-2022(windows-latest) or windows-2025 instead. For more details see https://github.com/actions/runner-images/issues/12045.
Test Suite (macOS-latest, stable)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Test Suite (macOS-latest, stable)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Test Suite (macOS-latest, nightly)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Test Suite (macOS-latest, nightly)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Check (macOS-latest, stable)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Check (macOS-latest, stable)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Check (macOS-latest, nightly)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Check (macOS-latest, nightly)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520