<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_errors/src, branch 1.85.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.85.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.85.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-12-31T01:56:33+00:00</updated>
<entry>
<title>Convert some Into impls into From impls</title>
<updated>2024-12-31T01:56:33+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-12-31T01:56:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aea2a6f8361c95d60cc8e2757ca473f6915902a9'/>
<id>urn:sha1:aea2a6f8361c95d60cc8e2757ca473f6915902a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Account for removal of multiline span in suggestion</title>
<updated>2024-12-26T17:41:43+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-12-22T20:20:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=12d66d95069ef79bdc4fa3a3de388718a8644a0b'/>
<id>urn:sha1:12d66d95069ef79bdc4fa3a3de388718a8644a0b</id>
<content type='text'>
When highlighting the removed parts of a suggestion, properly account for spans that cover more than one line.

Fix #134485.
</content>
</entry>
<entry>
<title>Rollup merge of #134366 - harrisonkaiser:no-break-space, r=davidtwco</title>
<updated>2024-12-20T13:46:59+00:00</updated>
<author>
<name>DianQK</name>
<email>dianqk@dianqk.net</email>
</author>
<published>2024-12-20T13:46:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1652e3a56073b81f4c990f9c560dbbbab288d4ef'/>
<id>urn:sha1:1652e3a56073b81f4c990f9c560dbbbab288d4ef</id>
<content type='text'>
Fix logical error with what text is considered whitespace.

There appears to be a logical issue around what counts as leading white-space. There is code which does a subtraction assuming that no errors will be reported inside the leading whitespace. However we compute the length of that whitespace with std::char::is_whitespace and not rustc_lexer::is_whitespace. The former will include a no-break space while later will excluded it. We can only safely make the assumption that no errors will be reported  in whitespace if it is all "Rust Standard" whitespace. Indeed an error does occur in unicode whitespace if it contains a no-break space. In that case the subtraction will cause a ICE (for a compiler in debug mode) as described in https://github.com/rust-lang/rust/issues/132918.
</content>
</entry>
<entry>
<title>chore: fix some typos</title>
<updated>2024-12-18T15:23:44+00:00</updated>
<author>
<name>acceptacross</name>
<email>csqcqs@gmail.com</email>
</author>
<published>2024-12-18T15:23:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6734a04c0a6aff674011c9b4cb1c89cba2636c4d'/>
<id>urn:sha1:6734a04c0a6aff674011c9b4cb1c89cba2636c4d</id>
<content type='text'>
Signed-off-by: acceptacross &lt;csqcqs@gmail.com&gt;
</content>
</entry>
<entry>
<title>Auto merge of #134243 - nnethercote:re-export-more-rustc_span, r=jieyouxu</title>
<updated>2024-12-18T02:56:38+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-12-18T02:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a89ca2c85e61d03c6e41be89508ed3d012f916f8'/>
<id>urn:sha1:a89ca2c85e61d03c6e41be89508ed3d012f916f8</id>
<content type='text'>
Re-export more `rustc_span::symbol` things from `rustc_span`.

`rustc_span::symbol` defines some things that are re-exported from `rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some closely related things such as `Ident` and `kw`. So you can do `use rustc_span::{Symbol, sym}` but you have to do `use rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good reason.

This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`, and changes many `rustc_span::symbol::` qualifiers to `rustc_span::`. This is a 300+ net line of code reduction, mostly because many files with two `use rustc_span` items can be reduced to one.

r? `@jieyouxu`
</content>
</entry>
<entry>
<title>Re-export more `rustc_span::symbol` things from `rustc_span`.</title>
<updated>2024-12-18T02:38:53+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-12-12T23:29:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2620eb42d72d24baa1ca1056a769862b92c85f7f'/>
<id>urn:sha1:2620eb42d72d24baa1ca1056a769862b92c85f7f</id>
<content type='text'>
`rustc_span::symbol` defines some things that are re-exported from
`rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some
closely related things such as `Ident` and `kw`. So you can do `use
rustc_span::{Symbol, sym}` but you have to do `use
rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good
reason.

This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`,
and changes many `rustc_span::symbol::` qualifiers in `compiler/` to
`rustc_span::`. This is a 200+ net line of code reduction, mostly
because many files with two `use rustc_span` items can be reduced to
one.
</content>
</entry>
<entry>
<title>Fix logical error with what text is considered whitespace.</title>
<updated>2024-12-17T04:34:46+00:00</updated>
<author>
<name>Harrison Kaiser</name>
<email>uwaces@gmail.com</email>
</author>
<published>2024-12-16T01:06:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1e33dd17115ca948c6e5ebf319695ed64490b2bf'/>
<id>urn:sha1:1e33dd17115ca948c6e5ebf319695ed64490b2bf</id>
<content type='text'>
There is a logical issue around what counts as leading white-space.
There is code which does a subtraction assuming that no errors will be reported
inside the leading whitespace. However we compute the length of
that whitespace with std::char::is_whitespace and not
rustc_lexer::is_whitespace. The former will include a no-break space while
later will excluded it. We can only safely make the assumption that no errors
will be reported  in whitespace if it is all "Rust Standard" whitespace.
Indeed an error does occur in unicode whitespace if it contains a no-break
space.
</content>
</entry>
<entry>
<title>update uses of extract_if in the compiler</title>
<updated>2024-12-16T21:06:52+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2024-11-20T22:45:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fe521506a61c9ec437213882dc7b80203b81c341'/>
<id>urn:sha1:fe521506a61c9ec437213882dc7b80203b81c341</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #134181 - estebank:trim-render, r=oli-obk</title>
<updated>2024-12-14T02:54:31+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-12-14T02:54:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2846699366ac9eac997c037a8552b994daddf8bf'/>
<id>urn:sha1:2846699366ac9eac997c037a8552b994daddf8bf</id>
<content type='text'>
Tweak multispan rendering to reduce output length

Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments. We do that check not only on the first 4 lines of the multispan, but now also on the previous to last line as well.
</content>
</entry>
<entry>
<title>Account for `///` when rendering multiline spans</title>
<updated>2024-12-13T18:48:33+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-12-13T18:18:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9f1044ef76de2ae88ac5c38a27b2bd49f5507d94'/>
<id>urn:sha1:9f1044ef76de2ae88ac5c38a27b2bd49f5507d94</id>
<content type='text'>
Don't consider `///` and `//!` docstrings to be empty for the purposes of multiline span rendering.
</content>
</entry>
</feed>
