Skip to content
Permalink
Browse files

`asm!` output can neither be promotable nor const

  • Loading branch information...
oli-obk committed Apr 8, 2019
1 parent 3750348 commit b8e9da7c0885f624d186499f7521bae71381a97c
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/librustc_mir/transform/promote_consts.rs
@@ -101,7 +101,6 @@ impl<'tcx> Visitor<'tcx> for TempCollector<'tcx> {
if *temp == TempState::Undefined {
match context {
PlaceContext::MutatingUse(MutatingUseContext::Store) |
PlaceContext::MutatingUse(MutatingUseContext::AsmOutput) |
PlaceContext::MutatingUse(MutatingUseContext::Call) => {
*temp = TempState::Defined {
location,

0 comments on commit b8e9da7

Please sign in to comment.
You can’t perform that action at this time.