<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_span/src/source_map, branch 1.82.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.82.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.82.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-07-18T20:08:38+00:00</updated>
<entry>
<title>Be more accurate about calculating `display_col` from a `BytePos`</title>
<updated>2024-07-18T20:08:38+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-09T17:00:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2d7795dfb942d49d447837ef43db89216de15696'/>
<id>urn:sha1:2d7795dfb942d49d447837ef43db89216de15696</id>
<content type='text'>
No longer track "zero-width" chars in `SourceMap`, read directly from the line when calculating the `display_col` of a `BytePos`. Move `char_width` to `rustc_span` and use it from the emitter.

This change allows the following to properly align in terminals (depending on the font, the replaced control codepoints are rendered as 1 or 2 width, on my terminal they are rendered as 1, on VSCode text they are rendered as 2):

```
error: this file contains an unclosed delimiter
  --&gt; $DIR/issue-68629.rs:5:17
   |
LL | ␜␟ts␀![{i
   |       -- unclosed delimiter
   |       |
   |       unclosed delimiter
LL | ␀␀  fn rݻoa&gt;rݻm
   |                ^
```
</content>
</entry>
<entry>
<title>rustc_index: Add a `ZERO` constant to index types</title>
<updated>2024-04-03T16:06:22+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2024-04-03T14:49:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b40ea03f8a9a94c294679b9f261b86ded120454f'/>
<id>urn:sha1:b40ea03f8a9a94c294679b9f261b86ded120454f</id>
<content type='text'>
It is commonly used.
</content>
</entry>
<entry>
<title>By tracking import use types to check whether it is scope uses or the other situations like module-relative uses, we can do more accurate redundant import checking.</title>
<updated>2024-02-18T08:38:11+00:00</updated>
<author>
<name>surechen</name>
<email>chenshuo17@huawei.com</email>
</author>
<published>2023-11-10T02:11:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a61126cef6c4083d57e22835033eb2eefdd31bac'/>
<id>urn:sha1:a61126cef6c4083d57e22835033eb2eefdd31bac</id>
<content type='text'>
fixes #117448

For example unnecessary imports in std::prelude that can be eliminated:

```rust
use std::option::Option::Some;//~ WARNING the item `Some` is imported redundantly
use std::option::Option::None; //~ WARNING the item `None` is imported redundantly
```
</content>
</entry>
<entry>
<title>Update tests</title>
<updated>2024-02-07T02:42:01+00:00</updated>
<author>
<name>r0cky</name>
<email>mu001999@outlook.com</email>
</author>
<published>2024-02-07T02:42:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c7519d42c2664828c98fdb98acab73e9a39b0b97'/>
<id>urn:sha1:c7519d42c2664828c98fdb98acab73e9a39b0b97</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_span: Optimize syntax context comparisons</title>
<updated>2024-01-05T22:25:20+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2024-01-02T20:32:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=90d11d64486bc758ee15a1dd5dba351447648097'/>
<id>urn:sha1:90d11d64486bc758ee15a1dd5dba351447648097</id>
<content type='text'>
Including comparisons with root context
</content>
</entry>
<entry>
<title>Unify SourceFile::name_hash and StableSourceFileId</title>
<updated>2023-12-19T21:34:26+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2023-12-19T21:34:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fa8ef253720446959a7bab4593c62a1819563cbc'/>
<id>urn:sha1:fa8ef253720446959a7bab4593c62a1819563cbc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove redundant imports</title>
<updated>2023-12-10T02:56:22+00:00</updated>
<author>
<name>surechen</name>
<email>chenshuo17@huawei.com</email>
</author>
<published>2023-11-10T02:11:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=40ae34194c586eea3614d3216322053d2e8e7b37'/>
<id>urn:sha1:40ae34194c586eea3614d3216322053d2e8e7b37</id>
<content type='text'>
detects redundant imports that can be eliminated.

for #117772 :

In order to facilitate review and modification, split the checking code and
removing redundant imports code into two PR.
</content>
</entry>
<entry>
<title>[RFC 3127 - Trim Paths]: Condition remapped filepath on remap scopes</title>
<updated>2023-10-17T08:11:30+00:00</updated>
<author>
<name>Urgau</name>
<email>urgau@numericable.fr</email>
</author>
<published>2023-08-23T13:46:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eccc9e66287d5fd141e458ae3ab25ac96a567972'/>
<id>urn:sha1:eccc9e66287d5fd141e458ae3ab25ac96a567972</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add unit tests based on files that return odd sizes to stat</title>
<updated>2023-09-21T01:01:13+00:00</updated>
<author>
<name>Ben Kimock</name>
<email>kimockb@gmail.com</email>
</author>
<published>2023-09-20T23:26:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5f33647fb392c2d4f71af94a223bc1a9abb80643'/>
<id>urn:sha1:5f33647fb392c2d4f71af94a223bc1a9abb80643</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `Freeze` for `SourceFile.lines`</title>
<updated>2023-09-07T11:05:05+00:00</updated>
<author>
<name>John Kåre Alsaker</name>
<email>john.kare.alsaker@gmail.com</email>
</author>
<published>2023-08-31T20:12:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f49382c0508db608aa9c33d6a8c77d2955d8f62c'/>
<id>urn:sha1:f49382c0508db608aa9c33d6a8c77d2955d8f62c</id>
<content type='text'>
</content>
</entry>
</feed>
