diff --git a/crates/hir-ty/src/mir/lower.rs b/crates/hir-ty/src/mir/lower.rs index 9816902fc0..acd56f0218 100644 --- a/crates/hir-ty/src/mir/lower.rs +++ b/crates/hir-ty/src/mir/lower.rs @@ -544,8 +544,7 @@ impl<'ctx> MirLowerCtx<'ctx> { )), } .intern(Interner), - ) - .into(), + ), span: None, }), expr_id.into(), diff --git a/crates/ide-diagnostics/src/handlers/moved_out_of_ref.rs b/crates/ide-diagnostics/src/handlers/moved_out_of_ref.rs index da8eed29b0..780271361d 100644 --- a/crates/ide-diagnostics/src/handlers/moved_out_of_ref.rs +++ b/crates/ide-diagnostics/src/handlers/moved_out_of_ref.rs @@ -19,7 +19,7 @@ mod tests { use crate::tests::check_diagnostics; #[test] - fn abc() { + fn operand_field_span_respected() { check_diagnostics( r#" struct NotCopy;