3 #![feature(rustc_private)]
5 extern crate rustc_macros;
6 extern crate rustc_serialize;
8 // Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
10 #[allow(unused_extern_crates)]
11 extern crate rustc_driver;
14 use rustc_macros::{Decodable, Encodable};
16 // if any of these are implemented without global calls for any
17 // function calls, then being in a submodule will (correctly)
18 // cause errors about unrecognised module `std` (or `extra`)
19 #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)]
25 #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)]
31 #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)]
32 struct C(usize, isize);