]> git.lizzy.rs Git - rust.git/commitdiff
tweak the obsolete syntax message
authorJorge Aparicio <japaricious@gmail.com>
Mon, 5 Jan 2015 20:19:38 +0000 (15:19 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Mon, 5 Jan 2015 20:19:38 +0000 (15:19 -0500)
src/libsyntax/parse/obsolete.rs

index d63f432589dd1a866386cd889ce86ab9860f647a..cb8b82b204196d302f69dfeeda3636265b53d477 100644 (file)
@@ -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",