Skip computing param_env and size if not needed

This commit is contained in:
Aaron Hill 2020-06-12 20:44:19 -04:00
parent 117a60e1f5
commit 90aee14eb9
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -2225,4 +2225,3 @@ impl<'tcx> TyS<'tcx> {
tcx.layout_of(tcx.param_env(did).and(self)).map(|layout| layout.is_zst()).unwrap_or(false)
}
}