1
Fork 0
This commit is contained in:
Manish Goregaokar 2016-02-29 16:49:32 +05:30
parent e256055dc4
commit bd45cfd273
18 changed files with 137 additions and 203 deletions

View file

@ -147,7 +147,11 @@ fn str_span(base: Span, s: &str, c: usize) -> Span {
Some((b, _)) => base.lo + BytePos(b as u32),
_ => base.hi,
};
Span{ lo: lo, hi: lo, ..base }
Span {
lo: lo,
hi: lo,
..base
}
}
fn const_str(cx: &LateContext, e: &Expr) -> Option<InternedString> {