Skip to content

Commit cd4205a

Browse files
author
Jorge Aparicio
committed
tweak the obsolete syntax message
1 parent 4ed2800 commit cd4205a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/obsolete.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> {
5858
let (kind_str, desc) = match kind {
5959
ObsoleteForSized => (
6060
"for Sized?",
61-
"no longer required, traits apply to sized and unsized types by default, use \
62-
`: Sized` to opt-out of unsized types",
61+
"no longer required. Traits (and their `Self` type) do not have the `Sized` bound \
62+
by default",
6363
),
6464
ObsoleteProcType => (
6565
"the `proc` type",

0 commit comments

Comments
 (0)