about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorPhilip Munksgaard <pmunksgaard@gmail.com>2018-09-18 08:55:15 +0200
committerPhilip Munksgaard <pmunksgaard@gmail.com>2018-09-19 14:32:09 +0200
commitc996c4d316ce9023c3ef296a583e0c8bf7ce5880 (patch)
tree382480f791ae97c80d89f4e7b92815cbcccbe1fe /src/libsyntax_pos
parentb80cb47889e0ad9400b6708ce2b4c4b364b71982 (diff)
downloadrust-c996c4d316ce9023c3ef296a583e0c8bf7ce5880.tar.gz
rust-c996c4d316ce9023c3ef296a583e0c8bf7ce5880.zip
Add support for running doc test in specific edition
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/edition.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_pos/edition.rs b/src/libsyntax_pos/edition.rs
index 7709db72a02..5819cd7f480 100644
--- a/src/libsyntax_pos/edition.rs
+++ b/src/libsyntax_pos/edition.rs
@@ -12,7 +12,7 @@ use std::fmt;
 use std::str::FromStr;
 
 /// The edition of the compiler (RFC 2052)
-#[derive(Clone, Copy, Hash, PartialEq, PartialOrd, Debug, RustcEncodable, RustcDecodable)]
+#[derive(Clone, Copy, Hash, PartialEq, PartialOrd, Debug, RustcEncodable, RustcDecodable, Eq)]
 #[non_exhaustive]
 pub enum Edition {
     // editions must be kept in order, oldest to newest