☰
In rustc_lint::types
In rustc_lint::types
Structs
ImproperCTypesDeclarations
ImproperCTypesDefinitions
ImproperCTypesVisitor
InvalidAtomicOrdering
TypeLimits
VariantSizeDifferences
Enums
CItemKind
FfiResult
Statics
IMPROPER_CTYPES
IMPROPER_CTYPES_DEFINITIONS
INVALID_ATOMIC_ORDERING
OVERFLOWING_LITERALS
UNUSED_COMPARISONS
VARIANT_SIZE_DIFFERENCES
Functions
get_bin_hex_repr
get_nullable_type
get_type_suggestion
int_ty_range
lint_int_literal
lint_literal
lint_overflowing_range_endpoint
lint_uint_literal
nonnull_optimization_guaranteed
report_bin_hex_error
repr_nullable_ptr
transparent_newtype_field
ty_is_known_nonnull
uint_ty_range
?
Function
rustc_lint
::
types
::
get_type_suggestion
source
·
[
−
]
fn get_type_suggestion(
t:
Ty
<'_>,
val:
u128
,
negative:
bool
) ->
Option
<&'static
str
>