Rollup merge of #137776 - nnethercote:rustc_transmute-cleanups, r=jswrenn
Some `rustc_transmute` cleanups A number of small things that can be removed. r? ``@jswrenn``
This commit is contained in:
@@ -1091,12 +1091,11 @@ where
|
||||
|
||||
pub(super) fn is_transmutable(
|
||||
&mut self,
|
||||
param_env: I::ParamEnv,
|
||||
dst: I::Ty,
|
||||
src: I::Ty,
|
||||
assume: I::Const,
|
||||
) -> Result<Certainty, NoSolution> {
|
||||
self.delegate.is_transmutable(param_env, dst, src, assume)
|
||||
self.delegate.is_transmutable(dst, src, assume)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -617,7 +617,6 @@ where
|
||||
)?;
|
||||
|
||||
let certainty = ecx.is_transmutable(
|
||||
goal.param_env,
|
||||
goal.predicate.trait_ref.args.type_at(0),
|
||||
goal.predicate.trait_ref.args.type_at(1),
|
||||
assume,
|
||||
|
||||
Reference in New Issue
Block a user