about summary refs log tree commit diff
path: root/src/libstd/num
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-05 14:44:37 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-07 13:00:52 -0700
commitde7d1431760c788e5a471194fa85675033d0ed72 (patch)
tree2ece65f6d02061b9ed83dc19a20dc2a5401374d0 /src/libstd/num
parent439e2770be6aec41a3961235305787a78d47fbdd (diff)
downloadrust-de7d1431760c788e5a471194fa85675033d0ed72.tar.gz
rust-de7d1431760c788e5a471194fa85675033d0ed72.zip
Fix existing privacy/visibility violations
This commit fixes all of the fallout of the previous commit which is an attempt
to refine privacy. There were a few unfortunate leaks which now must be plugged,
and the most horrible one is the current `shouldnt_be_public` module now inside
`std::rt`. I think that this either needs a slight reorganization of the
runtime, or otherwise it needs to just wait for the external users of these
modules to get replaced with their `rt` implementations.

Other fixes involve making things pub which should be pub, and otherwise
updating error messages that now reference privacy instead of referencing an
"unresolved name" (yay!).
Diffstat (limited to 'src/libstd/num')
-rw-r--r--src/libstd/num/cmath.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/num/cmath.rs b/src/libstd/num/cmath.rs
index 38923c5bda4..0c515538266 100644
--- a/src/libstd/num/cmath.rs
+++ b/src/libstd/num/cmath.rs
@@ -36,10 +36,10 @@ pub mod c_double_utils {
         pub fn exp(n: c_double) -> c_double;
         // rename: for consistency with underscore usage elsewhere
         #[link_name="expm1"]
-        fn exp_m1(n: c_double) -> c_double;
+        pub fn exp_m1(n: c_double) -> c_double;
         pub fn exp2(n: c_double) -> c_double;
         #[link_name="fabs"]
-        fn abs(n: c_double) -> c_double;
+        pub fn abs(n: c_double) -> c_double;
         // rename: for clarity and consistency with add/sub/mul/div
         #[link_name="fdim"]
         pub fn abs_sub(a: c_double, b: c_double) -> c_double;