<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_session/src/session.rs, branch 1.84.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.84.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.84.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-11-15T09:35:33+00:00</updated>
<entry>
<title>rustc_metadata: Preprocess search paths for better performance</title>
<updated>2024-11-15T09:35:33+00:00</updated>
<author>
<name>Piotr Osiewicz</name>
<email>24362066+osiewicz@users.noreply.github.com</email>
</author>
<published>2024-11-11T17:34:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42e71bb8ea2bf59fb33cf3f83a3dcf34e314f520'/>
<id>urn:sha1:42e71bb8ea2bf59fb33cf3f83a3dcf34e314f520</id>
<content type='text'>
Over in Zed we've noticed that loading crates for a large-ish workspace can take almost 200ms. We've pinned it down to how rustc searches for paths, as it performs a linear search over the list of candidate paths. In our case the candidate list had about 20k entries which we had to iterate over for each dependency being loaded.

This commit introduces a simple FilesIndex that's just a sorted Vec under the hood. Since crates are looked up by both prefix and suffix, we perform a range search on said Vec (which constraints the search space based on prefix) and follow up with a linear scan of entries with matching suffixes.
FilesIndex is also pre-filtered before any queries are performed using available target information; query prefixes/sufixes are based on the target we are compiling for, so we can remove entries that can never match up front.

Overall, this commit brings down build time for us in dev scenarios by about 6%.
100ms might not seem like much, but this is a constant cost that each of our workspace crates has to pay, even when said crate is miniscule.
</content>
</entry>
<entry>
<title>Auto merge of #126597 - estebank:unicode-output, r=fmease</title>
<updated>2024-11-11T00:00:58+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-11-11T00:00:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42b24963202f31d417a972e56e48a17e916b279b'/>
<id>urn:sha1:42b24963202f31d417a972e56e48a17e916b279b</id>
<content type='text'>
Add Unicode block-drawing compiler output support

Add nightly-only theming support to rustc output using Unicode box
drawing characters instead of ASCII-art to draw the terminal UI.

In order to enable, the flags `-Zunstable-options=yes --error-format=human-unicode` must be passed in.

After:

```
error: foo
  ╭▸ test.rs:3:3
  │
3 │       X0 Y0 Z0
  │   ┌───╿──│──┘
  │  ┌│───│──┘
  │ ┏││━━━┙
  │ ┃││
4 │ ┃││   X1 Y1 Z1
5 │ ┃││   X2 Y2 Z2
  │ ┃│└────╿──│──┘ `Z` label
  │ ┃└─────│──┤
  │ ┗━━━━━━┥  `Y` is a good letter too
  │        `X` is a good letter
  ╰╴
note: bar
  ╭▸ test.rs:4:3
  │
4 │ ┏   X1 Y1 Z1
5 │ ┃   X2 Y2 Z2
6 │ ┃   X3 Y3 Z3
  │ ┗━━━━━━━━━━┛
  ├ note: bar
  ╰ note: baz
note: qux
  ╭▸ test.rs:4:3
  │
4 │   X1 Y1 Z1
  ╰╴  ━━━━━━━━
```

Before:

```
error: foo
 --&gt; test.rs:3:3
  |
3 |       X0 Y0 Z0
  |    ___^__-__-
  |   |___|__|
  |  ||___|
  | |||
4 | |||   X1 Y1 Z1
5 | |||   X2 Y2 Z2
  | |||____^__-__- `Z` label
  | ||_____|__|
  | |______|  `Y` is a good letter too
  |        `X` is a good letter
  |
note: bar
 --&gt; test.rs:4:3
  |
4 | /   X1 Y1 Z1
5 | |   X2 Y2 Z2
6 | |   X3 Y3 Z3
  | |__________^
  = note: bar
  = note: baz
note: qux
 --&gt; test.rs:4:3
  |
4 |   X1 Y1 Z1
  |   ^^^^^^^^
```

After:

