Skip to content

Commit bb65903

Browse files
committed
---
yaml --- r: 190943 b: refs/heads/auto c: 2df1ceb h: refs/heads/master i: 190941: 231ca01 190939: 1ab0c50 190935: 745f63e 190927: 604b2af 190911: 96f21c6 v: v3
1 parent 83b0d41 commit bb65903

File tree

5 files changed

+1119
-1064
lines changed

5 files changed

+1119
-1064
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 432011d1437ce046c25dde8a4db67dac63c19ed0
13+
refs/heads/auto: 2df1ceb001662845e14e210f22adfe02dd88112b
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc_resolve/build_reduced_graph.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
//! any imports resolved.
1515
1616
use {DefModifiers, PUBLIC, IMPORTABLE};
17-
use ImportDirective;
18-
use ImportDirectiveSubclass::{self, SingleImport, GlobImport};
19-
use ImportResolution;
17+
use resolve_imports::ImportDirective;
18+
use resolve_imports::ImportDirectiveSubclass::{self, SingleImport, GlobImport};
19+
use resolve_imports::ImportResolution;
2020
use Module;
2121
use ModuleKind::*;
2222
use Namespace::{TypeNS, ValueNS};
2323
use NameBindings;
24+
use {names_to_string, module_to_string};
2425
use ParentLink::{self, ModuleParentLink, BlockParentLink};
2526
use Resolver;
26-
use Shadowable;
27+
use resolve_imports::Shadowable;
2728
use TypeNsDef;
2829

2930
use self::DuplicateCheckingMode::*;
@@ -381,7 +382,7 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {
381382
false,
382383
true));
383384
debug!("(build reduced graph for item) found extern `{}`",
384-
self.module_to_string(&*external_module));
385+
module_to_string(&*external_module));
385386
self.check_for_conflicts_between_external_crates(&**parent, name, sp);
386387
parent.external_module_children.borrow_mut()
387388
.insert(name, external_module.clone());
@@ -836,7 +837,7 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {
836837
/// Builds the reduced graph rooted at the given external module.
837838
fn populate_external_module(&mut self, module: &Rc<Module>) {
838839
debug!("(populating external module) attempting to populate {}",
839-
self.module_to_string(&**module));
840+
module_to_string(&**module));
840841

841842
let def_id = match module.def_id.get() {
842843
None => {
@@ -903,7 +904,7 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {
903904
match subclass {
904905
SingleImport(target, _) => {
905906
debug!("(building import directive) building import directive: {}::{}",
906-
self.names_to_string(&module_.imports.borrow().last().unwrap().module_path),
907+
names_to_string(&module_.imports.borrow().last().unwrap().module_path),
907908
token::get_name(target));
908909

909910
let mut import_resolutions = module_.import_resolutions.borrow_mut();

0 commit comments

Comments
 (0)