From c6b64f76cf6d22c0a325dd980b4400ac96a9cbc8 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Tue, 6 Dec 2016 13:27:36 -1000 Subject: save-analysis: fix a few generated code errors --- src/librustc_save_analysis/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustc_save_analysis/lib.rs') diff --git a/src/librustc_save_analysis/lib.rs b/src/librustc_save_analysis/lib.rs index 7a2b74c06db..5c8921d1868 100644 --- a/src/librustc_save_analysis/lib.rs +++ b/src/librustc_save_analysis/lib.rs @@ -250,8 +250,8 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> { match typ.node { // Common case impl for a struct or something basic. ast::TyKind::Path(None, ref path) => { + filter!(self.span_utils, None, path.span, None); sub_span = self.span_utils.sub_span_for_type_name(path.span); - filter!(self.span_utils, sub_span, path.span, None); type_data = self.lookup_ref_id(typ.id).map(|id| { TypeRefData { span: sub_span.unwrap(), -- cgit 1.4.1-3-g733a5