about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-18 23:23:11 +0100
committerGitHub <noreply@github.com>2022-02-18 23:23:11 +0100
commit620b0c5122ee539124ed9442772e4648ac1d8b3f (patch)
tree72f050cf5c6395ecc1f33a6ca878e2f30e55c7e3 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent576afec73a15e918ab6d1e85ba7d8dd6fb1626d3 (diff)
parent36cf48bae70957f28c141cdefdb248688c87e11c (diff)
downloadrust-620b0c5122ee539124ed9442772e4648ac1d8b3f.tar.gz
rust-620b0c5122ee539124ed9442772e4648ac1d8b3f.zip
Rollup merge of #93953 - jackh726:known_bug, r=Mark-Simulacrum
Add the `known-bug` test directive, use it, and do some cleanup

cc rust-lang/compiler-team#476

Now tests can be annotated with `known-bug`, which should indicate that the test *should* pass (or at least that the current output is a bug). Adding it relaxes the requirement to add error annotations to the test (though it is still allowed). In the future, this could be extended with further relaxations - with the goal to make adding these tests need minimal effort.

I've used this attribute for the GAT tests added in #93757.

Finally, I've also cleaned up `header.rs` in compiletest a bit, by extracting out a bit of common logic. I've also split out some of the directives into their own consts. This removes a lot of very similar functions from `Config` and makes `TestProps::load_from` read nicer.

I've split these into separate commits, so I in theory could split these into separate PRs if they're controversial, but I think they're pretty straightforward.

r? ``@Mark-Simulacrum``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions