<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_borrowck/src/polonius, 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-07-06T08:03:23+00:00</updated>
<entry>
<title>Rollup merge of #143477 - folkertdev:use-is-multiple-of, r=joshtriplett</title>
<updated>2025-07-06T08:03:23+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-07-06T08:03:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6fb00b1514174f215b09afbc574f15f196eb556a'/>
<id>urn:sha1:6fb00b1514174f215b09afbc574f15f196eb556a</id>
<content type='text'>
use `is_multiple_of` and `div_ceil`

In tricky logic, these functions are much more informative than the manual implementations. They also catch subtle bugs:

- the manual `is_multiple_of` often does not handle division by zero
- manual `div_ceil` often does not consider overflow

The transformation is free for `is_multiple_of` if the divisor is compile-time known to be non-zero. For `div_ceil` there is a small cost to considering overflow. Here is some assembly https://godbolt.org/z/5zP8KaE1d.
</content>
</entry>
<entry>
<title>use `is_multiple_of` instead of manual modulo</title>
<updated>2025-07-05T08:55:35+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-07-05T06:26:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=226b0fbe11812c71c8002b10a40063571cf52b3f'/>
<id>urn:sha1:226b0fbe11812c71c8002b10a40063571cf52b3f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove Symbol for Named LateParam/Bound variants</title>
<updated>2025-07-04T18:14:22+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-04-11T04:17:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42c9bfd2b96f2e6cd0e4e6fab21c2d5499883089'/>
<id>urn:sha1:42c9bfd2b96f2e6cd0e4e6fab21c2d5499883089</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use an enum for SCC representatives, plus other code review</title>
<updated>2025-06-04T11:26:08+00:00</updated>
<author>
<name>Amanda Stjerna</name>
<email>amanda.stjerna@it.uu.se</email>
</author>
<published>2025-05-02T08:50:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f455c4fc39bcc04d104bc440ebc1c23f183f20f9'/>
<id>urn:sha1:f455c4fc39bcc04d104bc440ebc1c23f183f20f9</id>
<content type='text'>
Co-authored-by: lcnr &lt;rust@lcnr.de&gt;
</content>
</entry>
<entry>
<title>Move placeholder handling to a proper preprocessing step</title>
<updated>2025-06-03T10:20:15+00:00</updated>
<author>
<name>Amanda Stjerna</name>
<email>amanda.stjerna@it.uu.se</email>
</author>
<published>2025-04-29T15:12:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aca36fd12a3277ce17eb94e4e89567843bf137f7'/>
<id>urn:sha1:aca36fd12a3277ce17eb94e4e89567843bf137f7</id>
<content type='text'>
This commit breaks out the logic of placheolder rewriting
into its own preprocessing step.

The only functional change from this is that the preprocessing
step (where extra `r: 'static` constraints are added) is
performed upstream of Polonius legacy, finally affecting
Polonius. That is mostly a by-product, though.
</content>
</entry>
<entry>
<title>AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added.</title>
<updated>2025-04-28T09:23:13+00:00</updated>
<author>
<name>Andrew Zhogin</name>
<email>andrew.zhogin@gmail.com</email>
</author>
<published>2024-08-26T13:45:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c366756a8537ef998d32c1ef57098d5aae7ca92f'/>
<id>urn:sha1:c366756a8537ef998d32c1ef57098d5aae7ca92f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>move `dump_polonius_mir`</title>
<updated>2025-04-11T10:12:34+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2025-04-11T09:24:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c65469c2751f11e93e3cc5a9b1dcf1856039196'/>
<id>urn:sha1:2c65469c2751f11e93e3cc5a9b1dcf1856039196</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #139536 - matthiaskrgr:rollup-j6goald, r=matthiaskrgr</title>
<updated>2025-04-08T22:51:10+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-04-08T22:51:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=de5b8a4c77618d8ae8e8ea0e4b787917c32e9305'/>
<id>urn:sha1:de5b8a4c77618d8ae8e8ea0e4b787917c32e9305</id>
<content type='text'>
Rollup of 7 pull requests

Successful merges:

 - #139476 (rm `RegionInferenceContext::var_infos`)
 - #139485 (compiletest: Stricter parsing for diagnostic kinds)
 - #139491 (Update books)
 - #139500 (document panic behavior of Vec::resize and Vec::resize_with)
 - #139501 (Fix stack overflow in exhaustiveness due to recursive HIR opaque hidden types)
 - #139504 (add missing word in doc comment)
 - #139509 (clean: remove Deref&lt;Target=RegionKind&gt; impl for Region and use `.kind()`)

r? `@ghost`
`@rustbot` modify labels: rollup
</content>
</entry>
<entry>
<title>move `ClosureRegionRequirements` to `rustc_borrowck`</title>
<updated>2025-04-07T22:34:40+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2025-04-02T12:05:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=474ec7a3f4da6bdedf2d967d72bc9c6282dfcbb2'/>
<id>urn:sha1:474ec7a3f4da6bdedf2d967d72bc9c6282dfcbb2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rm `RegionInferenceContext::var_infos`</title>
<updated>2025-04-07T10:19:35+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2025-04-07T10:18:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1862b311f67dce3d503a5d09dca249cace03967e'/>
<id>urn:sha1:1862b311f67dce3d503a5d09dca249cace03967e</id>
<content type='text'>
we already track this info in the `definitions` field
</content>
</entry>
</feed>
