Skip to main content

Module util

Module util 

Source

Re-exports§

use rustc_hir::def::DefKind; 🔒
use rustc_hir::def_id::DefId; 🔒
use rustc_middle::mir; 🔒
use rustc_middle::ty::TyCtxt; 🔒
use rustc_span::Span; 🔒
pub use self::alignment::most_packed_projection;
pub use self::alignment::place_unalignment;
pub use self::check_validity_requirement::check_validity_requirement;
pub(crate) use self::check_validity_requirement::validate_scalar_in_layout; 🔒
pub use self::compare_types::relate_types;
pub use self::compare_types::sub_types;
pub use self::type_name::type_name;

Modules§

alignment 🔒
caller_location 🔒
check_validity_requirement 🔒
compare_types 🔒
Routines to check for relations between fully inferred types.
type_name 🔒

Functions§

binop_left_homogeneous
Classify whether an operator is “left-homogeneous”, i.e., the LHS has the same type as the result.
binop_right_homogeneous
Classify whether an operator is “right-homogeneous”, i.e., the RHS has the same type as the LHS.
context_spans
unop_homogeneous
Classify whether an operator is “homogeneous”, i.e., the operand has the same type as the result.