<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_codegen_ssa/src/assert_module_sources.rs, branch 1.89.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.89.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.89.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-03-11T21:55:37+00:00</updated>
<entry>
<title>Move methods from `Map` to `TyCtxt`, part 4.</title>
<updated>2025-03-11T21:55:37+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-02-21T07:33:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=256c27e748b477c1ec1c59bdc23afade5eec84aa'/>
<id>urn:sha1:256c27e748b477c1ec1c59bdc23afade5eec84aa</id>
<content type='text'>
Continuing the work from #137350.

Removes the unused methods: `expect_variant`, `expect_field`,
`expect_foreign_item`.

Every method gains a `hir_` prefix.
</content>
</entry>
<entry>
<title>Teach structured errors to display short `Ty`</title>
<updated>2025-02-25T16:56:03+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-02-18T01:15:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d12ecaed558426ec7998816d64b240ea685a2a8f'/>
<id>urn:sha1:d12ecaed558426ec7998816d64b240ea685a2a8f</id>
<content type='text'>
Make it so that every structured error annotated with `#[derive(Diagnostic)]` that has a field of type `Ty&lt;'_&gt;`, the printing of that value into a `String` will look at the thread-local storage `TyCtxt` in order to shorten to a length appropriate with the terminal width. When this happen, the resulting error will have a note with the file where the full type name was written to.

```
error[E0618]: expected function, found `((..., ..., ..., ...), ..., ..., ...)``
 --&gt; long.rs:7:5
  |
6 | fn foo(x: D) { //~ `x` has type `(...
  |        - `x` has type `((..., ..., ..., ...), ..., ..., ...)`
7 |     x(); //~ ERROR expected function, found `(...
  |     ^--
  |     |
  |     call expression requires function
  |
  = note: the full name for the type has been written to 'long.long-type-14182675702747116984.txt'
  = note: consider using `--verbose` to print the full type name to the console
```
</content>
</entry>
<entry>
<title>Change span field accesses to method calls</title>
<updated>2025-02-24T13:22:31+00:00</updated>
<author>
<name>Jana Dönszelmann</name>
<email>jana@donsz.nl</email>
</author>
<published>2025-02-09T21:49:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=115b3b03b09cf71aca67c974ea0d4888c86b3012'/>
<id>urn:sha1:115b3b03b09cf71aca67c974ea0d4888c86b3012</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change `collect_and_partition_mono_items` tuple return type to a struct</title>
<updated>2025-01-27T09:38:12+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-01-27T08:11:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b24f6745203fcf7e177f577444a0cdbae6411b41'/>
<id>urn:sha1:b24f6745203fcf7e177f577444a0cdbae6411b41</id>
<content type='text'>
</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>Add hir::Attribute</title>
<updated>2024-12-15T18:18:46+00:00</updated>
<author>
<name>Jonathan Dönszelmann</name>
<email>jonathan@donsz.nl</email>
</author>
<published>2024-10-16T23:14:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d50c0a5480257cbac33b312cb633777f3d2b2483'/>
<id>urn:sha1:d50c0a5480257cbac33b312cb633777f3d2b2483</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>Remove `#[macro_use] extern crate tracing` from `rustc_codegen_ssa`.</title>
<updated>2024-05-23T08:02:40+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-05-22T05:08:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8ae0694fcb5887958580145f051bce852f4c8c50'/>
<id>urn:sha1:8ae0694fcb5887958580145f051bce852f4c8c50</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename `IntoDiagnosticArg` as `IntoDiagArg`.</title>
<updated>2024-03-10T22:12:19+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-03-05T05:53:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a09b1d33a703d4ed412e70d3197e73ba7e0937f9'/>
<id>urn:sha1:a09b1d33a703d4ed412e70d3197e73ba7e0937f9</id>
<content type='text'>
Also rename `into_diagnostic_arg` as `into_diag_arg`, and
`NotIntoDiagnosticArg` as `NotInotDiagArg`.
</content>
</entry>
<entry>
<title>Rename all `ParseSess` variables/fields/lifetimes as `psess`.</title>
<updated>2024-03-04T21:11:45+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-03-04T05:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=80d2bdb6191609c8a3940a1a7959ac1ac16e8ed6'/>
<id>urn:sha1:80d2bdb6191609c8a3940a1a7959ac1ac16e8ed6</id>
<content type='text'>
Existing names for values of this type are `sess`, `parse_sess`,
`parse_session`, and `ps`. `sess` is particularly annoying because
that's also used for `Session` values, which are often co-located, and
it can be difficult to know which type a value named `sess` refers to.
(That annoyance is the main motivation for this change.) `psess` is nice
and short, which is good for a name used this much.

The commit also renames some `parse_sess_created` values as
`psess_created`.
</content>
</entry>
</feed>
