Skip to content

Commit 3a7bbb8

Browse files
committed
Exclude the test kernel.
This workarounds a problem with clippy: ``` Error: --> tests/test_kernels/stack_address/src/bin/basic_boot.rs:27:1 | 27 | / fn panic(info: &core::panic::PanicInfo) -> ! { 28 | | use core::fmt::Write; 29 | | 30 | | let _ = writeln!(test_kernel_stack_address::serial(), "PANIC: {info}"); 31 | | exit_qemu(QemuExitCode::Failed); 32 | | } | |_^ | = note: the lang item is first defined in crate `std` (which `bitflags` depends on) = note: first definition in `std` loaded from /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-dd28cbf307893515.rmeta = note: second definition in the local crate (`basic_boot`) ```
1 parent 52be16d commit 3a7bbb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: Swatinem/rust-cache@v2
2525
- uses: r7kamura/rust-problem-matchers@v1.1.0
2626
- name: "Run `cargo check`"
27-
run: cargo check --all-targets --all
27+
run: cargo check --all-targets --all --exclude 'test_kernel*' # Don't fail on panic_handler doubled definition.
2828
- name: "Check test kernels"
2929
run: cargo check --all
3030
working-directory: tests/test_kernels
@@ -123,7 +123,7 @@ jobs:
123123
- run: cargo --version --verbose
124124
- uses: Swatinem/rust-cache@v2
125125
- uses: r7kamura/rust-problem-matchers@v1.1.0
126-
- run: cargo clippy --all --all-targets
126+
- run: cargo clippy --all --all-targets --exclude 'test_kernel*' # Don't fail on panic_handler doubled definition.
127127
- run: cargo clippy --all
128128
working-directory: tests/test_kernels
129129

0 commit comments

Comments
 (0)