Skip to content

Commit d610246

Browse files
committed
---
yaml --- r: 272262 b: refs/heads/auto c: b83739a h: refs/heads/master
1 parent 23ef824 commit d610246

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: fc06ea5f9c904df1325b9e886353e561ea2ba385
11+
refs/heads/auto: b83739af4e4687469638f760bba60c9ad362ec34
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc_resolve/resolve_imports.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ impl ImportDirectiveSubclass {
5959
#[derive(Debug,Clone)]
6060
pub struct ImportDirective<'a> {
6161
module_path: Vec<Name>,
62+
target_module: Cell<Option<Module<'a>>>, // the resolution of `module_path`
6263
subclass: ImportDirectiveSubclass,
6364
span: Span,
6465
id: NodeId,
@@ -76,6 +77,7 @@ impl<'a> ImportDirective<'a> {
7677
-> Self {
7778
ImportDirective {
7879
module_path: module_path,
80+
target_module: Cell::new(None),
7981
subclass: subclass,
8082
span: span,
8183
id: id,
@@ -435,6 +437,7 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
435437
Indeterminate => return Indeterminate,
436438
Failed(err) => return Failed(err),
437439
};
440+
directive.target_module.set(Some(target_module));
438441

439442
let (source, target, value_determined, type_determined) = match directive.subclass {
440443
SingleImport { source, target, ref value_determined, ref type_determined } =>

0 commit comments

Comments
 (0)