hygiene: Remove Options from functions returning ExpnInfo

The expansion info is not optional and should always exist
This commit is contained in:
Vadim Petrochenkov 2019-08-11 03:00:05 +03:00
parent 6cb28b6617
commit 73dee258c1
14 changed files with 98 additions and 155 deletions

View file

@ -1775,10 +1775,7 @@ impl SharedEmitterMain {
}
}
Ok(SharedEmitterMessage::InlineAsmError(cookie, msg)) => {
match ExpnId::from_u32(cookie).expn_info() {
Some(ei) => sess.span_err(ei.call_site, &msg),
None => sess.err(&msg),
}
sess.span_err(ExpnId::from_u32(cookie).expn_info().call_site, &msg)
}
Ok(SharedEmitterMessage::AbortIfErrors) => {
sess.abort_if_errors();