Skip to content

Commit

Permalink
Start next_id at 1 to make the compiler happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jruderman committed Feb 25, 2012
1 parent e5521aa commit 8e4c5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fuzzer/fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ fn parse_and_print(code: @str) -> str {
let handler = diagnostic::mk_handler(none);
let sess = @{
cm: cm,
mutable next_id: 0,
mutable next_id: 1,
span_diagnostic: diagnostic::mk_span_handler(handler, cm),
mutable chpos: 0u,
mutable byte_pos: 0u
Expand Down Expand Up @@ -548,7 +548,7 @@ fn check_variants(files: [str], cx: context) {
let handler = diagnostic::mk_handler(none);
let sess = @{
cm: cm,
mutable next_id: 0,
mutable next_id: 1,
span_diagnostic: diagnostic::mk_span_handler(handler, cm),
mutable chpos: 0u,
mutable byte_pos: 0u
Expand Down

0 comments on commit 8e4c5d2

Please sign in to comment.