about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-09-22 09:56:30 +0200
committerGitHub <noreply@github.com>2018-09-22 09:56:30 +0200
commit23636e3f99ea8dba2d5e91637d818ebfbe6c1b96 (patch)
treed25f86f367b740a63971e965a2e819106aba593a /src/libsyntax_pos
parente59df621a85e40a1c99d134f3f0d1a7d17db4ff5 (diff)
parent06b197582e1974e925925d28196b1ed867208ebf (diff)
downloadrust-23636e3f99ea8dba2d5e91637d818ebfbe6c1b96.tar.gz
rust-23636e3f99ea8dba2d5e91637d818ebfbe6c1b96.zip
Rollup merge of #54350 - Munksgaard:support-edition-in-doc-test, r=steveklabnik
Support specifying edition in doc test

Fixes #52623

r? @QuietMisdreavus
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