Module rustc_lint::types

source ·

Structs

Enums

Statics

  • The improper_ctypes lint detects incorrect use of types in foreign modules.
  • The improper_ctypes_definitions lint detects incorrect use of extern function definitions.
  • The invalid_atomic_ordering lint detects passing an Ordering to an atomic operation that does not support that ordering.
  • The invalid_nan_comparisons lint checks comparison with f32::NAN or f64::NAN as one of the operand.
  • The overflowing_literals lint detects literal out of range for its type.
  • The unused_comparisons lint detects comparisons made useless by limits of the types involved.
  • The variant_size_differences lint detects enums with widely varying variant sizes.

Functions