Skip to content

Commit 9d7859d

Browse files
committed
---
yaml --- r: 63297 b: refs/heads/snap-stage3 c: 2b13606 h: refs/heads/master i: 63295: 7a59a88 v: v3
1 parent c2fa802 commit 9d7859d

File tree

4 files changed

+18
-60
lines changed

4 files changed

+18
-60
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8431e609ea47ff7a396888233baf23159c620dca
4+
refs/heads/snap-stage3: 2b13606d9f8b8be381ed1934181f82e944856f22
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/core.rc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,49 @@
1010

1111
/*!
1212

13-
# The Rust core library
13+
# The Rust standard library
1414

15-
The Rust core library provides runtime features required by the language,
15+
The Rust standard library provides runtime features required by the language,
1616
including the task scheduler and memory allocators, as well as library
1717
support for Rust built-in types, platform abstractions, and other commonly
1818
used features.
1919

20-
`core` includes modules corresponding to each of the integer types, each of
20+
`std` includes modules corresponding to each of the integer types, each of
2121
the floating point types, the `bool` type, tuples, characters, strings
2222
(`str`), vectors (`vec`), managed boxes (`managed`), owned boxes (`owned`),
23-
and unsafe and borrowed pointers (`ptr`). Additionally, `core` provides
23+
and unsafe and borrowed pointers (`ptr`). Additionally, `std` provides
2424
pervasive types (`option` and `result`), task creation and communication
2525
primitives (`task`, `comm`), platform abstractions (`os` and `path`), basic
2626
I/O abstractions (`io`), common traits (`kinds`, `ops`, `cmp`, `num`,
2727
`to_str`), and complete bindings to the C standard library (`libc`).
2828

29-
# Core injection and the Rust prelude
29+
# Standard library injection and the Rust prelude
3030

31-
`core` is imported at the topmost level of every crate by default, as
31+
`std` is imported at the topmost level of every crate by default, as
3232
if the first line of each crate was
3333

34-
extern mod core;
34+
extern mod std;
3535

36-
This means that the contents of core can be accessed from any context
37-
with the `core::` path prefix, as in `use core::vec`, `use core::task::spawn`,
36+
This means that the contents of std can be accessed from any context
37+
with the `std::` path prefix, as in `use std::vec`, `use std::task::spawn`,
3838
etc.
3939

40-
Additionally, `core` contains a `prelude` module that reexports many of the
41-
most common core modules, types and traits. The contents of the prelude are
40+
Additionally, `std` contains a `prelude` module that reexports many of the
41+
most common std modules, types and traits. The contents of the prelude are
4242
imported into every *module* by default. Implicitly, all modules behave as if
4343
they contained the following prologue:
4444

45-
use core::prelude::*;
45+
use std::prelude::*;
4646

4747
*/
4848

4949

5050
#[link(name = "std",
5151
vers = "0.7-pre",
5252
uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
53-
url = "https://github.com/mozilla/rust/tree/master/src/libcore")];
53+
url = "https://github.com/mozilla/rust/tree/master/src/libstd")];
5454

55-
#[comment = "The Rust core library"];
55+
#[comment = "The Rust standard library"];
5656
#[license = "MIT/ASL2"];
5757
#[crate_type = "lib"];
5858

branches/snap-stage3/src/libsyntax/ext/deriving/rand.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,18 @@ fn rand_substructure(cx: @ExtCtxt, span: span, substr: &Substructure) -> @expr {
7979
let variant_count = cx.expr_uint(span, variants.len());
8080

8181
// need to specify the uint-ness of the random number
82-
let uint_ty = cx.ty_ident(span, cx.ident_of("uint"));
82+
let u32_ty = cx.ty_ident(span, cx.ident_of("uint"));
8383
let r_ty = cx.ty_ident(span, cx.ident_of("R"));
84-
let rand_name = cx.path_all(span, true, copy rand_ident, None, ~[ uint_ty, r_ty ]);
84+
let rand_name = cx.path_all(span, false, copy rand_ident, None, ~[ u32_ty, r_ty ]);
8585
let rand_name = cx.expr_path(rand_name);
8686

87-
// ::std::rand::Rand::rand::<uint>(rng)
8887
let rv_call = cx.expr_call(span,
8988
rand_name,
9089
~[ rng[0].duplicate(cx) ]);
9190

9291
// rand() % variants.len()
9392
let rand_variant = cx.expr_binary(span, ast::rem,
94-
rv_call, variant_count);
93+
rv_call, variant_count);
9594

9695
let mut arms = do variants.mapi |i, id_sum| {
9796
let i_expr = cx.expr_uint(span, i);

branches/snap-stage3/src/test/run-pass/deriving-global.rs

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)