rust/src/libsyntax
bors 8d85504410 Auto merge of #41174 - estebank:issue-41155, r=nikomatsakis
Point at only one char on `Span::next_point`

Avoid pointing at two chars so the diagnostic output doesn't display a
multiline span when starting beyond a line end.

Fix #41155.

Instead of

```rust
error: expected one of `(`, `const`, `default`, `extern`, `fn`, `type`, or `unsafe`, found `}`
 --> <anon>:3:1
  |
1 |   impl S {	pub
  |  _____________- starting here...
2 | |
  | |  ...ending here: expected one of 7 possible tokens here
3 |   }
  |   ^ unexpected token
```

show

```rust
error: expected one of `(`, `const`, `default`, `extern`, `fn`, `type`, or `unsafe`, found `}`
  --> <anon>:13:1
   |
12 |     pub
   |        - expected one of 7 possible tokens here
13 | }
   | ^ unexpected token
```
2017-04-11 05:44:06 +00:00
..
diagnostics Use Symbol instead of InternedString in the AST, HIR, and various other places. 2016-11-21 09:00:55 +00:00
ext Fix bug parsing #[derive] macro invocations. 2017-04-03 23:02:49 +00:00
parse Point at only one char on Span::next_point 2017-04-10 14:03:17 -07:00
print Introduce TyErr independent from TyInfer 2017-04-02 09:45:57 -07:00
util Introduce HashStable trait and base ICH implementations on it. 2017-04-06 16:01:51 +02:00
abi.rs Add support for x86-interrupt calling convention 2017-03-02 19:01:15 +01:00
ast.rs Introduce TyErr independent from TyInfer 2017-04-02 09:45:57 -07:00
attr.rs Improve Path spans. 2017-03-30 05:44:56 +00:00
Cargo.toml Remove internal liblog 2017-03-23 11:28:00 -07:00
codemap.rs Refactor how spans are combined in the parser. 2017-03-29 11:17:59 +00:00
config.rs Liberalize attributes. 2017-03-14 04:39:21 +00:00
diagnostic_list.rs Add long error explanations 2017-02-21 15:52:14 +01:00
entry.rs Cleanup InternedString. 2016-11-21 09:00:56 +00:00
feature_gate.rs Auto merge of #40018 - japaric:ld, r=alexcrichton 2017-04-10 18:00:23 +00:00
fold.rs Introduce TyErr independent from TyInfer 2017-04-02 09:45:57 -07:00
json.rs Merge ExpnId and SyntaxContext. 2017-03-29 00:41:10 +00:00
lib.rs Merge ExpnId and SyntaxContext. 2017-03-29 00:41:10 +00:00
ptr.rs Introduce HashStable trait and base ICH implementations on it. 2017-04-06 16:01:51 +02:00
show_span.rs annotate stricter lifetimes on LateLintPass methods to allow them to forward to a Visitor 2016-12-06 11:28:51 +01:00
std_inject.rs Merge ExpnId and SyntaxContext. 2017-03-29 00:41:10 +00:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Merge ExpnId and SyntaxContext. 2017-03-29 00:41:10 +00:00
test_snippet.rs Always show end line of multiline annotations 2017-04-09 13:48:25 -07:00
tokenstream.rs Merge ExpnId and SyntaxContext. 2017-03-29 00:41:10 +00:00
visit.rs Introduce TyErr independent from TyInfer 2017-04-02 09:45:57 -07:00