<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/specialization, branch 1.45.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.45.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.45.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-05-03T01:24:07+00:00</updated>
<entry>
<title>Point at associated types when they have a default type</title>
<updated>2020-05-03T01:24:07+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2020-04-14T22:12:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=299bd12fe5edb4a99f85b1a94b9f9e7ce5365654'/>
<id>urn:sha1:299bd12fe5edb4a99f85b1a94b9f9e7ce5365654</id>
<content type='text'>
Associated types with a default type in a trait can't be relied upon to
remain of that default type when in use, so literals of that type can't
be used in the trait's items. Point at the associated type and state
that information.

Reduce verbosity for associated consts of the wrong type.
</content>
</entry>
<entry>
<title>When a projection is expected, suggest constraining or calling method</title>
<updated>2020-05-03T01:24:07+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2020-04-14T02:46:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=31b356619657928113902b975453a5e19371bb25'/>
<id>urn:sha1:31b356619657928113902b975453a5e19371bb25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>On type mismatch involving associated type, suggest constraint</title>
<updated>2020-05-03T01:23:46+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2020-04-13T20:36:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3a795fba038bf64452abb8c2240fd1221185e274'/>
<id>urn:sha1:3a795fba038bf64452abb8c2240fd1221185e274</id>
<content type='text'>
When an associated type is found when a specific type was expected, if
possible provide a structured suggestion constraining the associated
type in a bound.

```
error[E0271]: type mismatch resolving `&lt;T as Foo&gt;::Y == i32`
  --&gt; $DIR/associated-types-multiple-types-one-trait.rs:13:5
   |
LL |     want_y(t);
   |     ^^^^^^ expected `i32`, found associated type
...
LL | fn want_y&lt;T:Foo&lt;Y=i32&gt;&gt;(t: &amp;T) { }
   |                 ----- required by this bound in `want_y`
   |
   = note:         expected type `i32`
           found associated type `&lt;T as Foo&gt;::Y`
help: consider constraining the associated type `&lt;T as Foo&gt;::Y` to `i32`
   |
LL | fn have_x_want_y&lt;T:Foo&lt;X=u32, Y = i32&gt;&gt;(t: &amp;T)
   |                             ^^^^^^^^^
```

```
error[E0308]: mismatched types
  --&gt; $DIR/trait-with-missing-associated-type-restriction.rs:12:9
   |
LL |     qux(x.func())
   |         ^^^^^^^^ expected `usize`, found associated type
   |
   = note:         expected type `usize`
           found associated type `&lt;impl Trait as Trait&gt;::A`
help: consider constraining the associated type `&lt;impl Trait as Trait&gt;::A` to `usize`
   |
LL | fn foo(x: impl Trait&lt;A = usize&gt;) {
   |                     ^^^^^^^^^^
```
</content>
</entry>
<entry>
<title>Rollup merge of #71235 - estebank:lt-sugg-2, r=ecstatic-morse</title>
<updated>2020-04-24T11:14:19+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-04-24T11:14:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7d8a3ad128381bbabb18f975130cfd7a92c1ceca'/>
<id>urn:sha1:7d8a3ad128381bbabb18f975130cfd7a92c1ceca</id>
<content type='text'>
Tweak `'static` suggestion code

Fix #71196.
</content>
</entry>
<entry>
<title>fix error code for E0751</title>
<updated>2020-04-23T07:46:05+00:00</updated>
<author>
<name>YI</name>
<email>uuuuuu@protonmail.com</email>
</author>
<published>2020-04-22T12:18:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=baac961fb5e50cdd4f537af75e95e1ad3f358bc9'/>
<id>urn:sha1:baac961fb5e50cdd4f537af75e95e1ad3f358bc9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Sort `MultiSpan`s on creation</title>
<updated>2020-04-23T00:15:34+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2020-04-23T00:15:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=25f8966b5a93dcd4a1f7e06907a63f7547ef2a96'/>
<id>urn:sha1:25f8966b5a93dcd4a1f7e06907a63f7547ef2a96</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do not emit note for projected derived obligations</title>
<updated>2020-04-18T23:37:08+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2020-04-11T21:14:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ce936e9336afbd1ff116c64f0fdcc438b4745c54'/>
<id>urn:sha1:ce936e9336afbd1ff116c64f0fdcc438b4745c54</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Maintain chain of derived obligations</title>
<updated>2020-04-18T23:37:08+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2020-03-07T00:24:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ad1c23c993dc65810b535bed8c305643c892a2a4'/>
<id>urn:sha1:ad1c23c993dc65810b535bed8c305643c892a2a4</id>
<content type='text'>
When evaluating the derived obligations from super traits, maintain a
reference to the original obligation in order to give more actionable
context in the output.
</content>
</entry>
<entry>
<title>Add a test</title>
<updated>2020-03-30T17:44:21+00:00</updated>
<author>
<name>Jonas Schievink</name>
<email>jonasschievink@gmail.com</email>
</author>
<published>2020-03-29T00:01:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=103771ce57acc240bc01abf4f7365172935bc7fb'/>
<id>urn:sha1:103771ce57acc240bc01abf4f7365172935bc7fb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tweak `suggest_constraining_type_param`</title>
<updated>2020-03-29T20:13:17+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2020-03-14T02:28:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c71894657bc0ac7a250170e3733f140750498a3'/>
<id>urn:sha1:2c71894657bc0ac7a250170e3733f140750498a3</id>
<content type='text'>
Some of the bound restriction structured suggestions were incorrect
while others had subpar output.
</content>
</entry>
</feed>
