Skip to content

Switch compile-fail tests to ui tests #2027

@RalfJung

Description

@RalfJung

Currently, we use the compile-fail mode of compiletest for our "expected to fail" tests. rustc has switched to ui a long time ago, and it probably would make sense for Miri to follow suit. That would also unblock #2015.

#1977 finally makes this feasible by hiding libstd internals from the default stacktraces.

However, besides making sure we can actually get compiletest to do this properly (miri's needs are somewhat special), we also need to figure out how to support something like --bless. Clippy might be a good template here.

ui tests would also make it much easier to evaluate PRs like #1971.

Metadata

Metadata

Assignees

Labels

A-testsArea: affects our test suite or CIC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions