Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bfd16ab
mips64-openwrt-linux-musl: correct soft-foat
Grommish Feb 9, 2022
64406c5
kmc-solid: Use the filesystem thread-safety wrapper
kawadakk Feb 10, 2022
784c7a6
only mark projection as ambiguous if GAT substs are constrained
compiler-errors Feb 11, 2022
fbbcb08
Add --scrape-tests flags so rustdoc can scrape examples from tests
willcrichton Feb 12, 2022
7c6ff4b
Add the known-bug compiletest prop
jackh726 Feb 12, 2022
e660d52
Use known-bug prop for GAT bug tests
jackh726 Feb 12, 2022
5aae654
Cleanup header parsing by extracting common logic
jackh726 Feb 12, 2022
36cf48b
Don't allow error annotations in known-bug tests
jackh726 Feb 14, 2022
879e4f8
use an enum in matches_projection_projection
compiler-errors Feb 12, 2022
3a73ca5
Implement --check-cfg option (RFC 3013)
Urgau Sep 29, 2021
568aeda
MemTagSanitizer Support
ivanloz Dec 3, 2021
f04f732
Add more information to `impl Trait` deny error
compiler-errors Jan 12, 2022
207fb5f
fix impl trait message, bless tests
compiler-errors Feb 18, 2022
4bed748
Suggest `impl Trait` return type
Noratrieb Oct 14, 2021
11250b8
asm: Allow the use of r8-r14 as clobbers on Thumb1
Amanieu Feb 10, 2022
f8b83a2
Rollup merge of #89892 - Nilstrieb:suggest-return-impl-trait, r=jackh726
matthiaskrgr Feb 18, 2022
0bb72a2
Rollup merge of #91675 - ivanloz:memtagsan, r=nagisa
matthiaskrgr Feb 18, 2022
5c08c39
Rollup merge of #92806 - compiler-errors:better-impl-trait-deny, r=es…
matthiaskrgr Feb 18, 2022
e3a1e19
Rollup merge of #93497 - willcrichton:rustdoc-scrape-test, r=Guillaum…
matthiaskrgr Feb 18, 2022
32c8acd
Rollup merge of #93814 - Itus-Shield:mips64-openwrt, r=bjorn3
matthiaskrgr Feb 18, 2022
724cca6
Rollup merge of #93847 - solid-rs:fix-kmc-solid-fs-ts, r=yaahc
matthiaskrgr Feb 18, 2022
cb35370
Rollup merge of #93877 - Amanieu:asm_fixes, r=nagisa
matthiaskrgr Feb 18, 2022
1e2f63d
Rollup merge of #93892 - compiler-errors:issue-92917, r=jackh726,niko…
matthiaskrgr Feb 18, 2022
576afec
Rollup merge of #93915 - Urgau:rfc-3013, r=petrochenkov
matthiaskrgr Feb 18, 2022
620b0c5
Rollup merge of #93953 - jackh726:known_bug, r=Mark-Simulacrum
matthiaskrgr Feb 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add the known-bug compiletest prop
  • Loading branch information
jackh726 committed Feb 12, 2022
commit 7c6ff4b269a588ddd39f80fa443d3cd161cfc88b
15 changes: 15 additions & 0 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ pub struct TestProps {
// empty before the test starts. Incremental mode tests will reuse the
// incremental directory between passes in the same test.
pub incremental: bool,
// If `true`, this test is a known bug.
//
// When set, some requirements are relaxed. Currently, this only means no
// error annotations are needed, but this may be updated in the future to
// include other relaxations.
pub known_bug: bool,
// How far should the test proceed while still passing.
pass_mode: Option<PassMode>,
// Ignore `--pass` overrides from the command line for this test.
Expand Down Expand Up @@ -176,6 +182,7 @@ impl TestProps {
forbid_output: vec![],
incremental_dir: None,
incremental: false,
known_bug: false,
pass_mode: None,
fail_mode: None,
ignore_pass: false,
Expand Down Expand Up @@ -362,6 +369,10 @@ impl TestProps {
if !self.incremental {
self.incremental = config.parse_incremental(ln);
}

if !self.known_bug {
self.known_bug = config.parse_known_bug(ln);
}
});
}

Expand Down Expand Up @@ -751,6 +762,10 @@ impl Config {
fn parse_incremental(&self, line: &str) -> bool {
self.parse_name_directive(line, "incremental")
}

fn parse_known_bug(&self, line: &str) -> bool {
self.parse_name_directive(line, "known-bug")
}
}

fn expand_variables(mut value: String, config: &Config) -> String {
Expand Down
9 changes: 8 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,14 @@ impl<'test> TestCx<'test> {
}

None => {
if self.is_unexpected_compiler_message(actual_error, expect_help, expect_note) {
// If the test is a known bug, don't require that the error is annotated
if !self.props.known_bug
&& self.is_unexpected_compiler_message(
actual_error,
expect_help,
expect_note,
)
{
self.error(&format!(
"{}:{}: unexpected {}: '{}'",
file_name,
Expand Down