| /// Lang item required to make the normal `main` work in applications |
| // This is how the `start` lang item works: |
| // When `rustc` compiles a binary crate, it creates a `main` function that looks |
| // #[export_name = "main"] |
| // pub extern "C" fn rustc_main(argc: isize, argv: *const *const u8) -> isize { |
| // Where `start` is this function and `main` is the binary crate's `main` |
| // The final piece is that the entry point of our program, _start, has to call |
| // `rustc_main`. That's covered by the `_start` function in the root of this |
| #[lang = "eh_personality"] |
| extern "C" fn eh_personality() {} |
| unsafe extern "C" fn rust_begin_unwind() { |