blob: a652c4183c482692011178e5f1941b07633dce84 [file] [log] [blame]
Alex Crichtonccbb45d2017-05-23 10:58:24 -07001use std::hash::{Hash, Hasher};
2use std::fmt;
3
4use proc_macro2;
5
6#[derive(Clone, Copy, Default)]
7pub struct Span(pub proc_macro2::Span);
8
9impl PartialEq for Span {
10 fn eq(&self, _other: &Span) -> bool {
11 true
12 }
13}
14
15impl Eq for Span {}
16
17impl Hash for Span {
18 fn hash<H: Hasher>(&self, _hasher: &mut H) {
19 }
20}
21
22impl fmt::Debug for Span {
23 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
24 f.debug_struct("Span")
25 .finish()
26 }
27}