]> git.lizzy.rs Git - rust.git/commit
Better error message for unknown start of token
authorKevin Ballard <kevin@sb.org>
Fri, 16 Aug 2013 04:16:40 +0000 (21:16 -0700)
committerKevin Ballard <kevin@sb.org>
Fri, 16 Aug 2013 04:16:40 +0000 (21:16 -0700)
commitfdaae344785f11ff4226c6eaaacd7b8c954ca013
tree46eb82262350328414bbd3b8e10b7bce9ea5934a
parentc4656cfd045ef436377b3dfeebaa265c2c92a00f
Better error message for unknown start of token

The span was fixed at some point to point to the correct character, but
the error message is still bad. Update it to emit the actual character
in question (potentially escaped).

Fixes #3747.
src/libsyntax/parse/lexer.rs