<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/numeric/numeric-fields.stderr, 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>2023-01-11T09:32:08+00:00</updated>
<entry>
<title>Move /src/test to /tests</title>
<updated>2023-01-11T09:32:08+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2023-01-05T08:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf2dff2b1e3fa55fa5415d524200070d0d7aacfe'/>
<id>urn:sha1:cf2dff2b1e3fa55fa5415d524200070d0d7aacfe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Suggest replacing an inexisting field for an unmentioned field</title>
<updated>2021-09-13T12:16:05+00:00</updated>
<author>
<name>Hirochika Matsumoto</name>
<email>git@hkmatsumoto.com</email>
</author>
<published>2021-08-12T10:10:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=37196e36918536de06e64bd2a08b9e5fcab898fa'/>
<id>urn:sha1:37196e36918536de06e64bd2a08b9e5fcab898fa</id>
<content type='text'>
This PR adds a suggestion to replace an inexisting field for an
unmentioned field. Given the following code:
```rust
enum Foo {
    Bar { alpha: u8, bravo: u8, charlie: u8 },
}

fn foo(foo: Foo) {
    match foo {
        Foo::Bar {
            alpha,
            beta, // `bravo` miswritten as `beta` here.
            charlie,
        } =&gt; todo!(),
    }
}
```
the compiler now emits the error messages below.
```text
error[E0026]: variant `Foo::Bar` does not have a field named `beta`
 --&gt; src/lib.rs:9:13
  |
9 |             beta, // `bravo` miswritten as `beta` here.
  |             ^^^^
  |             |
  |             variant `Foo::Bar` does not have this field
  |             help: `Foo::Bar` has a field named `bravo`: `bravo`
```

Note that this suggestion is available iff the number of inexisting
fields and unmentioned fields are both 1.
</content>
</entry>
<entry>
<title>Ensure suggestion is in its own diagnostic window</title>
<updated>2021-09-02T03:20:46+00:00</updated>
<author>
<name>Noah Lev</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2021-09-02T03:20:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2226977a875c149effeb7d6b85bce5a5ba0c440c'/>
<id>urn:sha1:2226977a875c149effeb7d6b85bce5a5ba0c440c</id>
<content type='text'>
For two reasons:

1. Now that the suggestion span has been corrected, the output is a bit
   cluttered and hard to read. Putting the suggestion its own window
   creates more space.

2. It's easier to see what's being suggested, since now the version
   after the suggestion is applied is shown.
</content>
</entry>
<entry>
<title>Fix span used for structured tuple struct suggestion</title>
<updated>2021-09-02T03:17:15+00:00</updated>
<author>
<name>Noah Lev</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2021-09-02T03:11:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d2b13ba46694b73cf2cd64b3a18c3abd55983f2b'/>
<id>urn:sha1:d2b13ba46694b73cf2cd64b3a18c3abd55983f2b</id>
<content type='text'>
(And same for tuple variants.)

Previously, the span was just for the constructor name, which meant it
would result in syntactically-invalid code when applied. Now, the span
is for the entire expression.
</content>
</entry>
<entry>
<title>typeck: Emit structured suggestions for tuple struct syntax</title>
<updated>2021-02-04T19:58:55+00:00</updated>
<author>
<name>Camelid</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2021-02-04T05:29:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ed6232927b5d2f198ec33f77f0eb597a9eb68aa8'/>
<id>urn:sha1:ed6232927b5d2f198ec33f77f0eb597a9eb68aa8</id>
<content type='text'>
And tuple variant syntax, but that didn't fit in the subject :)

Now the fact that these are suggestions is exposed both to the layout
engine and to IDEs and rustfix for automatic application.
</content>
</entry>
<entry>
<title>fix indentation</title>
<updated>2019-06-19T17:47:52+00:00</updated>
<author>
<name>Cedric</name>
<email>cedric.brancourt@gmail.com</email>
</author>
<published>2019-06-19T17:47:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b72b1ac062a66819cd06a3f147486678e99b4f40'/>
<id>urn:sha1:b72b1ac062a66819cd06a3f147486678e99b4f40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>provide variant definition on tuple struct unknow field error</title>
<updated>2019-06-19T09:09:17+00:00</updated>
<author>
<name>Cedric</name>
<email>cedric.brancourt@gmail.com</email>
</author>
<published>2019-06-19T09:09:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=70e52f84186ee017d19d26e081ab8688beee9b37'/>
<id>urn:sha1:70e52f84186ee017d19d26e081ab8688beee9b37</id>
<content type='text'>
</content>
</entry>
<entry>
<title>adt hint pointing to adt span</title>
<updated>2019-06-19T08:07:07+00:00</updated>
<author>
<name>Cedric</name>
<email>cedric.brancourt@gmail.com</email>
</author>
<published>2019-06-19T08:07:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c917ba325f3e7944eefb5e906ca0392c9b499541'/>
<id>urn:sha1:c917ba325f3e7944eefb5e906ca0392c9b499541</id>
<content type='text'>
</content>
</entry>
<entry>
<title>suggest tuple struct syntax</title>
<updated>2019-06-17T18:04:26+00:00</updated>
<author>
<name>Cedric</name>
<email>cedric.brancourt@gmail.com</email>
</author>
<published>2019-06-17T18:04:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f7ecf1c54806d0a2b614510b46d1b25c178450f0'/>
<id>urn:sha1:f7ecf1c54806d0a2b614510b46d1b25c178450f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>hide `--explain` hint if error has no extended info</title>
<updated>2019-04-18T17:29:28+00:00</updated>
<author>
<name>Andy Russell</name>
<email>arussell123@gmail.com</email>
</author>
<published>2019-04-17T17:26:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b6f148c8bdf2dd1beb11445441366934f8b61f74'/>
<id>urn:sha1:b6f148c8bdf2dd1beb11445441366934f8b61f74</id>
<content type='text'>
</content>
</entry>
</feed>
