libsyntax: Remove newtype enums from libsyntax. rs=deenum

This commit is contained in:
Patrick Walton
2013-03-07 18:04:21 -08:00
parent dc4869945c
commit 7538450b8d
6 changed files with 14 additions and 40 deletions

View File

@@ -35,11 +35,11 @@ pub trait Pos {
}
/// A byte offset
pub enum BytePos = uint;
pub struct BytePos(uint);
/// 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.
pub enum CharPos = uint;
pub struct CharPos(uint);
// XXX: Lots of boilerplate in these impls, but so far my attempts to fix
// have been unsuccessful