Skip to content

Commit 2a0e819

Browse files
committed
---
yaml --- r: 60650 b: refs/heads/auto c: 7f642f3 h: refs/heads/master v: v3
1 parent 0fac963 commit 2a0e819

File tree

686 files changed

+5027
-7212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

686 files changed

+5027
-7212
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: d49d0f82d9acf434a4107515d79d01f297f32430
17+
refs/heads/auto: 7f642f3d85c8c9886983cbabadedf4a2dbbd6fc6
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/Makefile.in

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ endif
122122
ifdef TRACE
123123
CFG_RUSTC_FLAGS += -Z trace
124124
endif
125-
ifndef DEBUG_BORROWS
126-
RUSTFLAGS_STAGE1 += -Z no-debug-borrows
127-
RUSTFLAGS_STAGE2 += -Z no-debug-borrows
128-
endif
129125

130126
# platform-specific auto-configuration
131127
include $(CFG_SRC_DIR)mk/platform.mk
@@ -205,8 +201,8 @@ define DEF_LIBS
205201

206202
CFG_RUNTIME_$(1) :=$(call CFG_LIB_NAME_$(1),rustrt)
207203
CFG_RUSTLLVM_$(1) :=$(call CFG_LIB_NAME_$(1),rustllvm)
204+
CFG_CORELIB_$(1) :=$(call CFG_LIB_NAME_$(1),core)
208205
CFG_STDLIB_$(1) :=$(call CFG_LIB_NAME_$(1),std)
209-
CFG_EXTRALIB_$(1) :=$(call CFG_LIB_NAME_$(1),extra)
210206
CFG_LIBRUSTC_$(1) :=$(call CFG_LIB_NAME_$(1),rustc)
211207
CFG_LIBSYNTAX_$(1) :=$(call CFG_LIB_NAME_$(1),syntax)
212208
CFG_LIBFUZZER_$(1) :=$(call CFG_LIB_NAME_$(1),fuzzer)
@@ -215,17 +211,17 @@ CFG_LIBRUSTDOC_$(1) :=$(call CFG_LIB_NAME_$(1),rustdoc)
215211
CFG_LIBRUSTI_$(1) :=$(call CFG_LIB_NAME_$(1),rusti)
216212
CFG_LIBRUST_$(1) :=$(call CFG_LIB_NAME_$(1),rust)
217213

218-
EXTRALIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),extra)
219214
STDLIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),std)
215+
CORELIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),core)
220216
LIBRUSTC_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustc)
221217
LIBSYNTAX_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),syntax)
222218
LIBFUZZER_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),fuzzer)
223219
LIBRUSTPKG_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustpkg)
224220
LIBRUSTDOC_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustdoc)
225221
LIBRUSTI_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rusti)
226222
LIBRUST_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rust)
227-
EXTRALIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),extra)
228223
STDLIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),std)
224+
CORELIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),core)
229225
LIBRUSTC_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustc)
230226
LIBSYNTAX_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),syntax)
231227
LIBFUZZER_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),fuzzer)
@@ -240,19 +236,19 @@ $(foreach target,$(CFG_TARGET_TRIPLES),\
240236
$(eval $(call DEF_LIBS,$(target))))
241237

242238
######################################################################
243-
# Standard library variables
239+
# Core library variables
244240
######################################################################
245241

