Rollup merge of #69942 - estebank:sized-verbose-sugg, r=matthewjasper
Increase verbosity when suggesting subtle code changes Do not suggest changes that are actually quite small inline, to minimize the likelihood of confusion. Fix #69243.
This commit is contained in:
commit
906b399583
137 changed files with 818 additions and 663 deletions
|
|
@ -1,8 +1,8 @@
|
|||
error[E0034]: multiple applicable items in scope
|
||||
--> $DIR/E0034.rs:20:5
|
||||
--> $DIR/E0034.rs:20:11
|
||||
|
|
||||
LL | Test::foo()
|
||||
| ^^^^^^^^^ multiple `foo` found
|
||||
| ^^^ multiple `foo` found
|
||||
|
|
||||
note: candidate #1 is defined in an impl of the trait `Trait1` for the type `Test`
|
||||
--> $DIR/E0034.rs:12:5
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ error[E0451]: field `b` of struct `bar::Foo` is private
|
|||
--> $DIR/E0451.rs:14:21
|
||||
|
|
||||
LL | let bar::Foo{a, b} = foo;
|
||||
| ^ field `b` is private
|
||||
| ^ private field
|
||||
|
||||
error[E0451]: field `b` of struct `bar::Foo` is private
|
||||
--> $DIR/E0451.rs:18:29
|
||||
|
|
||||
LL | let f = bar::Foo{ a: 0, b: 0 };
|
||||
| ^^^^ field `b` is private
|
||||
| ^^^^ private field
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error[E0603]: constant `PRIVATE` is private
|
|||
--> $DIR/E0603.rs:6:17
|
||||
|
|
||||
LL | SomeModule::PRIVATE;
|
||||
| ^^^^^^^ this constant is private
|
||||
| ^^^^^^^ private constant
|
||||
|
|
||||
note: the constant `PRIVATE` is defined here
|
||||
--> $DIR/E0603.rs:2:5
|
||||
|
|
|
|||
|
|
@ -2,7 +2,12 @@ error[E0615]: attempted to take value of method `method` on type `Foo`
|
|||
--> $DIR/E0615.rs:11:7
|
||||
|
|
||||
LL | f.method;
|
||||
| ^^^^^^ help: use parentheses to call the method: `method()`
|
||||
| ^^^^^^ method, not a field
|
||||
|
|
||||
help: use parentheses to call the method
|
||||
|
|
||||
LL | f.method();
|
||||
| ^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error[E0616]: field `x` of struct `a::Foo` is private
|
||||
--> $DIR/E0616.rs:13:5
|
||||
--> $DIR/E0616.rs:13:7
|
||||
|
|
||||
LL | f.x;
|
||||
| ^^^
|
||||
| ^ private field
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error[E0624]: associated function `method` is private
|
|||
--> $DIR/E0624.rs:11:9
|
||||
|
|
||||
LL | foo.method();
|
||||
| ^^^^^^
|
||||
| ^^^^^^ private associated function
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error[E0616]: field `0` of struct `a::Foo` is private
|
||||
--> $DIR/ex-E0611.rs:11:4
|
||||
--> $DIR/ex-E0611.rs:11:6
|
||||
|
|
||||
LL | y.0;
|
||||
| ^^^
|
||||
| ^ private field
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue