support default impl
for specialization
rebase after support for llvm-3.7
This commit is contained in:
parent
6427fdce7a
commit
b0fca5f790
@ -1346,7 +1346,7 @@ impl<'a> LoweringContext<'a> {
|
||||
|
||||
hir::ItemImpl(self.lower_unsafety(unsafety),
|
||||
self.lower_impl_polarity(polarity),
|
||||
self.lower_defaultness(defaultness),
|
||||
self.lower_defaultness(defaultness, true /* [1] */),
|
||||
self.lower_generics(generics),
|
||||
ifce,
|
||||
self.lower_ty(ty),
|
||||
|
@ -823,8 +823,9 @@ impl<'a> State<'a> {
|
||||
}
|
||||
|
||||
pub fn print_defaultness(&mut self, defaultness: hir::Defaultness) -> io::Result<()> {
|
||||
if let hir::Defaultness::Default = defaultness {
|
||||
self.word_nbsp("default")?;
|
||||
match defaultness {
|
||||
hir::Defaultness::Default { .. } => self.word_nbsp("default")?,
|
||||
hir::Defaultness::Final => (),
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user