<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/destructuring-assignment, branch 1.90.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.90.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.90.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-10T13:47:20+00:00</updated>
<entry>
<title>cleaned up some tests</title>
<updated>2025-07-10T13:47:20+00:00</updated>
<author>
<name>Kivooeo</name>
<email>Kivooeo123@gmail.com</email>
</author>
<published>2025-07-01T16:46:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3ad95cccf9b3af7e527869a1eb130217971b7a57'/>
<id>urn:sha1:3ad95cccf9b3af7e527869a1eb130217971b7a57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>moved tests</title>
<updated>2025-07-01T16:42:20+00:00</updated>
<author>
<name>Kivooeo</name>
<email>Kivooeo123@gmail.com</email>
</author>
<published>2025-07-01T16:42:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9191ec57ee5bdd0961a22fd9852f361a5c97ea0'/>
<id>urn:sha1:e9191ec57ee5bdd0961a22fd9852f361a5c97ea0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Suppress redundant error</title>
<updated>2025-06-02T02:19:35+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-06-02T02:19:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4a803d26ead24aa9cfdba3717fe2e9ffdc41f0e0'/>
<id>urn:sha1:4a803d26ead24aa9cfdba3717fe2e9ffdc41f0e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't declare variables in ExprKind::Let in invalid positions</title>
<updated>2025-06-02T02:19:34+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-06-02T02:14:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d2d0f62f783b0640f7ededb25776a724031cebf7'/>
<id>urn:sha1:d2d0f62f783b0640f7ededb25776a724031cebf7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More sophisticated span trimming</title>
<updated>2025-02-21T00:41:17+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-20T23:05:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0a7ab1d6df4a2cfac819b0bada85b9142ac8ba26'/>
<id>urn:sha1:0a7ab1d6df4a2cfac819b0bada85b9142ac8ba26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Show diff suggestion format on verbose replacement</title>
<updated>2025-02-10T20:21:39+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-09T22:30:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d'/>
<id>urn:sha1:f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d</id>
<content type='text'>
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --&gt; $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
</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>
<entry>
<title>Update tests for new TRPL chapter order</title>
<updated>2024-11-23T15:57:25+00:00</updated>
<author>
<name>Chris Krycho</name>
<email>hello@chriskrycho.com</email>
</author>
<published>2024-10-30T19:08:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d4275e08e7f73efabb2c41ceb27020c6f9005a68'/>
<id>urn:sha1:d4275e08e7f73efabb2c41ceb27020c6f9005a68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add third help hint to diagnostic error E0027</title>
<updated>2024-10-24T07:17:28+00:00</updated>
<author>
<name>Duncan Proctor</name>
<email>duncpro@icloud.com</email>
</author>
<published>2024-10-22T05:51:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=10b60eba9bc55449721db912fe75bab11de43c4e'/>
<id>urn:sha1:10b60eba9bc55449721db912fe75bab11de43c4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives</title>
<updated>2024-02-16T20:02:50+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>jieyouxu@outlook.com</email>
</author>
<published>2024-02-16T20:02:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ec2cc761bc7067712ecc7734502f703fe3b024c8'/>
<id>urn:sha1:ec2cc761bc7067712ecc7734502f703fe3b024c8</id>
<content type='text'>
</content>
</entry>
</feed>
