rustc_
mir_
build
1.86.0-beta.7
(7824ede68 2025-03-22)
In rustc_
mir_
build::
builder::
expr::
as_
constant
Functions
as_constant_inner
lit_to_mir_constant
rustc_mir_build
::
builder
::
expr
::
as_constant
Function
lit_to_mir_constant
Copy item path
Settings
Help
Summary
Source
fn lit_to_mir_constant<'tcx>( tcx:
TyCtxt
<'tcx>, lit_input:
LitToConstInput
<'tcx>, ) ->
Const
<'tcx>