Skip to content

Commit 143c7a3

Browse files
committed
syntax: Don't use an enum name as a variable name
1 parent c88ab58 commit 143c7a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,8 +1539,8 @@ fn print_remaining_comments(s: ps) {
15391539
fn print_literal(s: ps, &&lit: @ast::lit) {
15401540
maybe_print_comment(s, lit.span.lo);
15411541
alt next_lit(s, lit.span.lo) {
1542-
some(lt) {
1543-
word(s.s, lt.lit);
1542+
some(ltrl) {
1543+
word(s.s, ltrl.lit);
15441544
ret;
15451545
}
15461546
_ {}
@@ -1589,10 +1589,10 @@ fn next_lit(s: ps, pos: uint) -> option<comments::lit> {
15891589
alt s.literals {
15901590
some(lits) {
15911591
while s.cur_lit < vec::len(lits) {
1592-
let lt = lits[s.cur_lit];
1593-
if lt.pos > pos { ret none; }
1592+
let ltrl = lits[s.cur_lit];
1593+
if ltrl.pos > pos { ret none; }
15941594
s.cur_lit += 1u;
1595-
if lt.pos == pos { ret some(lt); }
1595+
if ltrl.pos == pos { ret some(ltrl); }
15961596
}
15971597
ret none;
15981598
}

0 commit comments

Comments
 (0)