From 81394ce9ae436595511e7a29e53875f2e62bf312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Sat, 16 Mar 2019 18:36:47 -0700 Subject: [PATCH] Fix rebase --- src/librustc_metadata/native_libs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_metadata/native_libs.rs b/src/librustc_metadata/native_libs.rs index cb1af932ce0..e0665127c0f 100644 --- a/src/librustc_metadata/native_libs.rs +++ b/src/librustc_metadata/native_libs.rs @@ -74,7 +74,7 @@ fn visit_item(&mut self, it: &'tcx hir::Item) { "dylib" => cstore::NativeUnknown, "framework" => cstore::NativeFramework, k => { - struct_span_err!(self.tcx.sess, item.span, E0458, + struct_span_err!(self.tcx.sess, item.span(), E0458, "unknown kind: `{}`", k) .span_label(item.span(), "unknown kind") .span_label(m.span, "").emit();