1
Fork 0
This commit is contained in:
Alexander Regueiro 2019-02-07 22:25:15 +01:00
parent 5c87bc85e2
commit fd70e8e8db
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ impl<'a> Resolver<'a> {
&mut self, &mut self,
path: &[Segment], path: &[Segment],
span: Span, span: Span,
source: PathSource, source: PathSource<'_>,
def: Option<Def>, def: Option<Def>,
) -> (DiagnosticBuilder<'a>, Vec<ImportSuggestion>) { ) -> (DiagnosticBuilder<'a>, Vec<ImportSuggestion>) {
let ident_span = path.last().map_or(span, |ident| ident.ident.span); let ident_span = path.last().map_or(span, |ident| ident.ident.span);
@ -235,7 +235,7 @@ impl<'a> Resolver<'a> {
&mut self, &mut self,
err: &mut DiagnosticBuilder<'a>, err: &mut DiagnosticBuilder<'a>,
span: Span, span: Span,
source: PathSource, source: PathSource<'_>,
def: Def, def: Def,
path_str: &str, path_str: &str,
fallback_label: &str, fallback_label: &str,

View file

@ -3128,7 +3128,7 @@ impl<'a> Resolver<'a> {
qself: Option<&QSelf>, qself: Option<&QSelf>,
path: &[Segment], path: &[Segment],
span: Span, span: Span,
source: PathSource, source: PathSource<'_>,
crate_lint: CrateLint) crate_lint: CrateLint)
-> PathResolution { -> PathResolution {
let ns = source.namespace(); let ns = source.namespace();