]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/binding.rs
Rollup merge of #62514 - stephaneyfx:box-ffi, r=nikomatsakis
[rust.git] / src / librustc / ty / binding.rs
index 905d7abb7828c7eb8b4a15bea2f50fe458b6d8d4..491e09dff09506561cbbf5d09e447aa3565bf018 100644 (file)
@@ -2,7 +2,7 @@
 use crate::hir::BindingAnnotation;
 use crate::hir::Mutability;
 
-#[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Debug, Copy)]
+#[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Debug, Copy, HashStable)]
 pub enum BindingMode {
     BindByReference(Mutability),
     BindByValue(Mutability),
@@ -20,8 +20,3 @@ pub fn convert(ba: BindingAnnotation) -> BindingMode {
         }
     }
 }
-
-impl_stable_hash_for!(enum self::BindingMode {
-    BindByReference(mutability),
-    BindByValue(mutability)
-});