clippy_
utils
1.84.0-dev
In clippy_
utils::
consts
Structs
ConstEvalCtxt
Enums
Constant
ConstantSource
FullInt
Traits
IntTypeBounds
Functions
field_of_struct
lit_to_mir_constant
mir_is_empty
mir_to_const
clippy_utils
::
consts
Function
mir_to_const
Copy item path
Settings
Help
Summary
Source
pub fn mir_to_const<'tcx>( tcx:
TyCtxt
<'tcx>, result:
Const
<'tcx>, ) ->
Option
<
Constant
<'tcx>>