about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-01-28 00:20:50 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-01-28 11:07:45 +1100
commitcb02a370428afaae76db59080befe88b8c97e14d (patch)
treec967e91a172af8042410e066d1128357206105a8 /src/etc
parentb0280ac5385433bd663e825e24f6990a816a5f40 (diff)
downloadrust-cb02a370428afaae76db59080befe88b8c97e14d.tar.gz
rust-cb02a370428afaae76db59080befe88b8c97e14d.zip
syntax: make deriving have slightly less cryptic error messages.
This unfortunately changes an error like

    error: mismatched types: expected `&&NotClone` but found `&NotClone`

into

    error: type `NotClone` does not implement any method in scope named `clone`
Diffstat (limited to 'src/etc')
-rwxr-xr-xsrc/etc/generate-deriving-span-tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/generate-deriving-span-tests.py b/src/etc/generate-deriving-span-tests.py
index e66b7113a45..f00168a52c6 100755
--- a/src/etc/generate-deriving-span-tests.py
+++ b/src/etc/generate-deriving-span-tests.py
@@ -118,7 +118,7 @@ traits = {
 for (trait, supers, errs) in [('Rand', [], 1),
                               ('Clone', [], 1), ('DeepClone', ['Clone'], 1),
                               ('Eq', [], 2), ('Ord', [], 8),
-                              ('TotalEq', [], 2), ('TotalOrd', ['TotalEq'], 2)]:
+                              ('TotalEq', [], 1), ('TotalOrd', ['TotalEq'], 1)]:
     traits[trait] = (ALL, supers, errs)
 
 for (trait, (types, super_traits, error_count)) in traits.items():