Skip to content

Commit db4818f

Browse files
committed
span_suggestion_hidden -> tool_only_span_suggestion
1 parent 52fa020 commit db4818f

File tree

4 files changed

+1
-19
lines changed

4 files changed

+1
-19
lines changed

src/librustc_parse/parser/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl<'a> Parser<'a> {
407407
}
408408
new_bound_list = new_bound_list.replacen(" +", ":", 1);
409409
}
410-
err.span_suggestion_hidden(
410+
err.tool_only_span_suggestion(
411411
bound_list,
412412
&format!("remove the bound{}", pluralize!(negative_bounds_len)),
413413
new_bound_list,

src/test/ui/issues/issue-58857.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ error: negative bounds are not supported
33
|
44
LL | impl<A: !Valid> Conj<A>{}
55
| ^^^^^^^^ negative bounds are not supported
6-
|
7-
= help: remove the bound
86

97
error: aborting due to previous error
108

src/test/ui/parser/issue-33418.stderr

-10
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,18 @@ error: negative bounds are not supported
33
|
44
LL | trait Tr: !SuperA {}
55
| ^^^^^^^^^ negative bounds are not supported
6-
|
7-
= help: remove the bound
86

97
error: negative bounds are not supported
108
--> $DIR/issue-33418.rs:5:19
119
|
1210
LL | trait Tr2: SuperA + !SuperB {}
1311
| ^^^^^^^^^ negative bounds are not supported
14-
|
15-
= help: remove the bound
1612

1713
error: negative bounds are not supported
1814
--> $DIR/issue-33418.rs:7:10
1915
|
2016
LL | trait Tr3: !SuperA + SuperB {}
2117
| ^^^^^^^^^ negative bounds are not supported
22-
|
23-
= help: remove the bound
2418

2519
error: negative bounds are not supported
2620
--> $DIR/issue-33418.rs:9:10
@@ -29,8 +23,6 @@ LL | trait Tr4: !SuperA + SuperB
2923
| ^^^^^^^^^
3024
LL | + !SuperC + SuperD {}
3125
| ^^^^^^^^^ negative bounds are not supported
32-
|
33-
= help: remove the bounds
3426

3527
error: negative bounds are not supported
3628
--> $DIR/issue-33418.rs:12:10
@@ -39,8 +31,6 @@ LL | trait Tr5: !SuperA
3931
| ^^^^^^^^^
4032
LL | + !SuperB {}
4133
| ^^^^^^^^^ negative bounds are not supported
42-
|
43-
= help: remove the bounds
4434

4535
error: aborting due to 5 previous errors
4636

src/test/ui/parser/issue-67146-negative-outlives-bound-syntactic-fail.stderr

-6
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,18 @@ error: negative bounds are not supported
33
|
44
LL | fn f1<T: !'static>() {}
55
| ^^^^^^^^^^ negative bounds are not supported
6-
|
7-
= help: remove the bound
86

97
error: negative bounds are not supported
108
--> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:9:18
119
|
1210
LL | fn f2<'a, T: Ord + !'a>() {}
1311
| ^^^^^ negative bounds are not supported
14-
|
15-
= help: remove the bound
1612

1713
error: negative bounds are not supported
1814
--> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:11:12
1915
|
2016
LL | fn f3<'a, T: !'a + Ord>() {}
2117
| ^^^^^ negative bounds are not supported
22-
|
23-
= help: remove the bound
2418

2519
error: aborting due to 3 previous errors
2620

0 commit comments

Comments
 (0)