遇到问题 #1

Open
opened 2024-06-10 18:45:31 +08:00 by wangfiox · 0 comments
Owner

running 1 test
test ch2::quicksort::tests::quicksort_example ... FAILED

successes:

successes:

failures:

---- ch2::quicksort::tests::quicksort_example stdout ----
thread 'ch2::quicksort::tests::quicksort_example' panicked at /home/wangfiox/Documents/compiler/src/backend/irs/func.rs:25:73:
called Option::unwrap() on a None value
stack backtrace:
0: rust_begin_unwind
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:72:14
2: core::panicking::panic
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:145:5
3: core::option::unwrap_failed
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:1985:5
4: core::option::Option::unwrap
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:933:21
5: compiler::backend::irs::func::Func::gen_asm
at /home/wangfiox/Documents/compiler/src/backend/irs/func.rs:25:21
6: backend_module::ch2::quicksort::tests::quicksort_example
at ./src/ch2/quicksort.rs:211:19
7: backend_module::ch2::quicksort::tests::quicksort_example::{{closure}}
at ./src/ch2/quicksort.rs:6:31
8: core::ops::function::FnOnce::call_once
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/ops/function.rs:250:5
9: core::ops::function::FnOnce::call_once
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

failures:
ch2::quicksort::tests::quicksort_example

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.74s

error: test failed, to rerun pass -p backend_module --bin backend_module

  • The terminal process "cargo 'test', '--package', 'backend_module', '--bin', 'backend_module', '--', 'ch2::quicksort::tests::quicksort_example', '--exact', '--show-output'" terminated with exit code: 101.
  • Terminal will be reused by tasks, press any key to close it.
running 1 test test ch2::quicksort::tests::quicksort_example ... FAILED successes: successes: failures: ---- ch2::quicksort::tests::quicksort_example stdout ---- thread 'ch2::quicksort::tests::quicksort_example' panicked at /home/wangfiox/Documents/compiler/src/backend/irs/func.rs:25:73: called `Option::unwrap()` on a `None` value stack backtrace: 0: rust_begin_unwind at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:645:5 1: core::panicking::panic_fmt at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:72:14 2: core::panicking::panic at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:145:5 3: core::option::unwrap_failed at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:1985:5 4: core::option::Option<T>::unwrap at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:933:21 5: compiler::backend::irs::func::Func::gen_asm at /home/wangfiox/Documents/compiler/src/backend/irs/func.rs:25:21 6: backend_module::ch2::quicksort::tests::quicksort_example at ./src/ch2/quicksort.rs:211:19 7: backend_module::ch2::quicksort::tests::quicksort_example::{{closure}} at ./src/ch2/quicksort.rs:6:31 8: core::ops::function::FnOnce::call_once at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/ops/function.rs:250:5 9: core::ops::function::FnOnce::call_once at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/ops/function.rs:250:5 note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. failures: ch2::quicksort::tests::quicksort_example test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.74s error: test failed, to rerun pass `-p backend_module --bin backend_module` * The terminal process "cargo 'test', '--package', 'backend_module', '--bin', 'backend_module', '--', 'ch2::quicksort::tests::quicksort_example', '--exact', '--show-output'" terminated with exit code: 101. * Terminal will be reused by tasks, press any key to close it.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: wangfiox/backend_module#1
No description provided.