mirror of
https://github.com/artegoser/ONLang
synced 2024-12-23 01:23:46 +03:00
Stable -> Nightly
This commit is contained in:
parent
d2ecdfc997
commit
ab43d8f201
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
#![feature(box_syntax, panic_info_message)]
|
||||
|
||||
use clap::Parser;
|
||||
use std::fs;
|
||||
use std::time::Instant;
|
||||
|
@ -16,12 +18,12 @@ use interpreter::Interpreter;
|
|||
|
||||
fn main() {
|
||||
std::panic::set_hook(
|
||||
Box::new(|info| {
|
||||
box |info| {
|
||||
eprint!("{msg}", msg = match info.message() {
|
||||
None => "Program panicked!".to_owned(),
|
||||
Some(x) => x.to_string()
|
||||
});
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
let start = Instant::now();
|
||||
|
|
Loading…
Add table
Reference in a new issue