main.rs
This file
Path
test_suite/no_std/src/main.rs
42 lines · 733 bytes · Rust
Last changed by
Merge pull request #2872 from dtolnay/ehpersonalityDavid Tolnaybefore adoption2a5caea
History of this fileTake it
The walk stopped after 200 commits: lines older than 3761854 point at it.
Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
line 1why, one step back1#![no_std]Merge pull request #2871 from dtolnay/nostdstartDavid Tolnaybefore adoption8478a3b
line 2why, one step back2#![no_main]Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
line 3why, one step back3Merge pull request #2871 from dtolnay/nostdstartDavid Tolnaybefore adoption8478a3b
lines 4–7why, one step back4use core::ffi::c_int;56#[no_mangle]7extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int {Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
lines 8–22why, one step back8 09}1011#[panic_handler]12fn panic(_info: &core::panic::PanicInfo) -> ! {13 unsafe {14 libc::abort();15 }16}1718//////////////////////////////////////////////////////////////////////////////1920use serde_derive::{Deserialize, Serialize};2122#[derive(Serialize, Deserialize)]Work around test suite dead code warnings in nightly-2024-07-07David Tolnaybefore adoption28a0922
line 23why, one step back23pub struct Unit;Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
lines 24–25why, one step back2425#[derive(Serialize, Deserialize)]Work around test suite dead code warnings in nightly-2024-07-07David Tolnaybefore adoption28a0922
line 26why, one step back26pub struct Newtype(u8);Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
lines 27–28why, one step back2728#[derive(Serialize, Deserialize)]Work around test suite dead code warnings in nightly-2024-07-07David Tolnaybefore adoption28a0922
line 29why, one step back29pub struct Tuple(u8, u8);Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
lines 30–31why, one step back3031#[derive(Serialize, Deserialize)]Work around test suite dead code warnings in nightly-2024-07-07David Tolnaybefore adoption28a0922
line 32why, one step back32pub struct Struct {Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
lines 33–36why, one step back33 f: u8,34}3536#[derive(Serialize, Deserialize)]Work around test suite dead code warnings in nightly-2024-07-07David Tolnaybefore adoption28a0922
line 37why, one step back37pub enum Enum {Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
lines 38–42why, one step back38 Unit,39 Newtype(u8),40 Tuple(u8, u8),41 Struct { f: u8 },42}