Use an enum to record polarity in clean::Impl
This commit is contained in:
parent
7b7023cb72
commit
543aea6c03
8 changed files with 34 additions and 23 deletions
|
@ -990,8 +990,9 @@ impl clean::Impl {
|
|||
}
|
||||
|
||||
if let Some(ref ty) = self.trait_ {
|
||||
if self.negative_polarity {
|
||||
write!(f, "!")?;
|
||||
match self.polarity {
|
||||
clean::ImplPolarity::Positive => {}
|
||||
clean::ImplPolarity::Negative => write!(f, "!")?,
|
||||
}
|
||||
fmt::Display::fmt(&ty.print(cx), f)?;
|
||||
write!(f, " for ")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue