]> git.lizzy.rs Git - rust.git/commitdiff
WIP
authorAlexander Regueiro <alexreg@me.com>
Thu, 7 Feb 2019 21:25:15 +0000 (22:25 +0100)
committerAlexander Regueiro <alexreg@me.com>
Thu, 7 Feb 2019 21:28:16 +0000 (22:28 +0100)
src/librustc_resolve/error_reporting.rs
src/librustc_resolve/lib.rs

index 1f7ae7c3034f3916cba7985a33565a61fd5049a7..8300e691bbea4bce6fb53fb0e0871b67ff5bcc34 100644 (file)
@@ -23,7 +23,7 @@ pub(crate) fn smart_resolve_report_errors(
         &mut self,
         path: &[Segment],
         span: Span,
-        source: PathSource,
+        source: PathSource<'_>,
         def: Option<Def>,
     ) -> (DiagnosticBuilder<'a>, Vec<ImportSuggestion>) {
         let ident_span = path.last().map_or(span, |ident| ident.ident.span);
@@ -235,7 +235,7 @@ fn smart_resolve_context_dependent_help(
         &mut self,
         err: &mut DiagnosticBuilder<'a>,
         span: Span,
-        source: PathSource,
+        source: PathSource<'_>,
         def: Def,
         path_str: &str,
         fallback_label: &str,
index 69f8722a82b9b52011402ff1a9f38796ff8c31f7..611b956035ba76d79b3cb6fffde02a33c49508f7 100644 (file)
@@ -3128,7 +3128,7 @@ fn smart_resolve_path_fragment(&mut self,
                                    qself: Option<&QSelf>,
                                    path: &[Segment],
                                    span: Span,
-                                   source: PathSource,
+                                   source: PathSource<'_>,
                                    crate_lint: CrateLint)
                                    -> PathResolution {
         let ns = source.namespace();