Enable structural mode for all operations if there is a Global extended attribute on the interface

This commit is contained in:
Anton Danilkin
2018-08-05 17:32:39 +03:00
committed by Alex Crichton
parent 90579416cf
commit ebab7d9fc8
3 changed files with 22 additions and 2 deletions

View File

@ -656,7 +656,11 @@ impl<'a> FirstPassRecord<'a> {
.map(|arg| (&*arg.name, &*arg.type_, arg.variadic)),
ret,
kind,
false,
self
.interfaces
.get(self_name)
.map(|interface_data| interface_data.global)
.unwrap_or(false),
catch,
doc_comment,
)