(zelf: &Compiler, o: Option<T>)
| 372 | } |
| 373 | |
| 374 | fn compiler_unwrap_option<T>(zelf: &Compiler, o: Option<T>) -> T { |
| 375 | if o.is_none() { |
| 376 | eprintln!("=== CODEGEN PANIC INFO ==="); |
| 377 | eprintln!("This IS an internal error, an option was unwrapped during codegen"); |
| 378 | eprint_location(zelf); |
| 379 | eprintln!("=== END PANIC INFO ==="); |
| 380 | } |
| 381 | o.unwrap() |
| 382 | } |
| 383 | |
| 384 | // fn compiler_result_unwrap<T, E: core::fmt::Debug>(zelf: &Compiler, result: Result<T, E>) -> T { |
| 385 | // if result.is_err() { |
no test coverage detected