Skip to content

Commit

Permalink
Move const-eval/stable-metric ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bryangarza committed Jan 24, 2023
1 parent 1bbd655 commit bdb815a
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/ui/consts/const-eval/stable-metric/dominators-edge-case.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// check-pass
//
// Exercising an edge case which was found during Stage 2 compilation.
// Compilation would fail for this code when running the `CtfeLimit`
// MirPass (specifically when looking up the dominators).
#![crate_type="lib"]

const DUMMY: Expr = Expr::Path(ExprPath {
attrs: Vec::new(),
path: Vec::new(),
});

pub enum Expr {
Path(ExprPath),
}
pub struct ExprPath {
pub attrs: Vec<()>,
pub path: Vec<()>,
}

0 comments on commit bdb815a

Please sign in to comment.