Skip to content

Commit 8e4c5d2

Browse files
committed
Start next_id at 1 to make the compiler happy
1 parent e5521aa commit 8e4c5d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fuzzer/fuzzer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ fn parse_and_print(code: @str) -> str {
404404
let handler = diagnostic::mk_handler(none);
405405
let sess = @{
406406
cm: cm,
407-
mutable next_id: 0,
407+
mutable next_id: 1,
408408
span_diagnostic: diagnostic::mk_span_handler(handler, cm),
409409
mutable chpos: 0u,
410410
mutable byte_pos: 0u
@@ -548,7 +548,7 @@ fn check_variants(files: [str], cx: context) {
548548
let handler = diagnostic::mk_handler(none);
549549
let sess = @{
550550
cm: cm,
551-
mutable next_id: 0,
551+
mutable next_id: 1,
552552
span_diagnostic: diagnostic::mk_span_handler(handler, cm),
553553
mutable chpos: 0u,
554554
mutable byte_pos: 0u

0 commit comments

Comments
 (0)