<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/thir-print, branch try-perf</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try-perf</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try-perf'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-17T17:01:02+00:00</updated>
<entry>
<title>Rehome tests/ui/issues/ tests [5/?]</title>
<updated>2025-08-17T17:01:02+00:00</updated>
<author>
<name>Oneirical</name>
<email>manchot@videotron.ca</email>
</author>
<published>2025-07-13T20:56:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=75e0263af9ca27eac2c922538582deec764d1e7b'/>
<id>urn:sha1:75e0263af9ca27eac2c922538582deec764d1e7b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use ty::Value instead of manual pairs of types and valtrees</title>
<updated>2025-08-14T07:44:22+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-07-29T06:54:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a171eaab4249f70d24904da7ed392476b516a0e6'/>
<id>urn:sha1:a171eaab4249f70d24904da7ed392476b516a0e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pattern testing: store constants as valtrees</title>
<updated>2025-08-14T07:44:19+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-07-28T16:16:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d61fdbf266cf25ddf8c4798fd86e21577c8664e8'/>
<id>urn:sha1:d61fdbf266cf25ddf8c4798fd86e21577c8664e8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>PatKind: store constants as valtrees</title>
<updated>2025-08-14T07:39:39+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-07-28T14:59:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f1e99dca47b2cfc33906f1f1334fbed3a9fc4ce'/>
<id>urn:sha1:3f1e99dca47b2cfc33906f1f1334fbed3a9fc4ce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #142903 - cjgillot:local-def-path-hash, r=compiler-errors</title>
<updated>2025-07-17T08:36:42+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-17T08:36:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8c12d76304fcceaeaad0d67209e5727e94f5f2b8'/>
<id>urn:sha1:8c12d76304fcceaeaad0d67209e5727e94f5f2b8</id>
<content type='text'>
Only inherit local hash for paths

`DefPathHash`, as the counterpart of `DefId` that is stable across compiler invocations, is comprised of 2 parts. The first one is the `StableCrateId`, stable form of `CrateNum`. The second is 64 complementary bits to identify the crate-local definition.

The current implementation always hashes the full 128 bits when (1) trying to create a new child `DefPathHash` or (2) hashing a `CrateNum` or a `LocalDefId`. But we only need half that information: `LocalDefId` means that the `StableCrateId` is always the current crate's ; `CrateNum` means that we do not care about the local part.

As stable hashing is very hot in the query system, in particular hashing definitions, this is a big deal.

We still want the local part to change when the `StableCrateId` changes, to make incr-compilation errors less painful, ie. increase the likelihood that if will magically disappear by changing some code.

This PR sprinkles some `#[inline]` attributes on small functions that appeared in profiles.
</content>
</entry>
<entry>
<title>loop match: run exhaustiveness check</title>
<updated>2025-07-01T13:53:50+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-07-01T13:29:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aa7cc5d2f453853a4025cf029f3e42625c7e1e18'/>
<id>urn:sha1:aa7cc5d2f453853a4025cf029f3e42625c7e1e18</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>Only inherit local hash for paths.</title>
<updated>2025-06-22T20:25:55+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2023-12-24T01:04:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=89e5db8fea71e1055437454285d1c128576ec9b9'/>
<id>urn:sha1:89e5db8fea71e1055437454285d1c128576ec9b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Eliminate PatKind::Path</title>
<updated>2025-01-29T15:45:13+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2024-12-12T10:37:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f47ad710595c1d87daa8f6b67045574c7304f83e'/>
<id>urn:sha1:f47ad710595c1d87daa8f6b67045574c7304f83e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Introduce `default_field_values` feature</title>
<updated>2024-12-09T21:55:01+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-08-24T17:22:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9ac95c10c09faf50cc22eb97b6e1c59d64053c28'/>
<id>urn:sha1:9ac95c10c09faf50cc22eb97b6e1c59d64053c28</id>
<content type='text'>
Initial implementation of `#[feature(default_field_values]`, proposed in https://github.com/rust-lang/rfcs/pull/3681.

Support default fields in enum struct variant

Allow default values in an enum struct variant definition:

```rust
pub enum Bar {
    Foo {
        bar: S = S,
        baz: i32 = 42 + 3,
    }
}
```

Allow using `..` without a base on an enum struct variant

```rust
Bar::Foo { .. }
```

`#[derive(Default)]` doesn't account for these as it is still gating `#[default]` only being allowed on unit variants.

Support `#[derive(Default)]` on enum struct variants with all defaulted fields

```rust
pub enum Bar {
    #[default]
    Foo {
        bar: S = S,
        baz: i32 = 42 + 3,
    }
}
```

Check for missing fields in typeck instead of mir_build.

Expand test with `const` param case (needs `generic_const_exprs` enabled).

Properly instantiate MIR const

The following works:

```rust
struct S&lt;A&gt; {
    a: Vec&lt;A&gt; = Vec::new(),
}
S::&lt;i32&gt; { .. }
```

Add lint for default fields that will always fail const-eval

We *allow* this to happen for API writers that might want to rely on users'
getting a compile error when using the default field, different to the error
that they would get when the field isn't default. We could change this to
*always* error instead of being a lint, if we wanted.

This will *not* catch errors for partially evaluated consts, like when the
expression relies on a const parameter.

Suggestions when encountering `Foo { .. }` without `#[feature(default_field_values)]`:

 - Suggest adding a base expression if there are missing fields.
 - Suggest enabling the feature if all the missing fields have optional values.
 - Suggest removing `..` if there are no missing fields.
</content>
</entry>
</feed>
