]> git.lizzy.rs Git - rust.git/commitdiff
Add comment to `Type` and `OpaqueTy` match
authorJonas Schievink <jonasschievink@gmail.com>
Wed, 18 Sep 2019 21:00:59 +0000 (23:00 +0200)
committerJonas Schievink <jonasschievink@gmail.com>
Sat, 5 Oct 2019 13:33:25 +0000 (15:33 +0200)
src/librustc/traits/specialize/specialization_graph.rs

index 0febdbe161d479276495568ab789121102b5c6a5..c64d6748ea97d563e47b7de484320192875c4415 100644 (file)
@@ -436,7 +436,7 @@ pub fn item(
                 | (Const, Const)
                 | (Method, Method)
                 | (Type, Type)
-                | (Type, OpaqueTy)
+                | (Type, OpaqueTy)  // assoc. types can be made opaque in impls
                 => tcx.hygienic_eq(impl_item.ident, trait_item_name, trait_def_id),
 
                 | (Const, _)