From a79b5673e8f5d1f8d569bc7c984a293a972a7bb0 Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 16 Mar 2021 23:31:14 -0700 Subject: Follow established ErrorEmitted pattern --- crates/hir_def/src/body.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'crates/hir_def/src/body.rs') diff --git a/crates/hir_def/src/body.rs b/crates/hir_def/src/body.rs index d2dcd6727..1080d9c2c 100644 --- a/crates/hir_def/src/body.rs +++ b/crates/hir_def/src/body.rs @@ -121,11 +121,8 @@ impl Expander { err.get_or_insert(e); })?; let call_id = match call_id { - Some(it) => it, - None => { - if err.is_none() { - log::warn!("no error despite `as_call_id_with_errors` returning `None`"); - } + Ok(it) => it, + Err(_) => { return Ok(ExpandResult { value: None, err }); } }; -- cgit v1.2.3