<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_pattern_analysis/src, 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-09-18T16:24:42+00:00</updated>
<entry>
<title>Revert warning empty patterns as unreachable</title>
<updated>2024-09-18T16:24:42+00:00</updated>
<author>
<name>Nadrieril</name>
<email>nadrieril+git@gmail.com</email>
</author>
<published>2024-08-28T18:10:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7410cbf03f55788ff768a9b6f0b2f098c1ab7053'/>
<id>urn:sha1:7410cbf03f55788ff768a9b6f0b2f098c1ab7053</id>
<content type='text'>
(cherry picked from commit 5b7be148ea0128daad309cf5a123c868a65d7737)
</content>
</entry>
<entry>
<title>Add `warn(unreachable_pub)` to `rustc_pattern_analysis`.</title>
<updated>2024-08-29T10:18:44+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-08-29T06:24:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=653ee7bc3aa0a28eabb796cbe14d185b49fe3e6d'/>
<id>urn:sha1:653ee7bc3aa0a28eabb796cbe14d185b49fe3e6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril</title>
<updated>2024-08-16T01:44:16+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2024-08-16T01:44:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5858329f1adf44ba39815d2040a0cb1478d37bc8'/>
<id>urn:sha1:5858329f1adf44ba39815d2040a0cb1478d37bc8</id>
<content type='text'>
Remove `print::Pat` from the printing of `WitnessPat`

After the preliminary work done in #128536, we can now get rid of `print::Pat` entirely.

- First, we introduce a variant `PatKind::Print(String)`.
- Then we incrementally remove each other variant of `PatKind`, by having the relevant code produce `PatKind::Print` instead.
- Once `PatKind::Print` is the only remaining variant, it becomes easy to remove `print::Pat` and replace it with `String`.

There is more cleanup that I have in mind, but this seemed like a natural stopping point for one PR.

r? ```@Nadrieril```
</content>
</entry>
<entry>
<title>Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors</title>
<updated>2024-08-14T00:56:53+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-08-14T00:56:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9c965df7b75ab5b1ae8f9a2680839ac1a1a3880'/>
<id>urn:sha1:e9c965df7b75ab5b1ae8f9a2680839ac1a1a3880</id>
<content type='text'>
Shrink `TyKind::FnPtr`.

By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and `FnHeader`, which can be packed more efficiently. This reduces the size of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms. This reduces peak memory usage by a few percent on some benchmarks. It also reduces cache misses and page faults similarly, though this doesn't translate to clear cycles or wall-time improvements on CI.

r? `@compiler-errors`
</content>
</entry>
<entry>
<title>Remove `print::Pat` entirely, replacing it with `String`</title>
<updated>2024-08-11T10:25:03+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-08-03T11:20:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fc55129774c8209d46d89b8a27b13fb7d8ce2b44'/>
<id>urn:sha1:fc55129774c8209d46d89b8a27b13fb7d8ce2b44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `PatKind::Never`</title>
<updated>2024-08-11T09:57:30+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-08-03T11:04:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bfe88a3bd0d0af92405655495a40aefbbed29b23'/>
<id>urn:sha1:bfe88a3bd0d0af92405655495a40aefbbed29b23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `PatKind::Slice`</title>
<updated>2024-08-11T09:57:30+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-08-03T11:02:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ec1483bf2e317b4a8d073881c3e942f7a011ff1a'/>
<id>urn:sha1:ec1483bf2e317b4a8d073881c3e942f7a011ff1a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `PatKind::Range`</title>
<updated>2024-08-11T09:57:30+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-08-03T10:59:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2b6f4386ebdedd62a093577dafe5082e4f63b316'/>
<id>urn:sha1:2b6f4386ebdedd62a093577dafe5082e4f63b316</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `PatKind::Constant`</title>
<updated>2024-08-11T09:57:30+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-08-03T10:55:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9952e4d4c8ba5def2861e1a39af61506f0a91655'/>
<id>urn:sha1:9952e4d4c8ba5def2861e1a39af61506f0a91655</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `PatKind::Ref`</title>
<updated>2024-08-11T09:57:30+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-08-03T10:51:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=283243ac5a3bcf68627491ea64b0d725db8c62f3'/>
<id>urn:sha1:283243ac5a3bcf68627491ea64b0d725db8c62f3</id>
<content type='text'>
</content>
</entry>
</feed>
