debug log AbstractConst::new

This commit is contained in:
Bastian Kauschke 2020-10-26 14:56:58 +01:00
parent 8546a80dc1
commit 60bcc58dce

View File

@ -211,6 +211,7 @@ impl AbstractConst<'tcx> {
substs: SubstsRef<'tcx>,
) -> Result<Option<AbstractConst<'tcx>>, ErrorReported> {
let inner = tcx.mir_abstract_const_opt_const_arg(def)?;
debug!("AbstractConst::new({:?}) = {:?}", def, inner);
Ok(inner.map(|inner| AbstractConst { inner, substs }))
}