246-
STDLIB_CRATE := $(S)src/libstd/core.rc
247-
STDLIB_INPUTS := $(wildcard $(addprefix $(S)src/libstd/, \
242+
CORELIB_CRATE := $(S)src/libcore/core.rc
243+
CORELIB_INPUTS := $(wildcard $(addprefix $(S)src/libcore/, \
248244
core.rc *.rs */*.rs */*/*rs */*/*/*rs))
249245

250246
######################################################################
251-
# Extra library variables
247+
# Standard library variables
252248
######################################################################
253249

254-
EXTRALIB_CRATE := $(S)src/libextra/std.rc
255-
EXTRALIB_INPUTS := $(wildcard $(addprefix $(S)src/libextra/, \
250+
STDLIB_CRATE := $(S)src/libstd/std.rc
251+
STDLIB_INPUTS := $(wildcard $(addprefix $(S)src/libstd/, \
256252
std.rc *.rs */*.rs))
257253

258254
######################################################################
@@ -344,33 +340,33 @@ TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/rustc/$(2)
344340
TBIN$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/bin
345341
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/$$(CFG_LIBDIR)
346342

347-
# The name of the standard and extra libraries used by rustc
343+
# The name of the core and standard libraries used by rustc
348344
ifdef CFG_DISABLE_SHAREDSTD
345+
HCORELIB_DEFAULT$(1)_H_$(3) = \
346+
$$(HLIB$(1)_H_$(3))/libcore.rlib
347+
TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
348+
$$(TLIB$(1)_T_$(2)_H_$(3))/libcore.rlib
349+
349350
HSTDLIB_DEFAULT$(1)_H_$(3) = \
350351
$$(HLIB$(1)_H_$(3))/libstd.rlib
351352
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
352353
$$(TLIB$(1)_T_$(2)_H_$(3))/libstd.rlib
353354

354-
HEXTRALIB_DEFAULT$(1)_H_$(3) = \
355-
$$(HLIB$(1)_H_$(3))/libextra.rlib
356-
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
357-
$$(TLIB$(1)_T_$(2)_H_$(3))/libextra.rlib
358-
359355
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
360356
$$(HLIB$(1)_H_$(3))/librustc.rlib
361357
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
362358
$$(TLIB$(1)_T_$(2)_H_$(3))/librustc.rlib
363359
else
360+
HCORELIB_DEFAULT$(1)_H_$(3) = \
361+
$$(HLIB$(1)_H_$(3))/$(CFG_CORELIB_$(3))
362+
TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
363+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB_$(2))
364+
364365
HSTDLIB_DEFAULT$(1)_H_$(3) = \
365366
$$(HLIB$(1)_H_$(3))/$(CFG_STDLIB_$(3))
366367
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
367368
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2))
368369

369-
HEXTRALIB_DEFAULT$(1)_H_$(3) = \
370-
$$(HLIB$(1)_H_$(3))/$(CFG_EXTRALIB_$(3))
371-
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
372-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2))
373-
374370
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
375371
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTC_$(3))
376372
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
@@ -382,8 +378,8 @@ HSREQ$(1)_H_$(3) = \
382378
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
383379
$$(HLIB$(1)_H_$(3))/$(CFG_RUNTIME_$(3)) \
384380
$$(HLIB$(1)_H_$(3))/$(CFG_RUSTLLVM_$(3)) \
381+
$$(HCORELIB_DEFAULT$(1)_H_$(3)) \
385382
$$(HSTDLIB_DEFAULT$(1)_H_$(3)) \
386-
$$(HEXTRALIB_DEFAULT$(1)_H_$(3)) \
387383
$$(HLIBSYNTAX_DEFAULT$(1)_H_$(3)) \
388384
$$(HLIBRUSTC_DEFAULT$(1)_H_$(3)) \
389385
$$(MKFILE_DEPS)
@@ -397,8 +393,8 @@ TSREQ$(1)_T_$(2)_H_$(3) = \
397393
# Prerequisites for a working stageN compiler and libraries, for a specific target
398394
SREQ$(1)_T_$(2)_H_$(3) = \
399395
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
400-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2)) \
401-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2))
396+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB_$(2)) \
397+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2))
402398

403399
# Prerequisites for a working stageN compiler and libraries, for a specific target
404400
CSREQ$(1)_T_$(2)_H_$(3) = \
@@ -413,8 +409,8 @@ CSREQ$(1)_T_$(2)_H_$(3) = \
413409
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTDOC_$(3)) \
414410
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTI_$(3)) \
415411
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUST_$(3)) \
416-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2)) \
417-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2)) \
412+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB_$(2)) \
413+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2)) \
418414
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(2)) \
419415
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2)) \
420416
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBFUZZER_$(2)) \

branches/auto/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ fi
643643
step_msg "making directories"
644644

645645
for i in \
646-
doc doc/std doc/extra \
646+
doc doc/core doc/std \
647647
dl tmp
648648
do
649649
make_dir $i

branches/auto/doc/rust.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ This document does not serve as a tutorial introduction to the
1717
language. Background familiarity with the language is assumed. A separate
1818
[tutorial] document is available to help acquire such background familiarity.
1919

20-
This document also does not serve as a reference to the [standard] or [extra]
20+
This document also does not serve as a reference to the [core] or [standard]
2121
libraries included in the language distribution. Those libraries are
2222
documented separately by extracting documentation attributes from their
2323
source code.
2424

2525
[tutorial]: tutorial.html
26+
[core]: core/index.html
2627
[standard]: std/index.html
27-
[extra]: extra/index.html
2828

2929
## Disclaimer
3030

@@ -441,7 +441,7 @@ expression context, the final namespace qualifier is omitted.
441441
Two examples of paths with type arguments:
442442

