We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Span
1 parent f9bfe84 commit 77c40f8Copy full SHA for 77c40f8
src/libsyntax_pos/span_encoding.rs
@@ -31,11 +31,13 @@ pub struct Span(u32);
31
32
impl Copy for Span {}
33
impl Clone for Span {
34
+ #[inline]
35
fn clone(&self) -> Span {
36
*self
37
}
38
39
impl PartialEq for Span {
40
41
fn eq(&self, other: &Span) -> bool {
42
let a = self.0;
43
let b = other.0;
@@ -44,6 +46,7 @@ impl PartialEq for Span {
44
46
45
47
impl Eq for Span {}
48
impl Hash for Span {
49
50
fn hash<H: Hasher>(&self, state: &mut H) {
51
52
a.hash(state)
0 commit comments