kurtlawrence / papyrus

(Rust) repl
MIT License
440 stars 14 forks source link

extern crate crashes #40

Closed kurtlawrence closed 4 years ago

kurtlawrence commented 4 years ago

log:

An unhandled error occurred in the operation of papyrus.
Please send this information to the required parties.

Panic Payload:
assertion failed: index < len

Location:
src/liballoc/vec.rs:990:9

Backtrace:
stack backtrace:
   0: papyrus::run::run::{{closure}}
             at src/run/mod.rs:48
   1: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:477
   2: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:380
   3: rust_begin_unwind
             at src/libstd/panicking.rs:307
   4: core::panicking::panic_fmt
             at src/libcore/panicking.rs:84
   5: core::panicking::panic
             at src/libcore/panicking.rs:49
   6: alloc::vec::Vec<T>::remove
             at <::core::macros::panic macros>:3
   7: papyrus::repl::eval::<impl papyrus::repl::ReplData<D>>::handle_program::{{closure}}
             at src/repl/eval.rs:297
   8: papyrus::repl::eval::<impl papyrus::repl::ReplData<D>>::handle_program
             at src/repl/eval.rs:323
   9: papyrus::repl::eval::map_variants
             at src/repl/eval.rs:131
  10: papyrus::repl::eval::<impl papyrus::repl::Repl<papyrus::repl::Evaluate,D>>::eval
             at src/repl/eval.rs:41
  11: papyrus::run::<impl papyrus::repl::Repl<papyrus::repl::Read,D>>::run::{{closure}}
             at src/run/mod.rs:25
  12: <alloc::boxed::Box<F> as core::ops::function::FnMut<A>>::call_mut
             at /rustc/032a53a06ce293571e51bbe621a5c480e8a28e95/src/liballoc/boxed.rs:917
  13: papyrus::run::do_eval
             at src/run/mod.rs:275
  14: papyrus::run::run
             at src/run/mod.rs:97
  15: papyrus::run::<impl papyrus::repl::Repl<papyrus::repl::Read,D>>::run
             at src/run/mod.rs:25
  16: papyrus::main
             at src/main.rs:25
  17: std::rt::lang_start::{{closure}}
             at /rustc/032a53a06ce293571e51bbe621a5c480e8a28e95/src/libstd/rt.rs:64
  18: std::rt::lang_start_internal::{{closure}}
             at src/libstd/rt.rs:49
      std::panicking::try::do_call
             at src/libstd/panicking.rs:292
  19: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:80
  20: std::panicking::try
             at src/libstd/panicking.rs:271
      std::panic::catch_unwind
             at src/libstd/panic.rs:394
      std::rt::lang_start_internal
             at src/libstd/rt.rs:48
  21: std::rt::lang_start
             at /rustc/032a53a06ce293571e51bbe621a5c480e8a28e95/src/libstd/rt.rs:64
  22: main
  23: __libc_start_main
  24: _start