443443
~~~~
444-
# use std::hashmap::HashMap;
444+
# use core::hashmap::HashMap;
445445
# fn f() {
446446
# fn id<T:Copy>(t: T) -> T { t }
447447
type t = HashMap<int,~str>; // Type arguments used in a type expression
@@ -768,9 +768,9 @@ Three examples of `extern mod` declarations:
768768
~~~~~~~~{.xfail-test}
769769
extern mod pcre (uuid = "54aba0f8-a7b1-4beb-92f1-4cf625264841");
770770
771-
extern mod extra; // equivalent to: extern mod extra ( name = "extra" );
771+
extern mod std; // equivalent to: extern mod std ( name = "std" );
772772
773-
extern mod rustextra (name = "extra"); // linking to 'extra' under another name
773+
extern mod ruststd (name = "std"); // linking to 'std' under another name
774774
~~~~~~~~
775775

776776
##### Use declarations
@@ -802,19 +802,19 @@ Use declarations support a number of convenient shortcuts:
802802
An example of `use` declarations:
803803

804804
~~~~
805-
use std::float::sin;
806-
use std::str::{slice, contains};
807-
use std::option::Some;
805+
use core::float::sin;
806+
use core::str::{slice, contains};
807+
use core::option::Some;
808808
809809
fn main() {
810-
// Equivalent to 'info!(std::float::sin(1.0));'
810+
// Equivalent to 'info!(core::float::sin(1.0));'
811811
info!(sin(1.0));
812812
813-
// Equivalent to 'info!(std::option::Some(1.0));'
813+
// Equivalent to 'info!(core::option::Some(1.0));'
814814
info!(Some(1.0));
815815
816816
// Equivalent to
817-
// 'info!(std::str::contains(std::str::slice("foo", 0, 1), "oo"));'
817+
// 'info!(core::str::contains(core::str::slice("foo", 0, 1), "oo"));'
818818
info!(contains(slice("foo", 0, 1), "oo"));
819819
}
820820
~~~~
@@ -1327,7 +1327,7 @@ with the exception that they may not have a body
13271327
and are instead terminated by a semicolon.
13281328

