Skip to content

Commit 9813bcd

Browse files
committed
---
yaml --- r: 37593 b: refs/heads/try c: 6430517 h: refs/heads/master i: 37591: e86bec1 v: v3
1 parent 52607d7 commit 9813bcd

File tree

5 files changed

+57
-28
lines changed

5 files changed

+57
-28
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5-
refs/heads/try: cb355bf7ad63d087a558c0509dfe350016dd35ba
5+
refs/heads/try: 64305174c9f2925dcbec3cf24ccc4be3a52e1ff6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/libcore/float.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
use m_float = f64;
1818

19-
use f64::{add, sub, mul, div, rem, lt, le, eq, ne, ge, gt};
20-
use f64::logarithm;
21-
use f64::{acos, asin, atan2, cbrt, ceil, copysign, cosh, floor};
22-
use f64::{erf, erfc, exp, expm1, exp2, abs_sub};
23-
use f64::{mul_add, fmax, fmin, nextafter, frexp, hypot, ldexp};
24-
use f64::{lgamma, ln, log_radix, ln1p, log10, log2, ilog_radix};
25-
use f64::{modf, pow, round, sinh, tanh, tgamma, trunc};
26-
use f64::signbit;
27-
use f64::{j0, j1, jn, y0, y1, yn};
19+
pub use f64::{add, sub, mul, div, rem, lt, le, eq, ne, ge, gt};
20+
pub use f64::logarithm;
21+
pub use f64::{acos, asin, atan2, cbrt, ceil, copysign, cosh, floor};
22+
pub use f64::{erf, erfc, exp, expm1, exp2, abs_sub};
23+
pub use f64::{mul_add, fmax, fmin, nextafter, frexp, hypot, ldexp};
24+
pub use f64::{lgamma, ln, log_radix, ln1p, log10, log2, ilog_radix};
25+
pub use f64::{modf, pow, round, sinh, tanh, tgamma, trunc};
26+
pub use f64::signbit;
27+
pub use f64::{j0, j1, jn, y0, y1, yn};
2828
use cmp::{Eq, Ord};
2929
use num::from_int;
3030

branches/try/src/librustc/middle/resolve.rs

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ impl Resolver {
16871687
// avoid creating cycles in the
16881688
// module graph.
16891689

1690-
let resolution = @ImportResolution(Private, dummy_sp());
1690+
let resolution = @ImportResolution(Public, dummy_sp());
16911691
resolution.outstanding_references = 0;
16921692

16931693
match existing_module.parent_link {
@@ -3199,23 +3199,26 @@ impl Resolver {
31993199
fn add_exports_of_namebindings(exports2: &mut ~[Export2],
32003200
ident: ident,
32013201
namebindings: @NameBindings,
3202+
ns: Namespace,
32023203
reexport: bool) {
3203-
for [ TypeNS, ValueNS ].each |ns| {
3204-
match (namebindings.def_for_namespace(*ns),
3205-
namebindings.privacy_for_namespace(*ns)) {
3206-
(Some(d), Some(Public)) => {
3207-
debug!("(computing exports) YES: %s '%s' \
3208-
=> %?",
3209-
if reexport { ~"reexport" } else { ~"export"},
3210-
self.session.str_of(ident),
3211-
def_id_of_def(d));
3212-
exports2.push(Export2 {
3213-
reexport: reexport,
3214-
name: self.session.str_of(ident),
3215-
def_id: def_id_of_def(d)
3216-
});
3217-
}
3218-
_ => ()
3204+
match (namebindings.def_for_namespace(ns),
3205+
namebindings.privacy_for_namespace(ns)) {
3206+
(Some(d), Some(Public)) => {
3207+
debug!("(computing exports) YES: %s '%s' => %?",
3208+
if reexport { ~"reexport" } else { ~"export"},
3209+
self.session.str_of(ident),
3210+
def_id_of_def(d));
3211+
exports2.push(Export2 {
3212+
reexport: reexport,
3213+
name: self.session.str_of(ident),
3214+
def_id: def_id_of_def(d)
3215+
});
3216+
}
3217+
(Some(_), Some(privacy)) => {
3218+
debug!("(computing reexports) NO: privacy %?", privacy);
3219+
}
3220+
(d_opt, p_opt) => {
3221+
debug!("(computing reexports) NO: %?, %?", d_opt, p_opt);
32193222
}
32203223
}
32213224
}
@@ -3227,7 +3230,13 @@ impl Resolver {
32273230
self.add_exports_of_namebindings(exports2,
32283231
*ident,
32293232
*namebindings,
3230-
false)
3233+
TypeNS,
3234+
false);
3235+
self.add_exports_of_namebindings(exports2,
3236+
*ident,
3237+
*namebindings,
3238+
ValueNS,
3239+
false);
32313240
}
32323241
32333242
for module_.import_resolutions.each_ref |ident, importresolution| {
@@ -3244,6 +3253,7 @@ impl Resolver {
32443253
self.add_exports_of_namebindings(exports2,
32453254
*ident,
32463255
target.bindings,
3256+
*ns,
32473257
true)
32483258
}
32493259
_ => ()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pub mod a {
2+
pub mod b {
3+
pub mod c {
4+
fn f(){}
5+
fn g(){}
6+
}
7+
}
8+
9+
pub use b::c;
10+
}
11+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// xfail-fast
2+
// aux-build:pub_use_mods_xcrate.rs
3+
4+
extern mod pub_use_mods_xcrate;
5+
use pub_use_mods_xcrate::a::c;
6+
7+
fn main(){}
8+

0 commit comments

Comments
 (0)