Skip to content

Commit

Permalink
Remove unnecessary transmute
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jun 10, 2021
1 parent 2754d4e commit 4301d1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_interface/src/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ mod boxed_resolver {
boxed_resolver.resolver_arenas.as_ref().unwrap(),
),
)?;
boxed_resolver.resolver =
Some(std::mem::transmute::<Resolver<'_>, Resolver<'_>>(resolver));
boxed_resolver.resolver = Some(resolver);
Ok((crate_, BoxedResolver(Pin::new_unchecked(boxed_resolver))))
}
}
Expand Down

0 comments on commit 4301d1e

Please sign in to comment.