<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libsyntax/errors/mod.rs, branch 1.9.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.9.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.9.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2016-03-30T20:23:48+00:00</updated>
<entry>
<title>Put in `-Z continue-parse-after-error`</title>
<updated>2016-03-30T20:23:48+00:00</updated>
<author>
<name>Felix S. Klock II</name>
<email>pnkfelix@pnkfx.org</email>
</author>
<published>2016-03-25T17:17:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2646663b5a9b9bd021e58eb9cd8bcc63b7925c95'/>
<id>urn:sha1:2646663b5a9b9bd021e58eb9cd8bcc63b7925c95</id>
<content type='text'>
This works by adding a boolean flag, `continue_after_error`, to
`syntax::errors::Handler` that can be imperatively set to `true` or
`false` via a new `fn set_continue_after_error`.

The flag starts off true (since we generally try to recover from
compiler errors, and `Handler` is shared across all phases).

Then, during the `phase_1_parse_input`, we consult the setting of the
`-Z continue-parse-after-error` debug flag to determine whether we
should leave the flag set to `true` or should change it to `false`.

----

(We might consider adding a debugflag to do such aborts in other
places where we are currently attempting recovery, such as resolve,
but I think the parser is the really important case to handle in the
face of #31994 and the parser bugs of varying degrees that were
injected by parse error recovery.)
</content>
</entry>
<entry>
<title>Implement MultiSpan error reporting</title>
<updated>2016-01-28T19:51:06+00:00</updated>
<author>
<name>mitaa</name>
<email>mitaa.ceb@gmail.com</email>
</author>
<published>2015-12-13T12:12:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=727f959095023d9fa749acbba49a4a904c57356b'/>
<id>urn:sha1:727f959095023d9fa749acbba49a4a904c57356b</id>
<content type='text'>
This allows to render multiple spans on one line,
or to splice multiple replacements into a code suggestion.
</content>
</entry>
<entry>
<title>The war on abort_if_errors</title>
<updated>2016-01-21T19:19:27+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2016-01-20T09:07:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0ac8915875596db90167701c447d9c76396358bb'/>
<id>urn:sha1:0ac8915875596db90167701c447d9c76396358bb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #30787 - nikomatsakis:future-incompatible-lint, r=brson</title>
<updated>2016-01-15T11:58:28+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2016-01-15T11:58:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=56cae9f507796c7c0f9fa6ee4caab6fc63a79960'/>
<id>urn:sha1:56cae9f507796c7c0f9fa6ee4caab6fc63a79960</id>
<content type='text'>
There is now more structure to the report, so that you can specify e.g. an RFC/PR/issue number and other explanatory details.

Example message:

```
type-parameter-invalid-lint.rs:14:8: 14:9 error: defaults for type parameters are only allowed on type definitions, like `struct` or `enum`
type-parameter-invalid-lint.rs:14 fn avg&lt;T=i32&gt;(_: T) {}
                                         ^
type-parameter-invalid-lint.rs:14:8: 14:9 warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
type-parameter-invalid-lint.rs:14:8: 14:9 note: for more information, see PR 30742 &lt;https://github.com/rust-lang/rust/pull/30724&gt;
type-parameter-invalid-lint.rs:11:9: 11:28 note: lint level defined here
type-parameter-invalid-lint.rs:11 #![deny(future_incompatible)]
                                          ^~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
```

r? @brson

I would really like feedback also on the specific messages!

Fixes #30746
</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>Add an --output option for specifying an error emitter</title>
<updated>2016-01-14T21:24:12+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-12-31T03:50:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fd46c78f8f5bc760a46c36fc03f97d43ac389db6'/>
<id>urn:sha1:fd46c78f8f5bc760a46c36fc03f97d43ac389db6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a JSON error emitter</title>
<updated>2016-01-14T21:20:30+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-12-31T01:43:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=acfccc515bfbed098f46c6530d57aaef846b99ca'/>
<id>urn:sha1:acfccc515bfbed098f46c6530d57aaef846b99ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use fileline_ and not full span_ for the followon messages</title>
<updated>2016-01-13T00:38:12+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2016-01-13T00:38:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0254f69d745058a6f293639b4c47de02062694b2'/>
<id>urn:sha1:0254f69d745058a6f293639b4c47de02062694b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revamp the "future incompatible" section to clarify the situation</title>
<updated>2016-01-12T17:53:55+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2016-01-08T22:53:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=259379426cebf2c66e67076e6214b9e3e8c920df'/>
<id>urn:sha1:259379426cebf2c66e67076e6214b9e3e8c920df</id>
<content type='text'>
better
</content>
</entry>
<entry>
<title>Rebasing and review comments</title>
<updated>2015-12-30T01:54:36+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-12-23T21:54:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04d972906d05e6c27452e1ae35970c30e7cf6e6b'/>
<id>urn:sha1:04d972906d05e6c27452e1ae35970c30e7cf6e6b</id>
<content type='text'>
</content>
</entry>
</feed>
