Skip to content

Commit e45c9c2

Browse files
committed
---
yaml --- r: 195342 b: refs/heads/snap-stage3 c: b27ba52 h: refs/heads/master v: v3
1 parent 6309165 commit e45c9c2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 14192d6df5cc714e5c9a3ca70b08f2514d977be2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9147463678341db09c36d1a24a643b8ba4e3be73
4+
refs/heads/snap-stage3: b27ba527c5cee06f43967daf3a0dd01a2258a0fa
55
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/librustdoc/html/render.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ pub struct Implementor {
125125
pub trait_: clean::Type,
126126
pub for_: clean::Type,
127127
pub stability: Option<clean::Stability>,
128+
pub polarity: Option<clean::ImplPolarity>,
128129
}
129130

130131
/// Metadata about implementations for a type.
@@ -635,9 +636,11 @@ fn write_shared(cx: &Context,
635636
// going on). If they're in different crates then the crate defining
636637
// the trait will be interested in our implementation.
637638
if imp.def_id.krate == did.krate { continue }
638-
try!(write!(&mut f, r#""{}impl{} {} for {}","#,
639+
try!(write!(&mut f, r#""{}impl{} {}{} for {}","#,
639640
ConciseStability(&imp.stability),
640-
imp.generics, imp.trait_, imp.for_));
641+
imp.generics,
642+
if imp.polarity == Some(clean::ImplPolarity::Negative) { "!" } else { "" },
643+
imp.trait_, imp.for_));
641644
}
642645
try!(writeln!(&mut f, r"];"));
643646
try!(writeln!(&mut f, "{}", r"
@@ -882,6 +885,7 @@ impl DocFolder for Cache {
882885
trait_: i.trait_.as_ref().unwrap().clone(),
883886
for_: i.for_.clone(),
884887
stability: item.stability.clone(),
888+
polarity: i.polarity.clone(),
885889
});
886890
}
887891
Some(..) | None => {}

0 commit comments

Comments
 (0)