<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/missing/missing-items/issue-40221.stderr, branch 1.48.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.48.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.48.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-03-27T05:49:07+00:00</updated>
<entry>
<title>non-exhastive diagnostic: add note re. scrutinee type</title>
<updated>2020-03-27T05:49:07+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2020-03-27T05:44:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c858593ed013127ab35c7d5777156fe9f24a3717'/>
<id>urn:sha1:c858593ed013127ab35c7d5777156fe9f24a3717</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update tests</title>
<updated>2019-03-11T20:10:26+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2019-03-09T12:03:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fa72a81bea27f1fda4287475e4cc2f684c971e7f'/>
<id>urn:sha1:fa72a81bea27f1fda4287475e4cc2f684c971e7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Point at enum definition when match patterns are not exhaustive</title>
<updated>2019-03-03T00:45:23+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2019-02-10T13:12:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0081ef2548f95171b33bbaedcd90253cf41916b2'/>
<id>urn:sha1:0081ef2548f95171b33bbaedcd90253cf41916b2</id>
<content type='text'>
```
error[E0004]: non-exhaustive patterns: type `X` is non-empty
 --&gt; file.rs:9:11
  |
1 | / enum X {
2 | |     A,
  | |     - variant not covered
3 | |     B,
  | |     - variant not covered
4 | |     C,
  | |     - variant not covered
5 | | }
  | |_- `X` defined here
...
9 |       match x {
  |             ^
  |
  = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms

error[E0004]: non-exhaustive patterns: `B` and `C` not covered
  --&gt; file.rs:11:11
   |
1  | / enum X {
2  | |     A,
3  | |     B,
4  | |     C,
   | |     - not covered
5  | | }
   | |_- `X` defined here
...
11 |       match x {
   |             ^ patterns `C` not covered
```

When a match expression doesn't have patterns covering every variant,
point at the enum's definition span. On a best effort basis, point at the
variant(s) that are missing. This does not handle the case when the missing
pattern is due to a field's enum variants:

```
enum E1 {
    A,
    B,
    C,
}
enum E2 {
    A(E1),
    B,
}
fn foo() {
    match E2::A(E1::A) {
        E2::A(E1::B) =&gt; {}
        E2::B =&gt; {}
    }
    //~^ ERROR `E2::A(E1::A)` and `E2::A(E1::C)` not handled
}
```

Unify look between match with no arms and match with some missing patterns.

Fix #37518.
</content>
</entry>
<entry>
<title>Remove licenses</title>
<updated>2018-12-26T04:08:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-12-25T15:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a663555ddf36f6b041445894a8c175cd1bc718c'/>
<id>urn:sha1:2a663555ddf36f6b041445894a8c175cd1bc718c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merged migrated compile-fail tests and ui tests. Fixes #46841.</title>
<updated>2018-08-14T09:12:09+00:00</updated>
<author>
<name>David Wood</name>
<email>david@davidtw.co</email>
</author>
<published>2018-08-08T12:50:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3fc7ab237314a4ce85e612b4ce590c27f1425291'/>
<id>urn:sha1:3fc7ab237314a4ce85e612b4ce590c27f1425291</id>
<content type='text'>
</content>
</entry>
</feed>
