summary refs log tree commit diff
path: root/src/libsyntax/codemap.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-25 06:41:36 -0800
committerbors <bors@rust-lang.org>2014-02-25 06:41:36 -0800
commit25d68366b73c24bd9b7d277b38da087420d63f9b (patch)
tree20978b14ec9da96f64fbd7659d090c04e99d300d /src/libsyntax/codemap.rs
parentd222f03f42fe855d2fadc87010453bcfc2a669e1 (diff)
parent6335a76b6eb473ea399b16fe9309db142d6b68ce (diff)
downloadrust-25d68366b73c24bd9b7d277b38da087420d63f9b.tar.gz
rust-25d68366b73c24bd9b7d277b38da087420d63f9b.zip
auto merge of #12522 : erickt/rust/hash, r=alexcrichton
This patch series does a couple things:

* replaces manual `Hash` implementations with `#[deriving(Hash)]`
* adds `Hash` back to `std::prelude`
* minor cleanup of whitespace and variable names.
Diffstat (limited to 'src/libsyntax/codemap.rs')
-rw-r--r--src/libsyntax/codemap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs
index a67d1b933a8..79ccc8df0f3 100644
--- a/src/libsyntax/codemap.rs
+++ b/src/libsyntax/codemap.rs
@@ -38,7 +38,7 @@ pub struct BytePos(u32);
 /// A character offset. Because of multibyte utf8 characters, a byte offset
 /// is not equivalent to a character offset. The CodeMap will convert BytePos
 /// values to CharPos values as necessary.
-#[deriving(Eq,Hash, Ord)]
+#[deriving(Eq, Hash, Ord)]
 pub struct CharPos(uint);
 
 // FIXME: Lots of boilerplate in these impls, but so far my attempts to fix