hygiene: Remove Options from functions returning ExpnInfo
The expansion info is not optional and should always exist
This commit is contained in:
parent
6cb28b6617
commit
73dee258c1
14 changed files with 98 additions and 155 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue