Closed hobofan closed 4 years ago
When running it on curve25519-dalek it also panicks there:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: StripPrefixError(())', src/libcore/result.rs:997:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:215
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:482
5: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:385
6: rust_begin_unwind
at src/libstd/panicking.rs:312
7: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
8: core::result::unwrap_failed
9: <&T as core::fmt::Display>::fmt
10: core::fmt::write
at src/libcore/fmt/mod.rs:1016
11: <std::io::stdio::Stdout as std::io::Write>::write_fmt
at src/libstd/io/mod.rs:1250
at src/libstd/io/stdio.rs:484
12: std::io::stdio::_print
at src/libstd/io/stdio.rs:729
at src/libstd/thread/local.rs:300
at src/libstd/io/stdio.rs:723
at src/libstd/io/stdio.rs:744
13: cargo_nono::check_and_print_package
14: cargo_nono::main
15: std::rt::lang_start::{{closure}}
16: std::panicking::try::do_call
at src/libstd/rt.rs:49
at src/libstd/panicking.rs:297
17: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:87
18: std::rt::lang_start_internal
at src/libstd/panicking.rs:276
at src/libstd/panic.rs:388
at src/libstd/rt.rs:48
19: main
20: __libc_start_main
21: _start
https://github.com/hobofan/cargo-nono/blob/f1caba3aefabe98fe7536fc3f32487dbeeac4339/src/check_source.rs#L133-L134 The unwrap in the 2nd line causes the panic that i found above.
Fixed and released in 0.1.8
Running
on https://github.com/CraneStation/cranelift/tree/4e096e29cecc762e345cfc62c34e3113ba5777d7 in dir
lib/wasm
panics with: