Skip to content

Commit b807926

Browse files
committed
UI tests: remove redundant colons in line annotations
Search: `(//(\[.*\])?~.*(HELP|ERROR|NOTE|HELP|WARN|WARNING)):` Replace with: `$1` In: `./tests/{ui,ui-fulldeps,rustdoc-ui,incremental}/**/*.{rs,fixed}`
1 parent 1de9312 commit b807926

File tree

1,421 files changed

+5481
-5481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,421 files changed

+5481
-5481
lines changed

tests/incremental/const-generics/hash-tyvid-regression-1.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ where
2020
{
2121
use std::convert::TryFrom;
2222
<[T; N.get()]>::try_from(())
23-
//~^ error: the trait bound
24-
//~| error: the trait bound
25-
//~| error: mismatched types
23+
//~^ error the trait bound
24+
//~| error the trait bound
25+
//~| error mismatched types
2626
}
2727

2828
fn main() {}

tests/incremental/const-generics/hash-tyvid-regression-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ where
2323
{
2424
fn eq(&self, other: &&'a [A]) -> bool {
2525
self.0 == other
26-
//~^ error: can't compare
26+
//~^ error can't compare
2727
}
2828
}
2929

tests/incremental/const-generics/hash-tyvid-regression-3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where
1616
fn new() -> Self {
1717
let mut node = Node::new();
1818
node.keys.some_function();
19-
//~^ error: no method named
19+
//~^ error no method named
2020
node
2121
}
2222
}

tests/incremental/const-generics/hash-tyvid-regression-4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ where
2222
fn split(&mut self, i: usize, k: K, right: bool) -> Node<K, D> {
2323
let mut node = Node::new();
2424
node.keys.push(k);
25-
//~^ error: no method named
25+
//~^ error no method named
2626
node
2727
}
2828
}

tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ where
1111
C: Delegates<FileCap<{ false }>>,
1212
{
1313
writes_to_specific_path(&cap);
14-
//~^ error: the trait bound
14+
//~^ error the trait bound
1515
}
1616

1717
fn writes_to_specific_path<C>(cap: &C)

tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-88022.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ where
1414
[(); { S * 2 }]: Default;
1515

1616
impl<'a, T, const S: usize> Iterator for BufferIter<'a, T, S> {
17-
//~^ error: the trait bound
18-
//~^^ error: unconstrained generic constant
17+
//~^ error the trait bound
18+
//~^^ error unconstrained generic constant
1919
type Item = &'a T;
2020

2121
fn next(&mut self) -> Option<Self::Item> {
22-
//~^ error: the trait bound
23-
//~^^ error: unconstrained generic constant
22+
//~^ error the trait bound
23+
//~^^ error unconstrained generic constant
2424
None
2525
}
2626
}

tests/incremental/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ fn main() {
1010
}
1111

1212
extern "unadjusted" fn foo() {}
13-
//[cfail2]~^ ERROR: "unadjusted" ABI is an implementation detail and perma-unstable
13+
//[cfail2]~^ ERROR "unadjusted" ABI is an implementation detail and perma-unstable

tests/rustdoc-ui/disambiguator-endswith-named-suffix.rs

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
11
//@ check-pass
22
//@ normalize-stderr: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
33