13291329
~~~
1330-
# use std::libc::{c_char, FILE};
1330+
# use core::libc::{c_char, FILE};
13311331
# #[nolink]
13321332
13331333
extern {
@@ -1436,7 +1436,7 @@ Some primitive Rust operations are defined in Rust code,
14361436
rather than being implemented directly in C or assembly language.
14371437
The definitions of these operations have to be easy for the compiler to find.
14381438
The `lang` attribute makes it possible to declare these operations.
1439-
For example, the `str` module in the Rust standard library defines the string equality function:
1439+
For example, the `str` module in the Rust core library defines the string equality function:
14401440

14411441
~~~ {.xfail-test}
14421442
#[lang="str_eq"]
@@ -1562,7 +1562,7 @@ impl<T: Eq> Eq for Foo<T> {
15621562
Supported traits for `deriving` are:
15631563

15641564
* Comparison traits: `Eq`, `TotalEq`, `Ord`, `TotalOrd`.
1565-
* Serialization: `Encodable`, `Decodable`. These require `extra`.
1565+
* Serialization: `Encodable`, `Decodable`. These require `std`.
15661566
* `Clone` and `DeepClone`, to perform (deep) copies.
15671567
* `IterBytes`, to iterate over the bytes in a data type.
15681568
* `Rand`, to create a random instance of a data type.
@@ -1885,25 +1885,25 @@ Binary operators expressions are given in terms of
18851885
#### Arithmetic operators
18861886

18871887
Binary arithmetic expressions are syntactic sugar for calls to built-in traits,
1888-
defined in the `std::ops` module of the `std` library.
1888+
defined in the `core::ops` module of the `core` library.
18891889
This means that arithmetic operators can be overridden for user-defined types.
18901890
The default meaning of the operators on standard types is given here.
18911891

18921892
`+`
18931893
: Addition and vector/string concatenation.
1894-
Calls the `add` method on the `std::ops::Add` trait.
1894+
Calls the `add` method on the `core::ops::Add` trait.
18951895
`-`
18961896
: Subtraction.
1897-
Calls the `sub` method on the `std::ops::Sub` trait.
1897+
Calls the `sub` method on the `core::ops::Sub` trait.
18981898
`*`
18991899
: Multiplication.
1900-
Calls the `mul` method on the `std::ops::Mul` trait.
1900+
Calls the `mul` method on the `core::ops::Mul` trait.
19011901
`/`
19021902
: Quotient.
1903-
Calls the `div` method on the `std::ops::Div` trait.
1903+
Calls the `div` method on the `core::ops::Div` trait.
19041904
`%`
19051905
: Remainder.
1906-
Calls the `rem` method on the `std::ops::Rem` trait.
1906+
Calls the `rem` method on the `core::ops::Rem` trait.
19071907

19081908
#### Bitwise operators
19091909

@@ -1914,19 +1914,19 @@ The default meaning of the operators on standard types is given here.
19141914

19151915
`&`
19161916
: And.
1917-
Calls the `bitand` method of the `std::ops::BitAnd` trait.
1917+
Calls the `bitand` method of the `core::ops::BitAnd` trait.
19181918
`|`
19191919
: Inclusive or.
1920-
Calls the `bitor` method of the `std::ops::BitOr` trait.
1920+
Calls the `bitor` method of the `core::ops::BitOr` trait.
19211921
`^`
19221922
: Exclusive or.
1923-
Calls the `bitxor` method of the `std::ops::BitXor` trait.
1923+
Calls the `bitxor` method of the `core::ops::BitXor` trait.
19241924
`<<`
19251925
: Logical left shift.
1926-
Calls the `shl` method of the `std::ops::Shl` trait.
1926+
Calls the `shl` method of the `core::ops::Shl` trait.
19271927
`>>`
19281928
: Logical right shift.
1929-
Calls the `shr` method of the `std::ops::Shr` trait.
1929+
Calls the `shr` method of the `core::ops::Shr` trait.
19301930

19311931
#### Lazy boolean operators
19321932

@@ -1947,22 +1947,22 @@ The default meaning of the operators on standard types is given here.
19471947

19481948
`==`
19491949
: Equal to.
1950-
Calls the `eq` method on the `std::cmp::Eq` trait.
1950+
Calls the `eq` method on the `core::cmp::Eq` trait.
19511951
`!=`
19521952
: Unequal to.
1953-
Calls the `ne` method on the `std::cmp::Eq` trait.
1953+
Calls the `ne` method on the `core::cmp::Eq` trait.
19541954
`<`
19551955
: Less than.
1956-
Calls the `lt` method on the `std::cmp::Ord` trait.
1956+
Calls the `lt` method on the `core::cmp::Ord` trait.
19571957
`>`
19581958
: Greater than.
1959-
Calls the `gt` method on the `std::cmp::Ord` trait.
1959+
Calls the `gt` method on the `core::cmp::Ord` trait.
19601960
`<=`
19611961
: Less than or equal.
1962-
Calls the `le` method on the `std::cmp::Ord` trait.
1962+
Calls the `le` method on the `core::cmp::Ord` trait.
19631963
`>=`
19641964
: Greater than or equal.
1965-
Calls the `ge` method on the `std::cmp::Ord` trait.
1965+
Calls the `ge` method on the `core::cmp::Ord` trait.
19661966

19671967

19681968
#### Type cast expressions
@@ -2121,11 +2121,11 @@ then the expression completes.
21212121
Some examples of call expressions:
21222122

21232123
~~~~
2124-
# use std::from_str::FromStr;
2124+
# use core::from_str::FromStr::from_str;
21252125
# fn add(x: int, y: int) -> int { 0 }
21262126
21272127
let x: int = add(1, 2);
2128-
let pi = FromStr::from_str::<f32>("3.14");
2128+
let pi = from_str::<f32>("3.14");
21292129
~~~~
21302130

21312131
### Lambda expressions
@@ -3168,7 +3168,7 @@ execute, after which it is *descheduled* at a loop-edge or similar
31683168
preemption point, and another task within is scheduled, pseudo-randomly.
31693169

31703170
An executing task can yield control at any time, by making a library call to
3171-
`std::task::yield`, which deschedules it immediately. Entering any other
3171+
`core::task::yield`, which deschedules it immediately. Entering any other
31723172
non-executing state (blocked, dead) similarly deschedules the task.
31733173

31743174

@@ -3181,7 +3181,7 @@ run-time. It is smaller and simpler than many modern language runtimes. It is
31813181
tightly integrated into the language's execution model of memory, tasks,
31823182
communication and logging.
31833183

3184-
> **Note:** The runtime library will merge with the `std` library in future versions of Rust.
3184+
> **Note:** The runtime library will merge with the `core` library in future versions of Rust.
31853185
31863186
### Memory allocation
31873187

0 commit comments

Comments
 (0)