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 #1534

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#104736

#!/bin/bash

rustc -C opt-level=3 - << 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 ===
==============
@langston-barrett langston-barrett mentioned this pull request Mar 17, 2023
@Alexendoo Alexendoo deleted the autofix/ices/104736.sh branch March 17, 2023 14:58
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.

1 participant