4-
//! [struct@m!()] //~ WARN: unmatched disambiguator `struct` and suffix `!()`
4+
//! [struct@m!()] //~ WARN unmatched disambiguator `struct` and suffix `!()`
55
//! [struct@m!{}]
66
//! [struct@m![]]
7-
//! [struct@f()] //~ WARN: unmatched disambiguator `struct` and suffix `()`
8-
//! [struct@m!] //~ WARN: unmatched disambiguator `struct` and suffix `!`
7+
//! [struct@f()] //~ WARN unmatched disambiguator `struct` and suffix `()`
8+
//! [struct@m!] //~ WARN unmatched disambiguator `struct` and suffix `!`
99
//!
10-
//! [enum@m!()] //~ WARN: unmatched disambiguator `enum` and suffix `!()`
10+
//! [enum@m!()] //~ WARN unmatched disambiguator `enum` and suffix `!()`
1111
//! [enum@m!{}]
1212
//! [enum@m![]]
13-
//! [enum@f()] //~ WARN: unmatched disambiguator `enum` and suffix `()`
14-
//! [enum@m!] //~ WARN: unmatched disambiguator `enum` and suffix `!`
13+
//! [enum@f()] //~ WARN unmatched disambiguator `enum` and suffix `()`
14+
//! [enum@m!] //~ WARN unmatched disambiguator `enum` and suffix `!`
1515
//!
16-
//! [trait@m!()] //~ WARN: unmatched disambiguator `trait` and suffix `!()`
16+
//! [trait@m!()] //~ WARN unmatched disambiguator `trait` and suffix `!()`
1717
//! [trait@m!{}]
1818
//! [trait@m![]]
19-
//! [trait@f()] //~ WARN: unmatched disambiguator `trait` and suffix `()`
20-
//! [trait@m!] //~ WARN: unmatched disambiguator `trait` and suffix `!`
19+
//! [trait@f()] //~ WARN unmatched disambiguator `trait` and suffix `()`
20+
//! [trait@m!] //~ WARN unmatched disambiguator `trait` and suffix `!`
2121
//!
22-
//! [module@m!()] //~ WARN: unmatched disambiguator `module` and suffix `!()`
22+
//! [module@m!()] //~ WARN unmatched disambiguator `module` and suffix `!()`
2323
//! [module@m!{}]
2424
//! [module@m![]]
25-
//! [module@f()] //~ WARN: unmatched disambiguator `module` and suffix `()`
26-
//! [module@m!] //~ WARN: unmatched disambiguator `module` and suffix `!`
25+
//! [module@f()] //~ WARN unmatched disambiguator `module` and suffix `()`
26+
//! [module@m!] //~ WARN unmatched disambiguator `module` and suffix `!`
2727
//!
28-
//! [mod@m!()] //~ WARN: unmatched disambiguator `mod` and suffix `!()`
28+
//! [mod@m!()] //~ WARN unmatched disambiguator `mod` and suffix `!()`
2929
//! [mod@m!{}]
3030
//! [mod@m![]]
31-
//! [mod@f()] //~ WARN: unmatched disambiguator `mod` and suffix `()`
32-
//! [mod@m!] //~ WARN: unmatched disambiguator `mod` and suffix `!`
31+
//! [mod@f()] //~ WARN unmatched disambiguator `mod` and suffix `()`
32+
//! [mod@m!] //~ WARN unmatched disambiguator `mod` and suffix `!`
3333
//!
34-
//! [const@m!()] //~ WARN: unmatched disambiguator `const` and suffix `!()`
34+
//! [const@m!()] //~ WARN unmatched disambiguator `const` and suffix `!()`
3535
//! [const@m!{}]
3636
//! [const@m![]]
37-
//! [const@f()] //~ WARN: incompatible link kind for `f`
38-
//! [const@m!] //~ WARN: unmatched disambiguator `const` and suffix `!`
37+
//! [const@f()] //~ WARN incompatible link kind for `f`
38+
//! [const@m!] //~ WARN unmatched disambiguator `const` and suffix `!`
3939
//!
40-
//! [constant@m!()] //~ WARN: unmatched disambiguator `constant` and suffix `!()`
40+
//! [constant@m!()] //~ WARN unmatched disambiguator `constant` and suffix `!()`
4141
//! [constant@m!{}]
4242
//! [constant@m![]]
43-
//! [constant@f()] //~ WARN: incompatible link kind for `f`
44-
//! [constant@m!] //~ WARN: unmatched disambiguator `constant` and suffix `!`
43+
//! [constant@f()] //~ WARN incompatible link kind for `f`
44+
//! [constant@m!] //~ WARN unmatched disambiguator `constant` and suffix `!`
4545
//!
46-
//! [static@m!()] //~ WARN: unmatched disambiguator `static` and suffix `!()`
46+
//! [static@m!()] //~ WARN unmatched disambiguator `static` and suffix `!()`
4747
//! [static@m!{}]
4848
//! [static@m![]]
49-
//! [static@f()] //~ WARN: incompatible link kind for `f`
50-
//! [static@m!] //~ WARN: unmatched disambiguator `static` and suffix `!`
49+
//! [static@f()] //~ WARN incompatible link kind for `f`
50+
//! [static@m!] //~ WARN unmatched disambiguator `static` and suffix `!`
5151
//!
52-
//! [function@m!()] //~ WARN: unmatched disambiguator `function` and suffix `!()`
52+
//! [function@m!()] //~ WARN unmatched disambiguator `function` and suffix `!()`
5353
//! [function@m!{}]
5454
//! [function@m![]]
5555
//! [function@f()]
56-
//! [function@m!] //~ WARN: unmatched disambiguator `function` and suffix `!`
56+
//! [function@m!] //~ WARN unmatched disambiguator `function` and suffix `!`
5757
//!
58-
//! [fn@m!()] //~ WARN: unmatched disambiguator `fn` and suffix `!()`
58+
//! [fn@m!()] //~ WARN unmatched disambiguator `fn` and suffix `!()`
5959
//! [fn@m!{}]
6060
//! [fn@m![]]
6161
//! [fn@f()]
62-
//! [fn@m!] //~ WARN: unmatched disambiguator `fn` and suffix `!`
62+
//! [fn@m!] //~ WARN unmatched disambiguator `fn` and suffix `!`
6363
//!
64-
//! [method@m!()] //~ WARN: unmatched disambiguator `method` and suffix `!()`
64+
//! [method@m!()] //~ WARN unmatched disambiguator `method` and suffix `!()`
6565
//! [method@m!{}]
6666
//! [method@m![]]
6767
//! [method@f()]
68-
//! [method@m!] //~ WARN: unmatched disambiguator `method` and suffix `!`
68+
//! [method@m!] //~ WARN unmatched disambiguator `method` and suffix `!`
6969
//!
70-
//! [derive@m!()] //~ WARN: incompatible link kind for `m`
71-
//! [derive@m!{}] //~ WARN: incompatible link kind for `m`
70+
//! [derive@m!()] //~ WARN incompatible link kind for `m`
71+
//! [derive@m!{}] //~ WARN incompatible link kind for `m`
7272
//! [derive@m![]]
73-
//! [derive@f()] //~ WARN: unmatched disambiguator `derive` and suffix `()`
74-
//! [derive@m!] //~ WARN: incompatible link kind for `m`
73+
//! [derive@f()] //~ WARN unmatched disambiguator `derive` and suffix `()`
74+
//! [derive@m!] //~ WARN incompatible link kind for `m`
7575
//!
76-
//! [type@m!()] //~ WARN: unmatched disambiguator `type` and suffix `!()`
76+
//! [type@m!()] //~ WARN unmatched disambiguator `type` and suffix `!()`
7777
//! [type@m!{}]
7878
//! [type@m![]]
79-
//! [type@f()] //~ WARN: unmatched disambiguator `type` and suffix `()`
80-
//! [type@m!] //~ WARN: unmatched disambiguator `type` and suffix `!`
79+
//! [type@f()] //~ WARN unmatched disambiguator `type` and suffix `()`
80+
//! [type@m!] //~ WARN unmatched disambiguator `type` and suffix `!`
8181
//!
82-
//! [value@m!()] //~ WARN: unmatched disambiguator `value` and suffix `!()`
82+
//! [value@m!()] //~ WARN unmatched disambiguator `value` and suffix `!()`
8383
//! [value@m!{}]
8484
//! [value@m![]]
8585
//! [value@f()]
86-
//! [value@m!] //~ WARN: unmatched disambiguator `value` and suffix `!`
86+
//! [value@m!] //~ WARN unmatched disambiguator `value` and suffix `!`
8787
//!
8888
//! [macro@m!()]
8989
//! [macro@m!{}]
9090
//! [macro@m![]]
91-
//! [macro@f()] //~ WARN: unmatched disambiguator `macro` and suffix `()`
91+
//! [macro@f()] //~ WARN unmatched disambiguator `macro` and suffix `()`
9292
//! [macro@m!]
9393
//!
94-
//! [prim@m!()] //~ WARN: unmatched disambiguator `prim` and suffix `!()`
94+
//! [prim@m!()] //~ WARN unmatched disambiguator `prim` and suffix `!()`
9595
//! [prim@m!{}]
9696
//! [prim@m![]]
97-
//! [prim@f()] //~ WARN: unmatched disambiguator `prim` and suffix `()`
98-
//! [prim@m!] //~ WARN: unmatched disambiguator `prim` and suffix `!`
97+
//! [prim@f()] //~ WARN unmatched disambiguator `prim` and suffix `()`
98+
//! [prim@m!] //~ WARN unmatched disambiguator `prim` and suffix `!`
9999
//!
100-
//! [primitive@m!()] //~ WARN: unmatched disambiguator `primitive` and suffix `!()`
100+
//! [primitive@m!()] //~ WARN unmatched disambiguator `primitive` and suffix `!()`
101101
//! [primitive@m!{}]
102102
//! [primitive@m![]]
103-
//! [primitive@f()] //~ WARN: unmatched disambiguator `primitive` and suffix `()`
104-
//! [primitive@m!] //~ WARN: unmatched disambiguator `primitive` and suffix `!`
103+
//! [primitive@f()] //~ WARN unmatched disambiguator `primitive` and suffix `()`
104+
//! [primitive@m!] //~ WARN unmatched disambiguator `primitive` and suffix `!`
105105
106106
#[macro_export]
107107
macro_rules! m {

tests/rustdoc-ui/disambiguator-macro-endswith-exclamatory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ check-pass
22

3-
//! [macro@m!] //~ WARN: unresolved link to `m`
3+
//! [macro@m!] //~ WARN unresolved link to `m`
44
55
//issue#126986
66

tests/rustdoc-ui/error-in-impl-trait/infinite-recursive-type-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub fn f() -> impl Sized {
22
pub enum E {
3-
//~^ ERROR: recursive type
3+
//~^ ERROR recursive type
44
V(E),
55
}
66

0 commit comments

Comments
 (0)