Module rustc::middle::trans::common[src]

Code that is useful in various trans modules.

Reexports

pub use middle::trans::context::CrateContext;

Structs

Block
BuilderRef_res
FunctionContext
NodeInfo
Result
param_substs
tydesc_info

Enums

ExprOrMethodCall

Traits

SubstP

Functions

BuilderRef_res
C_array
C_binary_slice
C_bool
C_bytes
C_cstr
C_floating
C_i1
C_i32
C_i64
C_int
C_integral
C_named_struct
C_nil
C_null
C_str_slice
C_struct
C_u64
C_u8
C_uint
C_undef
const_get_elt
const_to_int
const_to_uint
expr_info
expr_ty
expr_ty_adjusted
find_vtable
gensym_name

Generates a unique symbol based off the name given. This is used to create unique symbols for things like closures.

get_param
is_const
is_null
is_undef
langcall
monomorphize_type
node_id_substs
node_id_type
node_vtables
resolve_param_vtables_under_param_substs
resolve_vtable_under_param_substs
resolve_vtables_in_fn_ctxt
resolve_vtables_under_param_substs
return_type_is_void

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).

type_is_immediate
type_is_zero_size

Identify types which have size zero at runtime.

val_ty

Type Definitions

ExternMap
LvalueDatum
RvalueDatum