Skip to content

Commit 72fd02d

Browse files
committed
doc: convert remaining uses of core:: to std::.
1 parent abe94f9 commit 72fd02d

File tree

12 files changed

+30
-30
lines changed

12 files changed

+30
-30
lines changed

src/etc/cmathconsts.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <math.h>
1414
#include <stdio.h>
1515

16-
// must match core::ctypes
16+
// must match std::ctypes
1717

1818
#define C_FLT(x) (float)x
1919
#define C_DBL(x) (double)x

src/etc/ziggurat_tables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# xfail-license
33

44
# This creates the tables used for distributions implemented using the
5-
# ziggurat algorithm in `core::rand::distributions;`. They are
5+
# ziggurat algorithm in `std::rand::distributions;`. They are
66
# (basically) the tables as used in the ZIGNOR variant (Doornik 2005).
77
# They are changed rarely, so the generated file should be checked in
88
# to git.

src/etc/zsh/_rust

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _rustc_opts_lint=(
3636
'path-statement[path statements with no effect]'
3737
'missing-trait-doc[detects missing documentation for traits]'
3838
'missing-struct-doc[detects missing documentation for structs]'
39-
'ctypes[proper use of core::libc types in foreign modules]'
39+
'ctypes[proper use of std::libc types in foreign modules]'
4040
"unused-mut[detect mut variables which don't need to be mutable]"
4141
'unused-imports[imports that are never used]'
4242
'heap-memory[use of any (~ type or @ type) heap memory]'

src/libstd/io.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1029,9 +1029,9 @@ pub fn FILE_reader(f: *libc::FILE, cleanup: bool) -> @Reader {
10291029
* # Example
10301030
*
10311031
* ~~~ {.rust}
1032-
* let stdin = core::io::stdin();
1032+
* let stdin = std::io::stdin();
10331033
* let line = stdin.read_line();
1034-
* core::io::print(line);
1034+
* std::io::print(line);
10351035
* ~~~
10361036
*/
10371037
pub fn stdin() -> @Reader {
@@ -1598,7 +1598,7 @@ pub fn buffered_file_writer(path: &Path) -> Result<@Writer, ~str> {
15981598
* # Example
15991599
*
16001600
* ~~~ {.rust}
1601-
* let stdout = core::io::stdout();
1601+
* let stdout = std::io::stdout();
16021602
* stdout.write_str("hello\n");
16031603
* ~~~
16041604
*/
@@ -1610,7 +1610,7 @@ pub fn stdout() -> @Writer { fd_writer(libc::STDOUT_FILENO as c_int, false) }
16101610
* # Example
16111611
*
16121612
* ~~~ {.rust}
1613-
* let stderr = core::io::stderr();
1613+
* let stderr = std::io::stderr();
16141614
* stderr.write_str("hello\n");
16151615
* ~~~
16161616
*/

src/libstd/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ pub fn pipe() -> Pipe {
411411
// inheritance has to be handled in a different way that I do not
412412
// fully understand. Here we explicitly make the pipe non-inheritable,
413413
// which means to pass it to a subprocess they need to be duplicated
414-
// first, as in core::run.
414+
// first, as in std::run.
415415
let mut fds = Pipe {input: 0 as c_int,
416416
out: 0 as c_int };
417417
let res = libc::pipe(&mut fds.input, 1024 as ::libc::c_uint,

src/libstd/rand/distributions.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn ziggurat<R:Rng>(rng: &mut R,
6666
/// # Example
6767
///
6868
/// ~~~
69-
/// use core::rand::distributions::StandardNormal;
69+
/// use std::rand::distributions::StandardNormal;
7070
///
7171
/// fn main() {
7272
/// let normal = 2.0 + (*rand::random::<StandardNormal>()) * 3.0;
@@ -120,7 +120,7 @@ impl Rand for StandardNormal {
120120
/// # Example
121121
///
122122
/// ~~~
123-
/// use core::rand::distributions::Exp1;
123+
/// use std::rand::distributions::Exp1;
124124
///
125125
/// fn main() {
126126
/// let exp2 = (*rand::random::<Exp1>()) * 0.5;

src/libstd/rt/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ file, TCP, UDP, Unix domain sockets.
1919
Readers and Writers may be composed to add capabilities like string
2020
parsing, encoding, and compression.
2121
22-
This will likely live in core::io, not core::rt::io.
22+
This will likely live in std::io, not std::rt::io.
2323
2424
# Examples
2525

src/libstd/rt/mod.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ out of `rt` as development proceeds.
4040
4141
Several modules in `core` are clients of `rt`:
4242
43-
* `core::task` - The user-facing interface to the Rust task model.
44-
* `core::task::local_data` - The interface to local data.
45-
* `core::gc` - The garbage collector.
46-
* `core::unstable::lang` - Miscellaneous lang items, some of which rely on `core::rt`.
47-
* `core::condition` - Uses local data.
48-
* `core::cleanup` - Local heap destruction.
49-
* `core::io` - In the future `core::io` will use an `rt` implementation.
50-
* `core::logging`
51-
* `core::pipes`
52-
* `core::comm`
53-
* `core::stackwalk`
43+
* `std::task` - The user-facing interface to the Rust task model.
44+
* `std::task::local_data` - The interface to local data.
45+
* `std::gc` - The garbage collector.
46+
* `std::unstable::lang` - Miscellaneous lang items, some of which rely on `std::rt`.
47+
* `std::condition` - Uses local data.
48+
* `std::cleanup` - Local heap destruction.
49+
* `std::io` - In the future `std::io` will use an `rt` implementation.
50+
* `std::logging`
51+
* `std::pipes`
52+
* `std::comm`
53+
* `std::stackwalk`
5454
5555
*/
5656

@@ -139,7 +139,7 @@ pub mod rc;
139139
/// scheduler and task context
140140
pub mod tube;
141141

142-
/// Simple reimplementation of core::comm
142+
/// Simple reimplementation of std::comm
143143
pub mod comm;
144144

145145
mod select;

src/libstd/rt/uv/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/*!
1212
13-
Bindings to libuv, along with the default implementation of `core::rt::rtio`.
13+
Bindings to libuv, along with the default implementation of `std::rt::rtio`.
1414
1515
UV types consist of the event loop (Loop), Watchers, Requests and
1616
Callbacks.

src/libsyntax/ast.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub struct Lifetime {
100100
}
101101

102102
// a "Path" is essentially Rust's notion of a name;
103-
// for instance: core::cmp::Eq . It's represented
103+
// for instance: std::cmp::Eq . It's represented
104104
// as a sequence of identifiers, along with a bunch
105105
// of supporting information.
106106
#[deriving(Clone, Eq, Encodable, Decodable, IterBytes)]
@@ -1093,8 +1093,8 @@ pub enum inlined_item {
10931093
/* hold off on tests ... they appear in a later merge.
10941094
#[cfg(test)]
10951095
mod test {
1096-
use core::option::{None, Option, Some};
1097-
use core::uint;
1096+
use std::option::{None, Option, Some};
1097+
use std::uint;
10981098
use extra;
10991099
use codemap::*;
11001100
use super::*;

src/rt/rust_log.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const size_t default_log_level = log_err;
3131

3232
// This is a rather ugly parser for strings in the form
3333
// "crate1,crate2.mod3,crate3.x=1". Log levels are 0-255,
34-
// with the most likely ones being 0-3 (defined in core::).
34+
// with the most likely ones being 0-3 (defined in std::).
3535
size_t parse_logging_spec(char* spec, log_directive* dirs) {
3636
size_t dir = 0;
3737
while (dir < max_log_directives && *spec) {

src/test/compile-fail/issue-5543.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// except according to those terms.
1010

1111
// xfail-test
12-
use core::io::ReaderUtil;
13-
use core::io::Reader;
12+
use std::io::ReaderUtil;
13+
use std::io::Reader;
1414

1515
fn bar(r:@ReaderUtil) -> ~str { r.read_line() }
1616

0 commit comments

Comments
 (0)