Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/104736.sh: fixed with no errors #1703

Merged
merged 1 commit into from
Dec 24, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#104736

#!/bin/bash

rustc -C opt-level=3 -Zvalidate-mir - << EOF
#![crate_type = "lib"]

pub struct A;
pub struct B;

impl Drop for A {
    fn drop(&mut self) {}
}
impl Drop for B {
    fn drop(&mut self) {}
}

#[inline(always)]
pub fn no_unwind() {}

pub fn weird_temporary(a: A, b: B, nothing: ((), (), ()), x: bool) -> ((), (), ()) {
    'scope: {
        (
            {
                let _z = b;
                if x {
                    break 'scope nothing;
                }
            },
            match { a } {
                _ => (),
            },
            no_unwind(),
        )
    }
}

EOF
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit ec60bfb into master Dec 24, 2023
@JohnTitor JohnTitor deleted the autofix/ices/104736.sh branch December 24, 2023 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants