Start next_id at 1 to make the compiler happy
This commit is contained in:
parent
e5521aa03e
commit
8e4c5d2d4d
@ -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
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user