Skip to content

'exception Lexer.Lex_err("bad trailing utf-8 byte", _)' compiling test/run-pass/utf8.rs #101

Closed
@jorendorff

Description

@jorendorff

$ git clone http://github.com/graydon/rust.git rust-2
$ cd rust-2/src
$ make && make check
...
compile [x86]: test/run-pass/uint.rs
compile [x86]: test/run-pass/unit.rs
compile [x86]: test/run-pass/user.rs
compile [x86]: test/run-pass/utf8.rs
Fatal error: exception Lexer.Lex_err("bad trailing utf-8 byte", _)
Raised at file "boot/fe/lexer.mll", line 17, characters 12-30
Called from file "boot/fe/parser.ml", line 240, characters 22-50
Called from file "boot/fe/item.ml", line 87, characters 10-17
Called from file "boot/fe/parser.ml", line 164, characters 13-17
Called from file "boot/fe/item.ml", line 110, characters 14-68
Called from file "boot/fe/parser.ml", line 164, characters 13-17
Called from file "boot/fe/item.ml", line 464, characters 12-61
Called from file "boot/fe/parser.ml", line 164, characters 13-17
Called from file "boot/fe/parser.ml", line 312, characters 15-25
Called from file "boot/fe/parser.ml", line 164, characters 13-17
Called from file "boot/fe/item.ml", line 66, characters 8-113
Called from file "boot/fe/parser.ml", line 164, characters 13-17
Called from file "boot/fe/item.ml", line 678, characters 15-45
Called from file "boot/fe/parser.ml", line 164, characters 13-17
Called from file "boot/fe/item.ml", line 806, characters 24-75
Called from file "boot/fe/item.ml", line 1151, characters 28-45
Called from file "boot/fe/cexp.ml", line 736, characters 22-49
Called from file "boot/fe/cexp.ml", line 598, characters 4-12
Called from file "boot/driver/main.ml", line 255, characters 14-119
Called from file "boot/driver/session.ml", line 60, characters 10-17
Called from file "boot/driver/main.ml", line 242, characters 2-1697
make: *** [test/run-pass/utf8.x86] Error 2

The UTF-8 in the test file looks fine to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions