Skip to main content

Module utils

Module utils 

Source

Re-exportsยง

use rustc_attr_ir::find_attr; ๐Ÿ”’
use rustc_hir::Expr; ๐Ÿ”’
use rustc_hir::ExprKind; ๐Ÿ”’
use rustc_span::sym; ๐Ÿ”’
use crate::LateContext; ๐Ÿ”’

Functionsยง

peel_casts ๐Ÿ”’
Given an expression, peel all of casts (<expr> as ..., <expr>.cast{,_mut,_const}(), ptr::from_ref(<expr>), โ€ฆ) and init expressions.
std_or_core
Crate to use for rustfix / diagnostic paths that exist in both std and core. Returns None for #![no_core].