mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
The code predating this PR was actually incorrect since it did not keep these impls. However, removing the redundant deref-following logic had the side effect of breaking a GUI test for the notable traits tooltip. It seems like previously an unrelated type with a deref impl to `Vec<u8>` ended up causing the impl of `Write` for it to be kept. In fact, this change required some snapshot tests to be updated because it fixed a latent bug where the notable trait tooltip would not appear for many external traits (if they didn't happen to get pulled in like `Write for Vec<u8>` did).
13 lines
1.3 KiB
HTML
13 lines
1.3 KiB
HTML
<pre class="rust item-decl"><code>pub trait TraitWhere {
|
|
type <a href="#associatedtype.Item" class="associatedtype">Item</a><'a>
|
|
<span class="where">where Self: 'a</span>;
|
|
|
|
// Provided methods
|
|
fn <a href="#method.func" class="fn">func</a>(self)
|
|
<span class="where">where Self: <a class="trait" href="{{channel}}/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
<span class="item-spacer" /> fn <a href="#method.lines" class="fn">lines</a>(self) -> <a class="struct" href="{{channel}}/alloc/io/util/struct.Lines.html" title="struct alloc::io::util::Lines">Lines</a><Self> <a href="#" class="tooltip" data-notable-ty="Lines<Self>">ⓘ</a>
|
|
<span class="where">where Self: <a class="trait" href="{{channel}}/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
<span class="item-spacer" /> fn <a href="#method.merge" class="fn">merge</a><T>(self, a: T)
|
|
<span class="where">where Self: <a class="trait" href="{{channel}}/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
|
T: <a class="trait" href="{{channel}}/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
}</code></pre> |