mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
tweak the obsolete syntax message
This commit is contained in:
@@ -58,8 +58,8 @@ fn obsolete(&mut self, sp: Span, kind: ObsoleteSyntax) {
|
||||
let (kind_str, desc) = match kind {
|
||||
ObsoleteForSized => (
|
||||
"for Sized?",
|
||||
"no longer required, traits apply to sized and unsized types by default, use \
|
||||
`: Sized` to opt-out of unsized types",
|
||||
"no longer required. Traits (and their `Self` type) do not have the `Sized` bound \
|
||||
by default",
|
||||
),
|
||||
ObsoleteProcType => (
|
||||
"the `proc` type",
|
||||
|
||||
Reference in New Issue
Block a user