]> git.lizzy.rs Git - rust.git/commitdiff
Add some comments for error codes in librustc_typeck/diagnostics
authorNick Hamann <nick@wabbo.org>
Sun, 10 May 2015 01:38:10 +0000 (20:38 -0500)
committerNick Hamann <nick@wabbo.org>
Sun, 10 May 2015 22:47:15 +0000 (17:47 -0500)
src/librustc_typeck/diagnostics.rs

index 026ba3d08b42bea90bc74aac4fa37e6c910861ac..904cd156f2a2963c156137b6ab07e95a52b5ecd7 100644 (file)
@@ -164,18 +164,18 @@ enum Empty {}
     E0030,
     E0031,
     E0033,
-    E0034,
-    E0035,
-    E0036,
-    E0038,
+    E0034, // multiple applicable methods in scope
+    E0035, // does not take type parameters
+    E0036, // incorrect number of type parameters given for this method
+    E0038, // cannot convert to a trait object because trait is not object-safe
     E0040, // explicit use of destructor method
-    E0044,
-    E0045,
+    E0044, // foreign items may not have type parameters
+    E0045, // variadic function must have C calling convention
     E0049,
     E0050,
     E0053,
-    E0055,
-    E0057,
+    E0055, // method has an incompatible type for trait
+    E0057, // method has an incompatible type for trait
     E0059,
     E0060,
     E0061,