Remove many unnecessary trait derivations.

This commit is contained in:
Nicholas Nethercote 2019-10-20 15:54:53 +11:00
parent c3b3a86124
commit ac6daed384
49 changed files with 89 additions and 103 deletions

View file

@ -1311,7 +1311,7 @@ pub struct BytePos(pub u32);
/// A character offset. Because of multibyte UTF-8 characters, a byte offset
/// is not equivalent to a character offset. The `SourceMap` will convert `BytePos`
/// values to `CharPos` values as necessary.
#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Debug)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug)]
pub struct CharPos(pub usize);
// FIXME: lots of boilerplate in these impls, but so far my attempts to fix