span_suggestion_hidden -> tool_only_span_suggestion

This commit is contained in:
Mazdak Farrokhzad 2019-12-21 03:32:54 +01:00
parent 52fa020bbf
commit db4818f325
4 changed files with 1 additions and 19 deletions

View File

@ -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,

View File

@ -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

View File

@ -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
@ -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
@ -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

View File

@ -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