Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
#![crate_type = "cdylib"]
#[no_mangle]
#[cfg(a)]
pub fn foo() {
panic!("test");
}
#[cfg(b)]
panic!("{}", 1);
#[cfg(c)]
panic!("{}", "a");
#[cfg(d)]
pub fn foo() -> usize {
use std::cell::Cell;
thread_local!(static A: Cell<Vec<u32>> = Cell::new(Vec::new()));
A.try_with(|x| x.take().len()).unwrap_or(0)