![rustc output with unicode box drawing characters](https://github.com/rust-lang/rust/assets/1606434/d210b79a-6579-4407-9706-ba8edc6e9f25)

Before:
![current rustc output with ASCII art](https://github.com/rust-lang/rust/assets/1606434/5aecccf8-a6ee-4469-8b39-72fb0d979a9f)
</content>
</entry>
<entry>
<title>Add Unicode block-drawing compiler output support</title>
<updated>2024-11-10T22:57:18+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-06-17T15:14:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1d78004575bea3b958b199d50a8491ae3fd65679'/>
<id>urn:sha1:1d78004575bea3b958b199d50a8491ae3fd65679</id>
<content type='text'>
Add nightly-only theming support to rustc output using Unicode box
drawing characters instead of ASCII-art to draw the terminal UI:

After:

```
error: foo
  ╭▸ test.rs:3:3
  │
3 │       X0 Y0 Z0
  │   ┌───╿──│──┘
  │  ┌│───│──┘
  │ ┏││━━━┙
  │ ┃││
4 │ ┃││   X1 Y1 Z1
5 │ ┃││   X2 Y2 Z2
  │ ┃│└────╿──│──┘ `Z` label
  │ ┃└─────│──┤
  │ ┗━━━━━━┥  `Y` is a good letter too
  │        `X` is a good letter
  ╰╴
note: bar
  ╭▸ test.rs:4:3
  │
4 │ ┏   X1 Y1 Z1
5 │ ┃   X2 Y2 Z2
6 │ ┃   X3 Y3 Z3
  │ ┗━━━━━━━━━━┛
  ├ note: bar
  ╰ note: baz
note: qux
  ╭▸ test.rs:4:3
  │
4 │   X1 Y1 Z1
  ╰╴  ━━━━━━━━
```

Before:

```
error: foo
 --&gt; test.rs:3:3
  |
3 |       X0 Y0 Z0
  |    ___^__-__-
  |   |___|__|
  |  ||___|
  | |||
4 | |||   X1 Y1 Z1
5 | |||   X2 Y2 Z2
  | |||____^__-__- `Z` label
  | ||_____|__|
  | |______|  `Y` is a good letter too
  |        `X` is a good letter
  |
note: bar
 --&gt; test.rs:4:3
  |
4 | /   X1 Y1 Z1
5 | |   X2 Y2 Z2
6 | |   X3 Y3 Z3
  | |__________^
  = note: bar
  = note: baz
note: qux
 --&gt; test.rs:4:3
  |
4 |   X1 Y1 Z1
  |   ^^^^^^^^
```
</content>
</entry>
<entry>
<title>give a hint which feature is missing</title>
<updated>2024-11-09T22:32:06+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2024-11-09T22:32:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f235b6f9c6788e213b6365103cfa9c6c798fe659'/>
<id>urn:sha1:f235b6f9c6788e213b6365103cfa9c6c798fe659</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename target triple to target tuple in many places in the compiler</title>
<updated>2024-11-02T20:29:59+00:00</updated>
<author>
<name>Noratrieb</name>
<email>48135649+Noratrieb@users.noreply.github.com</email>
</author>
<published>2024-10-17T17:02:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a26450cf81d67d68d3c6157579f8d968349129e7'/>
<id>urn:sha1:a26450cf81d67d68d3c6157579f8d968349129e7</id>
<content type='text'>
This changes the naming to the new naming, used by `--print
target-tuple`.
It does not change all locations, but many.
</content>
</entry>
<entry>
<title>fix clippy::clone_on_ref_ptr for compiler</title>
<updated>2024-10-28T15:05:08+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2024-10-07T19:22:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=746b675c5aabc7a61443f16a37223720657544d2'/>
<id>urn:sha1:746b675c5aabc7a61443f16a37223720657544d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rust_for_linux: -Zregparm=&lt;N&gt; commandline flag for X86 (#116972)</title>
<updated>2024-10-17T17:29:31+00:00</updated>
<author>
<name>Andrew Zhogin</name>
<email>andrew.zhogin@gmail.com</email>
</author>
<published>2024-09-16T15:14:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b3ae64d24fc323365bd09fe6ac8b7438f5713078'/>
<id>urn:sha1:b3ae64d24fc323365bd09fe6ac8b7438f5713078</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid redundant additions to PATH when linking</title>
<updated>2024-10-10T09:46:11+00:00</updated>
<author>
<name>Mads Marquart</name>
<email>mads@marquart.dk</email>
</author>
<published>2024-10-10T09:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1edff466e19c4e2e2f8035de5a25d8a2dc2fef96'/>
<id>urn:sha1:1edff466e19c4e2e2f8035de5a25d8a2dc2fef96</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace -Z default-hidden-visibility with -Z default-visibility</title>
<updated>2024-10-01T12:32:13+00:00</updated>
<author>
<name>David Lattimore</name>
<email>dvdlttmr@gmail.com</email>
</author>
<published>2024-09-30T22:55:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f48194ea5578802c786edff59dd72388da0e6305'/>
<id>urn:sha1:f48194ea5578802c786edff59dd72388da0e6305</id>
<content type='text'>
MCP: https://github.com/rust-lang/compiler-team/issues/782

Co-authored-by: bjorn3 &lt;17426603+bjorn3@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
</feed>
