Rollup merge of #93416 - name1e5s:chore/remove_allow_fail, r=m-ou-se
remove `allow_fail` test flag close #93345
This commit is contained in:
commit
252ff5ead0
25 changed files with 86 additions and 277 deletions
|
@ -847,7 +847,6 @@ crate struct LangString {
|
|||
crate test_harness: bool,
|
||||
crate compile_fail: bool,
|
||||
crate error_codes: Vec<String>,
|
||||
crate allow_fail: bool,
|
||||
crate edition: Option<Edition>,
|
||||
}
|
||||
|
||||
|
@ -869,7 +868,6 @@ impl Default for LangString {
|
|||
test_harness: false,
|
||||
compile_fail: false,
|
||||
error_codes: Vec::new(),
|
||||
allow_fail: false,
|
||||
edition: None,
|
||||
}
|
||||
}
|
||||
|
@ -943,10 +941,6 @@ impl LangString {
|
|||
seen_rust_tags = !seen_other_tags;
|
||||
}
|
||||
}
|
||||
"allow_fail" => {
|
||||
data.allow_fail = true;
|
||||
seen_rust_tags = !seen_other_tags;
|
||||
}
|
||||
"rust" => {
|
||||
data.rust = true;
|
||||
seen_rust_tags = true;
|
||||
|
@ -994,12 +988,6 @@ impl LangString {
|
|||
"the code block will either not be tested if not marked as a rust one \
|
||||
or will be run (which you might not want)",
|
||||
))
|
||||
} else if s == "allow-fail" || s == "allow_fail" || s == "allowfail" {
|
||||
Some((
|
||||
"allow_fail",
|
||||
"the code block will either not be tested if not marked as a rust one \
|
||||
or will be run (which you might not want)",
|
||||
))
|
||||
} else if s == "test-harness" || s == "test_harness" || s == "testharness" {
|
||||
Some((
|
||||
"test_harness",
|
||||
|
|
|
@ -70,7 +70,6 @@ fn test_lang_string_parse() {
|
|||
compile_fail: true,
|
||||
..Default::default()
|
||||
});
|
||||
t(LangString { original: "allow_fail".into(), allow_fail: true, ..Default::default() });
|
||||
t(LangString { original: "no_run,example".into(), no_run: true, ..Default::default() });
|
||||
t(LangString {
|
||||
original: "sh,should_panic".into(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue