Const::from_value
...it's just `mk_const` but without the sparcles
tcx.mk_const
kind
For more information about how rustc works, see the rustc dev guide.