about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2019-11-15 21:23:34 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-11-19 20:48:08 +0100
commit4da5fe7fdbb4b2a257f37fc725a756f01d2927fc (patch)
treeb747a451cdf315ae16509db32843a646340e7dce
parent7db84e85047431d1b59bac6def3385454576710e (diff)
downloadrust-4da5fe7fdbb4b2a257f37fc725a756f01d2927fc.tar.gz
rust-4da5fe7fdbb4b2a257f37fc725a756f01d2927fc.zip
Fix derive syntax.
-rw-r--r--src/librustc/ty/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs
index c9bdf22ca8e..a54bf5079ca 100644
--- a/src/librustc/ty/mod.rs
+++ b/src/librustc/ty/mod.rs
@@ -1589,8 +1589,8 @@ rustc_index::newtype_index! {
     /// declared, but a type name in a non-zero universe is a placeholder
     /// type -- an idealized representative of "types in general" that we
     /// use for checking generic functions.
-    #[derive(HashStable)]
     pub struct UniverseIndex {
+        derive [HashStable]
         DEBUG_FORMAT = "U{}",
     }
 }