1
Fork 0

Rustup to rustc 1.36.0-nightly (cfdc84a00 2019-05-07)

This commit is contained in:
bjorn3 2019-05-08 20:05:01 +02:00
parent bb7a990ee7
commit 2aeffa679a

View file

@ -622,6 +622,12 @@ impl<'a, 'tcx, B: Backend + 'a> layout::HasDataLayout for FunctionCx<'a, 'tcx, B
}
}
impl<'a, 'tcx, B: Backend + 'a> layout::HasParamEnv<'tcx> for FunctionCx<'a, 'tcx, B> {
fn param_env(&self) -> ParamEnv<'tcx> {
ParamEnv::reveal_all()
}
}
impl<'a, 'tcx, B: Backend + 'a> HasTargetSpec for FunctionCx<'a, 'tcx, B> {
fn target_spec(&self) -> &Target {
&self.tcx.sess.target.target