<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustc_errors/styled_buffer.rs, branch 1.45.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.45.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.45.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-12-22T22:42:47+00:00</updated>
<entry>
<title>Format the world</title>
<updated>2019-12-22T22:42:47+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2019-12-22T22:42:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a06baa56b95674fc626b3c3fd680d6a65357fe60'/>
<id>urn:sha1:a06baa56b95674fc626b3c3fd680d6a65357fe60</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Correctly estimate required space for string</title>
<updated>2019-10-05T00:08:05+00:00</updated>
<author>
<name>AnthonyMikh</name>
<email>anthony.mikh@yandex.ru</email>
</author>
<published>2019-10-05T00:08:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4414068cc49803b0dacba133b7788b8b95b0b473'/>
<id>urn:sha1:4414068cc49803b0dacba133b7788b8b95b0b473</id>
<content type='text'>
`.len()` returns length in bytes so it overestimates the required space</content>
</entry>
<entry>
<title>librustc_errors =&gt; 2018</title>
<updated>2019-02-06T18:53:01+00:00</updated>
<author>
<name>Taiki Endo</name>
<email>te316e89@gmail.com</email>
</author>
<published>2019-02-06T18:53:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=950fe6686da1fdbaf25341cc5fafe1bb9fb1b180'/>
<id>urn:sha1:950fe6686da1fdbaf25341cc5fafe1bb9fb1b180</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove licenses</title>
<updated>2018-12-26T04:08:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-12-25T15:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a663555ddf36f6b041445894a8c175cd1bc718c'/>
<id>urn:sha1:2a663555ddf36f6b041445894a8c175cd1bc718c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Highlight code on diagnostics when underlined</title>
<updated>2018-01-29T01:15:15+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2017-10-02T22:28:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=871856e8312e7248d12f06f0faa1555f38e50a93'/>
<id>urn:sha1:871856e8312e7248d12f06f0faa1555f38e50a93</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Display `\t` in diagnostics code as four spaces</title>
<updated>2017-11-24T16:24:31+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2017-11-13T06:06:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9d80e2200af22bb4532a7cc4738b22e408072ffd'/>
<id>urn:sha1:9d80e2200af22bb4532a7cc4738b22e408072ffd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix mispositioned error indicators</title>
<updated>2017-09-07T08:26:27+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2017-09-07T06:47:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d58281097a3bf14fe1b199c8ba6aee00793e111e'/>
<id>urn:sha1:d58281097a3bf14fe1b199c8ba6aee00793e111e</id>
<content type='text'>
Fixes #38384

Most of the Rust community uses 4 spaces for indentation,
but there are also tab users of Rust (including myself!).

This patch fixes a bug in error printing which mispositions
error indicators when near code with tabs.

The code attempted to fix the issue by replacing spaces
with tabs, but it sadly wasn't enough, as sometimes
you may not print spaces but _ or ^ instead.

This patch employs the reverse strategy: it replaces each
tab with a space, so that the number of _ and ^ and spaces
in error indicators below the code snippet line up
perfectly.

In a study [1] preceeding this patch, we could see that
this strategy is also chosen by gcc version 6.3.0.

Its not perfect, as the output is not beautiful, but its
the easiest to implement. If anyone wants to improve on
this, be my guest! This patch is meant as improvement of
the status quo, not as perfect end status. It fixes the
actual issue of mispositioning error indicators.

[1]: https://github.com/rust-lang/rust/issues/38384#issuecomment-326813710
</content>
</entry>
<entry>
<title>Remove unused code from librustc_errors</title>
<updated>2017-07-07T01:49:32+00:00</updated>
<author>
<name>Kevin Mehall</name>
<email>km@kevinmehall.net</email>
</author>
<published>2017-07-02T20:46:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=17bd76a5169df158a750fdf63cf35b3fbd33c28e'/>
<id>urn:sha1:17bd76a5169df158a750fdf63cf35b3fbd33c28e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>run rustfmt on librustc_errors folder</title>
<updated>2016-10-18T17:43:02+00:00</updated>
<author>
<name>Srinivas Reddy Thatiparthy</name>
<email>thatiparthysreenivas@gmail.com</email>
</author>
<published>2016-10-18T17:43:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b2606173450b7842a59b23f8167eb6832d9c3305'/>
<id>urn:sha1:b2606173450b7842a59b23f8167eb6832d9c3305</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add fix for tabs. Move error unit tests-&gt;ui tests</title>
<updated>2016-07-14T11:57:46+00:00</updated>
<author>
<name>Jonathan Turner</name>
<email>jturner@mozilla.com</email>
</author>
<published>2016-07-13T21:53:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1fd014a9654e11ae1bc7c0793c6b01b157d825cd'/>
<id>urn:sha1:1fd014a9654e11ae1bc7c0793c6b01b157d825cd</id>
<content type='text'>
</content>
</entry>
</feed>
