<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_trait_selection/src/traits, 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-08-31T12:46:11+00:00</updated>
<entry>
<title>Rollup merge of #129767 - nnethercote:rm-extern-crate-tracing-4, r=jieyouxu</title>
<updated>2024-08-31T12:46:11+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-08-31T12:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7d025bb63d2f2c2a69cd23bb4befa46a8753f498'/>
<id>urn:sha1:7d025bb63d2f2c2a69cd23bb4befa46a8753f498</id>
<content type='text'>
Remove `#[macro_use] extern crate tracing`, round 4

Because explicit importing of macros via use items is nicer (more standard and readable) than implicit importing via #[macro_use]. Continuing the work from #124511, #124914, and #125434. After this PR no `rustc_*` crates use `#[macro_use] extern crate tracing` except for `rustc_codegen_gcc` which is a special case and I will do separately.

r? ```@jieyouxu```
</content>
</entry>
<entry>
<title>Rollup merge of #129725 - compiler-errors:predicates-of, r=fmease</title>
<updated>2024-08-31T08:08:57+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-08-31T08:08:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5f10a99c7a0186994059f05a580e26070168ed58'/>
<id>urn:sha1:5f10a99c7a0186994059f05a580e26070168ed58</id>
<content type='text'>
Stop using `ty::GenericPredicates` for non-predicates_of queries

`GenericPredicates` is a struct of several parts: A list of of an item's own predicates, and a parent def id (and some effects related stuff, but ignore that since it's kinda irrelevant). When instantiating these generic predicates, it calls `predicates_of` on the parent and instantiates its predicates, and appends the item's own instantiated predicates too:

https://github.com/rust-lang/rust/blob/acb4e8b6251f1d8da36f08e7a70fa23fc581839e/compiler/rustc_middle/src/ty/generics.rs#L407-L413

Notice how this should result in a recursive set of calls to `predicates_of`... However, `GenericPredicates` is *also* misused by a bunch of *other* queries as a convenient way of passing around a list of predicates. For these queries, we don't ever set the parent def id of the `GenericPredicates`, but if we did, then this would be very easy to mistakenly call `predicates_of` instead of some other intended parent query.

Given that footgun, and the fact that we don't ever even *use* the parent def id in the `GenericPredicates` returned from queries like `explicit_super_predicates_of`, It really has no benefit over just returning `&amp;'tcx [(Clause&lt;'tcx&gt;, Span)]`.

This PR additionally opts to wrap the results of `EarlyBinder`, as we've tended to use that in the return type of these kinds of queries to properly convey that the user has params to deal with, and it also gives a convenient way of iterating over a slice of things after instantiating.
</content>
</entry>
<entry>
<title>Remove `#[macro_use] extern crate tracing` from `rustc_trait_selection`.</title>
<updated>2024-08-30T07:14:59+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-08-29T23:20:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4b3fa8e9f07071e4bc983f84f803179418352278'/>
<id>urn:sha1:4b3fa8e9f07071e4bc983f84f803179418352278</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stop using ty::GenericPredicates for non-predicates_of queries</title>
<updated>2024-08-29T04:17:40+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-08-29T04:17:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=92004523dbcb0336d2f752cd30c300ae6d8df8b9'/>
<id>urn:sha1:92004523dbcb0336d2f752cd30c300ae6d8df8b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement RFC 3525.</title>
<updated>2024-08-28T07:54:23+00:00</updated>
<author>
<name>Luca Versari</name>
<email>veluca@google.com</email>
</author>
<published>2024-06-24T15:17:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7eb4cfeaced28d49952e4ef54f8fe02258125854'/>
<id>urn:sha1:7eb4cfeaced28d49952e4ef54f8fe02258125854</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify some redundant field names</title>
<updated>2024-08-21T05:31:42+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-08-21T05:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b2525c787454fa9afabd7bb8d60782af03fee5f'/>
<id>urn:sha1:0b2525c787454fa9afabd7bb8d60782af03fee5f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #129217 - jswrenn:transmute-lifetimes, r=compiler-errors</title>
<updated>2024-08-19T18:14:56+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-08-19T18:14:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5cb30b7e9d0308f47d65ae1ca311c0ddc931141d'/>
<id>urn:sha1:5cb30b7e9d0308f47d65ae1ca311c0ddc931141d</id>
<content type='text'>
safe transmute: check lifetimes

Modifies `BikeshedIntrinsicFrom` to forbid lifetime extensions on references. This static check can be opted out of with the `Assume::lifetimes` flag.

Fixes #129097

Tracking Issue: https://github.com/rust-lang/rust/issues/99571

 r​? `@compiler-errors`
</content>
</entry>
<entry>
<title>safe transmute: forbid reference lifetime extension</title>
<updated>2024-08-18T18:31:06+00:00</updated>
<author>
<name>Jack Wrenn</name>
<email>jack@wrenn.fyi</email>
</author>
<published>2024-08-14T20:10:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=17995d5cc2e75b65b8bd6b77ad30b0c764500c0c'/>
<id>urn:sha1:17995d5cc2e75b65b8bd6b77ad30b0c764500c0c</id>
<content type='text'>
Modifies `BikeshedIntrinsicFrom` to forbid lifetime extensions on
references. This static check can be opted out of with the
`Assume::lifetimes` flag.

Fixes #129097
</content>
</entry>
<entry>
<title>Fix order of normalization and recursion in const folding.</title>
<updated>2024-08-17T22:07:41+00:00</updated>
<author>
<name>Luca Versari</name>
<email>veluca93@gmail.com</email>
</author>
<published>2024-08-17T18:45:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7fd62320feddcb3fa85a3ab25bc4c0ac55ddac7c'/>
<id>urn:sha1:7fd62320feddcb3fa85a3ab25bc4c0ac55ddac7c</id>
<content type='text'>
Fixes #126831.

Without this patch, type normalization is not always idempotent, which
leads to all sorts of bugs in places that assume that normalizing a
normalized type does nothing.
</content>
</entry>
<entry>
<title>Rollup merge of #129078 - lcnr:scrape_region_constraints-use-ocx, r=compiler-errors</title>
<updated>2024-08-16T01:44:18+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2024-08-16T01:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4f46643698cf59a0f47ea70de2784db35b0e7f80'/>
<id>urn:sha1:4f46643698cf59a0f47ea70de2784db35b0e7f80</id>
<content type='text'>
`ParamEnvAnd::fully_perform`: we have an `ocx`, use it

cc #123669

r? ``@compiler-errors``
</content>
</entry>
</feed>
