Skip to content

Commit e857b38

Browse files
committed
---
yaml --- r: 193849 b: refs/heads/beta c: 2df1ceb h: refs/heads/master i: 193847: 27e2769 v: v3
1 parent 59fcd1a commit e857b38

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
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 432011d1437ce046c25dde8a4db67dac63c19ed0
34+
refs/heads/beta: 2df1ceb001662845e14e210f22adfe02dd88112b
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/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)