syntax: Move default_transparency into ExpnInfo

This commit is contained in:
Vadim Petrochenkov 2019-06-17 23:55:22 +03:00
parent 8ec502eecd
commit 2de2278f1a
4 changed files with 27 additions and 28 deletions

View file

@ -680,8 +680,9 @@ impl SyntaxExtension {
crate fn expn_info(&self, call_site: Span, format: &str) -> ExpnInfo {
ExpnInfo {
call_site,
def_site: self.def_info.map(|(_, span)| span),
format: self.expn_format(Symbol::intern(format)),
def_site: self.def_info.map(|(_, span)| span),
default_transparency: self.default_transparency,
allow_internal_unstable: self.allow_internal_unstable.clone(),
allow_internal_unsafe: self.allow_internal_unsafe,
local_inner_macros: self.local_inner_macros,