Benjamin Herr
1019177958
lexer: show correct span on lexical errors
...
Previously, the lexer calling `rdr.fatal(...)` would report the span of
the last complete token, instead of a span within the erroneous token
(besides one span fixed in 1ac90bb).
This commit adds a wrapper around `rdr.fatal(...)` that sets the span
explicilty, so that all fatal errors in `libsyntax/parse/lexer.rs` now
report the offending code more precisely. A number of tests try to
verify that, though the `compile-fail` testing setup can only check that
the spans are on the right lines, and the "unterminated string/block
comment" errors can't have the line marked at all, so that's incomplete.
Closes #9149 .
2013-09-19 16:58:11 +02:00
..
2013-09-06 23:56:17 -07:00
2013-09-04 23:28:23 -07:00
2013-09-03 20:00:41 +10:00
2013-08-23 18:38:59 -07:00
2013-08-27 18:47:57 -07:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-08-27 15:45:19 -04:00
2013-08-21 12:02:21 -04:00
2013-08-27 18:46:51 -07:00
2013-09-16 22:19:23 -04:00
2013-08-27 18:47:59 -07:00
2013-08-27 18:46:51 -07:00
2013-08-27 18:46:51 -07:00
2013-08-27 18:46:51 -07:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-08-27 18:46:51 -07:00
2013-08-21 15:52:31 -04:00
2013-08-21 20:33:56 -04:00
2013-09-04 23:09:51 -04:00
2013-09-16 22:19:23 -04:00
2013-09-13 20:54:52 -07:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-08-21 10:50:37 -04:00
2013-08-21 10:50:37 -04:00
2013-08-27 18:46:51 -07:00
2013-09-16 22:19:23 -04:00
2013-09-15 01:09:00 -07:00
2013-09-12 00:36:54 -07:00
2013-09-12 00:36:54 -07:00
2013-08-24 12:48:10 -07:00
2013-08-24 12:48:10 -07:00
2013-08-24 12:48:10 -07:00
2013-08-24 12:48:10 -07:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-03 20:00:41 +10:00
2013-09-03 20:00:41 +10:00
2013-09-16 22:19:23 -04:00
2013-09-03 20:00:41 +10:00
2013-09-03 20:00:41 +10:00
2013-08-28 10:12:28 +02:00
2013-08-21 17:14:31 -07:00
2013-08-21 17:14:31 -07:00
2013-08-21 17:14:31 -07:00
2013-08-21 17:14:31 -07:00
2013-08-21 17:14:31 -07:00
2013-08-21 19:22:57 -04:00
2013-08-21 17:17:50 -07:00
2013-09-03 20:00:41 +10:00
2013-08-21 17:17:49 -07:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-23 17:24:14 -04:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-08-26 15:50:52 +02:00
2013-09-16 22:19:23 -04:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-19 16:58:11 +02:00
2013-09-12 15:21:01 -07:00
2013-09-04 00:12:27 +10:00
2013-08-29 19:54:10 -07:00
2013-08-27 18:47:59 -07:00
2013-09-04 02:28:16 +02:00
2013-09-16 22:19:23 -04:00
2013-08-23 17:24:15 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-08-27 18:47:57 -07:00
2013-08-27 18:47:59 -07:00
2013-08-27 18:47:57 -07:00
2013-09-16 22:19:23 -04:00
2013-08-27 18:46:51 -07:00
2013-08-27 18:47:57 -07:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-16 22:19:23 -04:00
2013-09-03 20:00:41 +10:00
2013-08-27 18:47:59 -07:00