about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWho? Me?! <mark-i-m@users.noreply.github.com>2020-06-16 09:41:05 -0500
committerGitHub <noreply@github.com>2020-06-16 09:41:05 -0500
commitcfdbbb5600c0a9f95dd662ce98f463d921e30cf0 (patch)
tree048e8808e7f2ddd401a0aeca1d28fc0c22607a0e
parente855b90a8e159d27e014847ef50d9536aa1249d0 (diff)
downloadrust-cfdbbb5600c0a9f95dd662ce98f463d921e30cf0.tar.gz
rust-cfdbbb5600c0a9f95dd662ce98f463d921e30cf0.zip
format derives
Co-authored-by: lzutao <taolzu@gmail.com>
-rw-r--r--src/librustc_middle/ty/sty.rs15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/librustc_middle/ty/sty.rs b/src/librustc_middle/ty/sty.rs
index 656c05b5520..cf11adb0285 100644
--- a/src/librustc_middle/ty/sty.rs
+++ b/src/librustc_middle/ty/sty.rs
@@ -208,19 +208,8 @@ pub enum TyKind<'tcx> {
 
 /// A type that is not publicly constructable. This prevents people from making `TyKind::Error`
 /// except through `tcx.err*()`.
-#[derive(
-    Copy,
-    Clone,
-    Debug,
-    Eq,
-    Hash,
-    PartialEq,
-    PartialOrd,
-    Ord,
-    RustcEncodable,
-    RustcDecodable,
-    HashStable
-)]
+#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)]
+#[derive(RustcEncodable, RustcDecodable, HashStable)]
 pub struct DelaySpanBugEmitted(pub(super) ());
 
 // `TyKind` is used a lot. Make sure it doesn't unintentionally get bigger.