Function rustc::middle::trans::common::return_type_is_void[src]
pub fn return_type_is_void(ccx: &CrateContext, ty: t) -> bool
Identifies types which we declare to be equivalent to void
in C for the purpose of function return types. These are
(), bot, and uninhabited enums. Note that all such types
are also zero-size, but not all zero-size types use a void
return type (in order to aid with C ABI compatibility).