Skip to content

Commit 6706af9

Browse files
---
yaml --- r: 235462 b: refs/heads/stable c: 60133aa h: refs/heads/master v: v3
1 parent 9a3901e commit 6706af9

File tree

4 files changed

+156
-159
lines changed

4 files changed

+156
-159
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 31262c206e9d0152610572859092132555c7d492
32+
refs/heads/stable: 60133aa6dd4bf288cacbaba72368f80c131d252c
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc_resolve/build_reduced_graph.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use ParentLink::{self, ModuleParentLink, BlockParentLink};
2626
use Resolver;
2727
use resolve_imports::Shadowable;
2828
use TypeNsDef;
29+
use {resolve_error, ResolutionError};
2930

3031
use self::DuplicateCheckingMode::*;
3132
use self::NamespaceError::*;
@@ -208,12 +209,12 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {
208209
// Return an error here by looking up the namespace that
209210
// had the duplicate.
210211
let ns = ns.unwrap();
211-
::resolve_error(
212+
resolve_error(
212213
self,
213214
sp,
214-
&::ResolutionError::DuplicateDefinition(
215+
ResolutionError::DuplicateDefinition(
215216
namespace_error_to_string(duplicate_type),
216-
&*token::get_name(name))
217+
name)
217218
);
218219
{
219220
let r = child.span_for_namespace(ns);
@@ -307,9 +308,9 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {
307308
full_path.segments.last().unwrap().identifier.name;
308309
if &token::get_name(source_name)[..] == "mod" ||
309310
&token::get_name(source_name)[..] == "self" {
310-
::resolve_error(self,
311+
resolve_error(self,
311312
view_path.span,
312-
&::ResolutionError::SelfImportsOnlyAllowedWithin
313+
ResolutionError::SelfImportsOnlyAllowedWithin
313314
);
314315
}
315316

@@ -330,10 +331,10 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {
330331
_ => None
331332
}).collect::<Vec<Span>>();
332333
if mod_spans.len() > 1 {
333-
::resolve_error(
334+
resolve_error(
334335
self,
335336
mod_spans[0],
336-
&::ResolutionError::SelfImportCanOnlyAppearOnceInTheList
337+
ResolutionError::SelfImportCanOnlyAppearOnceInTheList
337338
);
338339
for other_span in mod_spans.iter().skip(1) {
339340
self.session.span_note(*other_span,
@@ -349,10 +350,10 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {
349350
let name = match module_path.last() {
350351
Some(name) => *name,
351352
None => {
352-
::resolve_error(
353+
resolve_error(
353354
self,
354355
source_item.span,
355-
&::ResolutionError::
356+
ResolutionError::
356357
SelfImportOnlyInImportListWithNonEmptyPrefix
357358
);
358359
continue;

0 commit comments

Comments
 (0)