Closed
Description
#[no_mangle]
pub const THING: libc::c_int = 42;
Will not actually be exported in the resulting object. There are two obvious fixes, the first being to expand on my pub-not-exported lint to warn you that this will not work, the second being to fix the compiler to export the symbol with the appropriate value (Without altering the existing inlining behaviour, although it may give a more reasonable option for cases like trying to take the address of a const
item).
Happy to work on either, although I would need a mentor for the second part.