Enum paralegal_spdg::rustc::mir::CallSource
source · pub enum CallSource {
OverloadedOperator,
MatchCmp,
Misc,
Normal,
}
Expand description
Represents how a TerminatorKind::Call
was constructed, used for diagnostics
Variants§
OverloadedOperator
This came from something such as a > b
or a + b
. In THIR, if from_hir_call
is false then this is the desugaring.
MatchCmp
This was from comparison generated by a match, used by const-eval for better errors when the comparison cannot be done in compile time.
Misc
Other types of desugaring that did not come from the HIR, but we don’t care about for diagnostics (yet).
Normal
Normal function call, no special source
Auto Trait Implementations§
impl RefUnwindSafe for CallSource
impl Send for CallSource
impl Sync for CallSource
impl Unpin for CallSource
impl UnwindSafe for CallSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more