Skip to content

Commit

Permalink
span_suggestion_hidden -> tool_only_span_suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Dec 21, 2019
1 parent cabe665 commit 690b0b3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion src/librustc_parse/parser/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ impl<'a> Parser<'a> {
}
new_bound_list = new_bound_list.replacen(" +", ":", 1);
}
err.span_suggestion_hidden(
err.tool_only_span_suggestion(
bound_list,
&format!("remove the bound{}", pluralize!(negative_bounds_len)),
new_bound_list,
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/issues/issue-58857.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ error: negative bounds are not supported
|
LL | impl<A: !Valid> Conj<A>{}
| ^^^^^^^^ negative bounds are not supported
|
= help: remove the bound

error: aborting due to previous error

10 changes: 0 additions & 10 deletions src/test/ui/parser/issue-33418.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,18 @@ error: negative bounds are not supported
|
LL | trait Tr: !SuperA {}
| ^^^^^^^^^ negative bounds are not supported
|
= help: remove the bound

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

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

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

error: negative bounds are not supported
--> $DIR/issue-33418.rs:12:10
Expand All @@ -39,8 +31,6 @@ LL | trait Tr5: !SuperA
| ^^^^^^^^^
LL | + !SuperB {}
| ^^^^^^^^^ negative bounds are not supported
|
= help: remove the bounds

error: aborting due to 5 previous errors

Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,18 @@ error: negative bounds are not supported
|
LL | fn f1<T: !'static>() {}
| ^^^^^^^^^^ negative bounds are not supported
|
= help: remove the bound

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

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

error: aborting due to 3 previous errors

0 comments on commit 690b0b3

Please sign in to comment.