<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libsyntax/parse, branch 1.7.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.7.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.7.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2016-01-15T06:38:26+00:00</updated>
<entry>
<title>Auto merge of #30763 - gchp:issue/30033, r=nagisa</title>
<updated>2016-01-15T06:38:26+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2016-01-15T06:38:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a70a60a02bca4c1fb75a0eb0ecf80acb73972f66'/>
<id>urn:sha1:a70a60a02bca4c1fb75a0eb0ecf80acb73972f66</id>
<content type='text'>
This is achieved by adding the scan_back method. This method looks back
through the source_text of the StringReader until it finds the target
char, returning it's offset in the source. We use this method to find
the offset of the opening single quote, and use that offset as the start
of the error.

Given this code:

```rust
fn main() {
    let _ = 'abcd';
}
```

The compiler would give a message like:

```
error: character literal may only contain one codepoint: ';
let _ = 'abcd';
             ^~
```
With this change, the message now displays:

```
error: character literal may only contain one codepoint: 'abcd';
let _ = 'abcd';
        ^~~~~~~
```

Fixes #30033
</content>
</entry>
<entry>
<title>Implement JSON error emission</title>
<updated>2016-01-14T21:24:12+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-12-31T05:47:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b976d9e6660c16f4a1d5a28b11afa7ccb4f75da6'/>
<id>urn:sha1:b976d9e6660c16f4a1d5a28b11afa7ccb4f75da6</id>
<content type='text'>
[breaking-change]

syntax::errors::Handler::new has been renamed to with_tty_emitter

Many functions which used to take a syntax::errors::ColorConfig, now take a rustc::session::config::ErrorOutputType. If you previously used ColorConfig::Auto as a default, you should now use ErrorOutputType::default().
</content>
</entry>
<entry>
<title>Display better snippet for invalid char literal</title>
<updated>2016-01-14T17:34:42+00:00</updated>
<author>
<name>Greg Chapple</name>
<email>gregchapple1@gmail.com</email>
</author>
<published>2016-01-07T16:12:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=acc9428c6a99d199f35032ec7f794385e4c9fd24'/>
<id>urn:sha1:acc9428c6a99d199f35032ec7f794385e4c9fd24</id>
<content type='text'>
Given this code:

    fn main() {
        let _ = 'abcd';
    }

The compiler would give a message like:

    error: character literal may only contain one codepoint: ';
    let _ = 'abcd';
                 ^~

With this change, the message now displays:

    error: character literal may only contain one codepoint: 'abcd'
    let _ = 'abcd'
            ^~~~~~

Fixes #30033
</content>
</entry>
<entry>
<title>Auto merge of #30813 - fhahn:fix-ice-semicolon-in-lifetime, r=nrc</title>
<updated>2016-01-13T20:38:12+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2016-01-13T20:38:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6089ebaddb8a9d663f798c26eb2ca73a9514a59a'/>
<id>urn:sha1:6089ebaddb8a9d663f798c26eb2ca73a9514a59a</id>
<content type='text'>
This PR fixes an ICE due to an DiagnosticsBuilder not being canceld or emitted.

Ideally it would use `Handler::cancel`, but I did not manage to get a `&amp;mut` reference to the diagnostics handler.
</content>
</entry>
<entry>
<title>Auto merge of #30684 - tshepang:rustfmt-lexer-part2, r=nrc</title>
<updated>2016-01-13T12:22:51+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2016-01-13T12:22:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d3c83fef245f1cb2e523c8913b8968c98faec1f4'/>
<id>urn:sha1:d3c83fef245f1cb2e523c8913b8968c98faec1f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>re-instate comment that was mysteriously disappeared</title>
<updated>2016-01-12T19:00:09+00:00</updated>
<author>
<name>Tshepang Lekhonkhobe</name>
<email>tshepang@gmail.com</email>
</author>
<published>2016-01-12T18:52:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aa3b4c668e00815c5885698887bb2412f408aced'/>
<id>urn:sha1:aa3b4c668e00815c5885698887bb2412f408aced</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cancel parse_ty error in Parser::parse_generic_values_after_lt</title>
<updated>2016-01-10T21:59:23+00:00</updated>
<author>
<name>Florian Hahn</name>
<email>flo@fhahn.com</email>
</author>
<published>2016-01-10T21:59:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e61d21fe3d59797f0bc30ded9e943bfe9f5364e4'/>
<id>urn:sha1:e61d21fe3d59797f0bc30ded9e943bfe9f5364e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #30723 - nrc:macro-err-bug, r=Manishearth</title>
<updated>2016-01-07T04:44:14+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2016-01-07T04:44:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=440671751e818dfb20525a16a00011b8227eeaa7'/>
<id>urn:sha1:440671751e818dfb20525a16a00011b8227eeaa7</id>
<content type='text'>
Fixes #30715
</content>
</entry>
<entry>
<title>Rollup merge of #30729 - huonw:delete-bad-comment, r=sanxiyn</title>
<updated>2016-01-06T23:31:58+00:00</updated>
<author>
<name>Steve Klabnik</name>
<email>steve@steveklabnik.com</email>
</author>
<published>2016-01-06T23:31:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d91518b9c4d03c763274902546ee0db48f0cd911'/>
<id>urn:sha1:d91518b9c4d03c763274902546ee0db48f0cd911</id>
<content type='text'>
The fundamental problem of duplication was fixed in https://github.com/rust-lang/rust/pull/10891, but the comment was preserved. Closes https://github.com/rust-lang/rust/issues/9762.
</content>
</entry>
<entry>
<title>Auto merge of #30654 - nrc:panictry, r=brson</title>
<updated>2016-01-06T20:30:55+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2016-01-06T20:30:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5daa75373d870f255923aed37d99db73a661bd51'/>
<id>urn:sha1:5daa75373d870f255923aed37d99db73a661bd51</id>
<content type='text'>
The motivation (other than removing boilerplate) is that this is a baby step towards a parser with error recovery.

[breaking-change] if you use any of the changed functions, you'll need to remove a try! or panictry!
</content>
</entry>
</feed>
