#[non_exhaustive]pub enum Warning {
CustomStorage {
module: String,
function: String,
},
TypeMadeOpaque {
module: String,
type_name: String,
reason: String,
},
FunctionSkipped {
module: String,
function: String,
reason: String,
},
HookUnavailable {
module: String,
function: String,
reason: String,
},
SafeCallUnavailable {
module: String,
function: String,
reason: String,
},
EnumValueTruncated {
module: String,
enum_name: String,
variant: String,
value: i64,
},
}Expand description
Something the generator skipped or simplified.
Warnings never stop generation. Their Display names the
module and item.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CustomStorage
A function uses custom argument storage, so only its RVA is generated.
Fields
TypeMadeOpaque
A struct or union’s layout can’t be represented in Rust, so it was emitted as opaque bytes of its size.
Fields
FunctionSkipped
A function was skipped.
Fields
A function can be called but not hooked, so it has no hook.
Not raised for variadic functions, which never get a hook.
A function is tagged imping-safe, but a parameter has no safe form,
so its call wrapper stays unsafe.
EnumValueTruncated
An enum constant’s value fits neither the signed nor the unsigned range of the enum’s underlying type, so it was truncated to fit.
A value that fits the other signedness of the same width (such as -1
in a u32 enum) wraps as in C, and is not reported.