<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_mir_dataflow/src/move_paths, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-02-22T22:24:52+00:00</updated>
<entry>
<title>Greatly simplify lifetime captures in edition 2024</title>
<updated>2025-02-22T22:24:52+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-20T18:58:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=12e3911d81034864314503b9c2d9fba2773c7904'/>
<id>urn:sha1:12e3911d81034864314503b9c2d9fba2773c7904</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `rustc_middle::mir::tcx` module.</title>
<updated>2025-02-18T23:26:05+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-02-18T06:48:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5d1551b9c6ebaded328d2f10deb92f7a87cf928c'/>
<id>urn:sha1:5d1551b9c6ebaded328d2f10deb92f7a87cf928c</id>
<content type='text'>
This is a really weird module. For example, what does `tcx` in
`rustc_middle::mir::tcx::PlaceTy` mean? The answer is "not much".

The top-level module comment says:

&gt; Methods for the various MIR types. These are intended for use after
&gt; building is complete.

Awfully broad for a module that has a handful of impl blocks for some
MIR types, none of which really relates to `TyCtxt`. `git blame`
indicates the comment is ancient, from 2015, and made sense then.

This module is now vestigial. This commit removes it and moves all the
code within into `rustc_middle::mir::statement`. Some specifics:

- `Place`, `PlaceRef`, `Rvalue`, `Operand`, `BorrowKind`: they all have `impl`
  blocks in both the `tcx` and `statement` modules. The commit merges
  the former into the latter.

- `BinOp`, `UnOp`: they only have `impl` blocks in `tcx`. The commit
  moves these into `statement`.

- `PlaceTy`, `RvalueInitializationState`: they are defined in `tcx`.
  This commit moves them into `statement` *and* makes them available in
  `mir::*`, like many other MIR types.
</content>
</entry>
<entry>
<title>Contracts core intrinsics.</title>
<updated>2025-02-03T20:53:57+00:00</updated>
<author>
<name>Felix S. Klock II</name>
<email>pnkfelix@pnkfx.org</email>
</author>
<published>2024-12-02T20:35:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bcb8565f301b579dee60fffe87d5a329cc69fefa'/>
<id>urn:sha1:bcb8565f301b579dee60fffe87d5a329cc69fefa</id>
<content type='text'>
These are hooks to:

  1. control whether contract checks are run
  2. allow 3rd party tools to intercept and reintepret the results of running contracts.
</content>
</entry>
<entry>
<title>Implement MIR, CTFE, and codegen for unsafe binders</title>
<updated>2025-01-31T17:19:53+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-01-31T01:24:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fc1a9186dcdad111fd99ddd38bd961a8a205c380'/>
<id>urn:sha1:fc1a9186dcdad111fd99ddd38bd961a8a205c380</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "Auto merge of #134330 - scottmcm:no-more-rvalue-len, r=matthewjasper"</title>
<updated>2025-01-18T22:09:34+00:00</updated>
<author>
<name>Rémy Rakic</name>
<email>remy.rakic+github@gmail.com</email>
</author>
<published>2025-01-18T22:08:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ca1c17c88d1f625763859396ba7a50f36ac45cc0'/>
<id>urn:sha1:ca1c17c88d1f625763859396ba7a50f36ac45cc0</id>
<content type='text'>
This reverts commit e108481f74ff123ad98a63bd107a18d13035b275, reversing
changes made to 303e8bd768526a5812bb1776e798e829ddb7d3ca.
</content>
</entry>
<entry>
<title>Auto merge of #134625 - compiler-errors:unsafe-binders-ty, r=oli-obk</title>
<updated>2024-12-24T00:51:51+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-12-24T00:51:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f3343420c813a3dad6746e274137ba51bf97f063'/>
<id>urn:sha1:f3343420c813a3dad6746e274137ba51bf97f063</id>
<content type='text'>
Begin to implement type system layer of unsafe binders

Mostly TODOs, but there's a lot of match arms that are basically just noops so I wanted to split these out before I put up the MIR lowering/projection part of this logic.

r? oli-obk

Tracking:

- https://github.com/rust-lang/rust/issues/130516
</content>
</entry>
<entry>
<title>Begin to implement type system layer of unsafe binders</title>
<updated>2024-12-22T21:57:57+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-12-21T17:05:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9a1c5eb5b385adb3cd04af0049cbf5c225cefdc3'/>
<id>urn:sha1:9a1c5eb5b385adb3cd04af0049cbf5c225cefdc3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Delete `Rvalue::Len`</title>
<updated>2024-12-22T14:12:39+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2024-12-14T01:43:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5ba54c9e31696f3b0a5c59cae17cffdb0d340934'/>
<id>urn:sha1:5ba54c9e31696f3b0a5c59cae17cffdb0d340934</id>
<content type='text'>
Everything's moved to `PtrMetadata` instead.
</content>
</entry>
<entry>
<title>Simplify `rustc_mir_dataflow::abs_domain`.</title>
<updated>2024-12-10T23:45:47+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-12-08T22:45:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=67df7cbf31c89e0290c9c3a0deb814eb8068ab69'/>
<id>urn:sha1:67df7cbf31c89e0290c9c3a0deb814eb8068ab69</id>
<content type='text'>
`rustc_mir_dataflow` has a typedef `AbstractElem` that is equal to
`ProjectionElem&lt;AbstractOperand, AbstractType&gt;`. `AbstractOperand` and
`AbstractType` are both unit types. There is also has a trait `Lift` to
convert a `PlaceElem` to an `AbstractElem`.

But `rustc_mir_middle` already has a typedef `ProjectionKind` that is
equal to `ProjectionElem&lt;(), ()&gt;`, which is equivalent to
`AbstractElem`. So this commit reuses `ProjectionKind` in
`rustc_mir_dataflow`, removes `AbstractElem`, and simplifies the `Lift`
trait.
</content>
</entry>
<entry>
<title>reduce false positives of tail-expr-drop-order from consumed values</title>
<updated>2024-11-20T12:53:11+00:00</updated>
<author>
<name>Ding Xiang Fei</name>
<email>dingxiangfei2009@protonmail.ch</email>
</author>
<published>2024-09-01T17:13:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=297b618944d4619a1990b1992d9142c6cf893dc6'/>
<id>urn:sha1:297b618944d4619a1990b1992d9142c6cf893dc6</id>
<content type='text'>
take 2

open up coroutines

tweak the wordings

the lint works up until 2021

We were missing one case, for ADTs, which was
causing `Result` to yield incorrect results.

only include field spans with significant types

deduplicate and eliminate field spans

switch to emit spans to impl Drops

Co-authored-by: Niko Matsakis &lt;nikomat@amazon.com&gt;

collect drops instead of taking liveness diff

apply some suggestions and add explantory notes

small fix on the cache

let the query recurse through coroutine

new suggestion format with extracted variable name

fine-tune the drop span and messages

bugfix on runtime borrows

tweak message wording

filter out ecosystem types earlier

apply suggestions

clippy

check lint level at session level

further restrict applicability of the lint

translate bid into nop for stable mir

detect cycle in type structure
</content>
</entry>
</feed>
