Skip to content

Commit 588777f

Browse files
author
Nick Hamann
committed
Improve E0053 and E0066 error explanations.
1 parent d636b5c commit 588777f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ impl Foo for Bar {
6565
"##,
6666

6767
E0053: r##"
68-
In a trait method implementation, the function signature must match exactly.
69-
This error indicates a mutability mismatch between a trait method signature
70-
and the signature of the implementation.
68+
For any given method of a trait, the mutabilities of the parameters must match
69+
between the trait definition and the implementation.
7170
7271
Here's an example where the mutability of the `self` parameter is wrong:
7372
@@ -130,13 +129,13 @@ exactly once.
130129
"##,
131130

132131
E0066: r##"
133-
Box placement expressions (like C++'s "placement new") do not support any
132+
Box placement expressions (like C++'s "placement new") do not yet support any
134133
place expression except the exchange heap (i.e. `std::boxed::HEAP`).
135-
Furthermore, the syntax is changing to use `in` instead of `box`. See [RFC
136-
470][rfc470] and [RFC 809][rfc809] for more details.
134+
Furthermore, the syntax is changing to use `in` instead of `box`. See [RFC 470]
135+
and [RFC 809] for more details.
137136
138-
[rfc470]: https://github.com/rust-lang/rfcs/pull/470
139-
[rfc809]: https://github.com/rust-lang/rfcs/pull/809
137+
[RFC 470]: https://github.com/rust-lang/rfcs/pull/470
138+
[RFC 809]: https://github.com/rust-lang/rfcs/pull/809
140139
"##,
141140

142141
E0067: r##"

0 commit comments

Comments
 (0)