mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Make use generated TerminatorKind::Call have call_source Use
This commit is contained in:
@@ -652,6 +652,8 @@ pub enum CallSource {
|
||||
/// Other types of desugaring that did not come from the HIR, but we don't care about
|
||||
/// for diagnostics (yet).
|
||||
Misc,
|
||||
/// Use of value, generating a clone function call
|
||||
Use,
|
||||
/// Normal function call, no special source
|
||||
Normal,
|
||||
}
|
||||
|
||||
@@ -328,7 +328,7 @@ pub(crate) fn expr_into_dest(
|
||||
destination,
|
||||
target: Some(success),
|
||||
unwind: UnwindAction::Unreachable,
|
||||
call_source: CallSource::Misc,
|
||||
call_source: CallSource::Use,
|
||||
fn_span: expr_span,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user