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

ices/100778.sh: fixed with errors #1650

Merged
merged 1 commit into from
Oct 15, 2023
Merged

ices/100778.sh: fixed with errors #1650

merged 1 commit into from
Oct 15, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#100778

#!/bin/bash

rustc -Clto -Zsanitizer=cfi - <<'EOF'

#![feature(adt_const_params, generic_const_exprs)]
#![allow(incomplete_features)]

pub type Matrix = [usize; 1];
const EMPTY_MATRIX: Matrix = [0; 1];

pub struct Walk<const REMAINING: Matrix> { }

impl Walk<EMPTY_MATRIX> {
    pub const fn new() -> Self {
        Self {}
    }
}

fn main() {
    let _ = Walk::new();
}

EOF

=== stdout ===
=== stderr ===
error: `-Zsanitizer=cfi` with `-Clto` requires `-Ccodegen-units=1`

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: `-Zsanitizer=cfi` with `-Clto` requires `-Ccodegen-units=1`

error: aborting due to previous error

==============
@JohnTitor JohnTitor merged commit c4b35eb into master Oct 15, 2023
@JohnTitor JohnTitor deleted the autofix/ices/100778.sh branch October 15, 2023 03:05
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