<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_pattern_analysis/src/constructor.rs, branch cargo_update</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=cargo_update</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=cargo_update'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-27T23:01:39+00:00</updated>
<entry>
<title>In rustc_pattern_analysis, put `true` witnesses before `false` witnesses</title>
<updated>2025-07-27T23:01:39+00:00</updated>
<author>
<name>Chayim Refael Friedman</name>
<email>chayimfr@gmail.com</email>
</author>
<published>2025-07-27T21:01:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6bf3cbe39e09f4d9187a0b1f6a7bd45101f7aad8'/>
<id>urn:sha1:6bf3cbe39e09f4d9187a0b1f6a7bd45101f7aad8</id>
<content type='text'>
In rustc it doesn't really matter what the order of the witnesses is, but I'm planning to use the witnesses for implementing the "add missing match arms" assist in rust-analyzer, and there `true` before `false` is the natural order (like `Some` before `None`), and also what the current assist does.

The current order doesn't seem to be intentional; the code was created when bool ctors became their own thing, not just int ctors, but for integer, 0 before 1 is indeed the natural order.
</content>
</entry>
<entry>
<title>pattern_analysis: add option to get a full set of witnesses</title>
<updated>2025-07-20T16:27:30+00:00</updated>
<author>
<name>Nadrieril</name>
<email>nadrieril+git@gmail.com</email>
</author>
<published>2025-07-19T09:28:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2bb00741d463143a10e632bb118d4ed336dbb75f'/>
<id>urn:sha1:2bb00741d463143a10e632bb118d4ed336dbb75f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `#[loop_match]` for improved DFA codegen</title>
<updated>2025-06-23T18:43:04+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-02-18T13:16:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ba5556d239c11232dc8d95123ea70a2783019476'/>
<id>urn:sha1:ba5556d239c11232dc8d95123ea70a2783019476</id>
<content type='text'>
Co-authored-by: Folkert de Vries &lt;folkert@folkertdev.nl&gt;
</content>
</entry>
<entry>
<title>let deref patterns participate in usefulness/exhaustiveness</title>
<updated>2025-05-07T01:53:55+00:00</updated>
<author>
<name>dianne</name>
<email>diannes.gm@gmail.com</email>
</author>
<published>2025-04-17T09:33:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b41d8bde00930d80f07b7aa90cc0a8e6bd423413'/>
<id>urn:sha1:b41d8bde00930d80f07b7aa90cc0a8e6bd423413</id>
<content type='text'>
This does not yet handle the case of mixed deref patterns with normal
constructors; it'll ICE in `Constructor::is_covered_by`. That'll be
fixed in a later commit.
</content>
</entry>
<entry>
<title>rename `BitSet` to `DenseBitSet`</title>
<updated>2025-01-11T11:34:01+00:00</updated>
<author>
<name>Rémy Rakic</name>
<email>remy.rakic+github@gmail.com</email>
</author>
<published>2025-01-07T15:19:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a13354bea05968799a5be5521691322274fa6a9e'/>
<id>urn:sha1:a13354bea05968799a5be5521691322274fa6a9e</id>
<content type='text'>
This should make it clearer that this bitset is dense, with the
advantages and disadvantages that it entails.
</content>
</entry>
<entry>
<title>cleanup: don't clone types that are Copy</title>
<updated>2024-09-29T11:31:30+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-09-29T11:31:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=71cd918dc78c84d41bb89c2fc8effcfd000f4e3e'/>
<id>urn:sha1:71cd918dc78c84d41bb89c2fc8effcfd000f4e3e</id>
<content type='text'>
</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>
<entry>
<title>chore: Fix typos in 'compiler' (batch 2)</title>
<updated>2024-09-02T05:50:22+00:00</updated>
<author>
<name>Alexander Cyon</name>
<email>alex.cyon@gmail.com</email>
</author>
<published>2024-09-02T05:50:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00de006f22f2304bddabb2d00a13af242ea21c17'/>
<id>urn:sha1:00de006f22f2304bddabb2d00a13af242ea21c17</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>Avoid ref when using format! in compiler</title>
<updated>2024-07-19T18:52:07+00:00</updated>
<author>
<name>Yuri Astrakhan</name>
<email>YuriAstrakhan@gmail.com</email>
</author>
<published>2024-07-19T15:51:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aef0e346de744faeaa522b9c08562bb3e1814adc'/>
<id>urn:sha1:aef0e346de744faeaa522b9c08562bb3e1814adc</id>
<content type='text'>
Clean up a few minor refs in `format!` macro, as it has a performance cost. Apparently the compiler is unable to inline `format!("{}", &amp;variable)`, and does a run-time double-reference instead (format macro already does one level referencing).  Inlining format args prevents accidental `&amp;` misuse.
</content>
</entry>
</feed>
