Skip to content

Commit da2ec00

Browse files
committed
---
yaml --- r: 92927 b: refs/heads/auto c: 2e98a93 h: refs/heads/master i: 92925: 0a460dd 92923: 7211f71 92919: 78d799f 92911: 5861059 92895: f79995f 92863: e331919 92799: b846686 92671: b5e3d83 v: v3
1 parent bc76b69 commit da2ec00

File tree

446 files changed

+16594
-12969
lines changed

Some content is hidden

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

446 files changed

+16594
-12969
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: f8cc9a9cb1e221abb0cbf2e169b10c826f3fbd98
16+
refs/heads/auto: 2e98a93ba991e2390b0068af72c5600b659cfb66
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ src/.DS_Store
7575
/doc/latex
7676
/doc/std
7777
/doc/extra
78+
/doc/green
79+
/doc/native
80+
/doc/rustc
81+
/doc/syntax
7882
/nd/
7983
/llvm/
8084
version.md

branches/auto/.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[submodule "src/llvm"]
22
path = src/llvm
3-
url = https://github.com/alexcrichton/llvm.git
3+
url = https://github.com/luqmana/llvm.git
44
branch = master
55
[submodule "src/libuv"]
66
path = src/libuv
77
url = https://github.com/alexcrichton/libuv.git
88
branch = master
99
[submodule "src/gyp"]
1010
path = src/gyp
11-
url = https://github.com/brson/gyp.git
11+
url = https://github.com/alexcrichton/gyp.git

branches/auto/Makefile.in

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ CFG_LIBSYNTAX_$(1) :=$(call CFG_LIB_NAME_$(1),syntax)
235235
CFG_LIBRUSTPKG_$(1) :=$(call CFG_LIB_NAME_$(1),rustpkg)
236236
CFG_LIBRUSTDOC_$(1) :=$(call CFG_LIB_NAME_$(1),rustdoc)
237237
CFG_LIBRUSTUV_$(1) :=$(call CFG_LIB_NAME_$(1),rustuv)
238+
CFG_LIBGREEN_$(1) :=$(call CFG_LIB_NAME_$(1),green)
239+
CFG_LIBNATIVE_$(1) :=$(call CFG_LIB_NAME_$(1),native)
238240

239241
EXTRALIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),extra)
240242
STDLIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),std)
@@ -243,19 +245,25 @@ LIBSYNTAX_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),syntax)
243245
LIBRUSTPKG_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustpkg)
244246
LIBRUSTDOC_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustdoc)
245247
LIBRUSTUV_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustuv)
248+
LIBGREEN_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),green)
249+
LIBNATIVE_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),native)
246250
EXTRALIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),extra)
247251
STDLIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),std)
248252
LIBRUSTC_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustc)
249253
LIBSYNTAX_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),syntax)
250254
LIBRUSTPKG_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustpkg)
251255
LIBRUSTDOC_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustdoc)
252256
LIBRUSTUV_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustuv)
257+
LIBGREEN_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),green)
258+
LIBNATIVE_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),native)
253259

254260
EXTRALIB_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,extra)
255261
STDLIB_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,std)
256262
LIBRUSTUV_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,rustuv)
257263
LIBSYNTAX_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,syntax)
258264
LIBRUSTC_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,rustc)
265+
LIBNATIVE_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,native)
266+
LIBGREEN_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,green)
259267

260268
endef
261269

@@ -272,9 +280,15 @@ define CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT
272280
endef
273281

274282
# Same interface as above, but deletes rather than just listing the files.
283+
ifdef VERBOSE
275284
define REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT
276285
$(Q)MATCHES="$(filter-out %$(3),$(wildcard $(1)/$(2)))"; if [ -n "$$MATCHES" ] ; then echo "warning: removing previous" \'$(2)\' "libraries:" $$MATCHES; rm $$MATCHES ; fi
277286
endef
287+
else
288+
define REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT
289+
$(Q)MATCHES="$(filter-out %$(3),$(wildcard $(1)/$(2)))"; if [ -n "$$MATCHES" ] ; then rm $$MATCHES ; fi
290+
endef
291+
endif
278292

279293
# We use a different strategy for LIST_ALL_OLD_GLOB_MATCHES_EXCEPT
280294
# than in the macros above because it needs the result of running the
@@ -319,6 +333,22 @@ LIBRUSTUV_CRATE := $(S)src/librustuv/lib.rs
319333
LIBRUSTUV_INPUTS := $(wildcard $(addprefix $(S)src/librustuv/, \
320334
*.rs */*.rs))
321335

336+
######################################################################
337+
# Green threading library variables
338+
######################################################################
339+
340+
LIBGREEN_CRATE := $(S)src/libgreen/lib.rs
341+
LIBGREEN_INPUTS := $(wildcard $(addprefix $(S)src/libgreen/, \
342+
*.rs */*.rs))
343+
344+
######################################################################
345+
# Native threading library variables
346+
######################################################################
347+
348+
LIBNATIVE_CRATE := $(S)src/libnative/lib.rs
349+
LIBNATIVE_INPUTS := $(wildcard $(addprefix $(S)src/libnative/, \
350+
*.rs */*.rs))
351+
322352
######################################################################
323353
# rustc crate variables
324354
######################################################################
@@ -430,6 +460,16 @@ HLIBRUSTUV_DEFAULT$(1)_H_$(3) = \
430460
TLIBRUSTUV_DEFAULT$(1)_T_$(2)_H_$(3) = \
431461
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2))
432462

463+
HLIBGREEN_DEFAULT$(1)_H_$(3) = \
464+
$$(HLIB$(1)_H_$(3))/$(CFG_LIBGREEN_$(3))
465+
TLIBGREEN_DEFAULT$(1)_T_$(2)_H_$(3) = \
466+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBGREEN_$(2))
467+
468+
HLIBNATIVE_DEFAULT$(1)_H_$(3) = \
469+
$$(HLIB$(1)_H_$(3))/$(CFG_LIBNATIVE_$(3))
470+
TLIBNATIVE_DEFAULT$(1)_T_$(2)_H_$(3) = \
471+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBNATIVE_$(2))
472+
433473
# Preqrequisites for using the stageN compiler
434474
ifeq ($(1),0)
435475
HSREQ$(1)_H_$(3) = $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3))
@@ -441,6 +481,8 @@ HSREQ$(1)_H_$(3) = \
441481
$$(HLIBSYNTAX_DEFAULT$(1)_H_$(3)) \
442482
$$(HLIBRUSTC_DEFAULT$(1)_H_$(3)) \
443483
$$(HLIBRUSTUV_DEFAULT$(1)_H_$(3)) \
484+
$$(HLIBGREEN_DEFAULT$(1)_H_$(3)) \
485+
$$(HLIBNATIVE_DEFAULT$(1)_H_$(3)) \
444486
$$(MKFILE_DEPS)
445487
endif
446488

@@ -455,7 +497,9 @@ SREQ$(1)_T_$(2)_H_$(3) = \
455497
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
456498
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2)) \
457499
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2)) \
458-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2))
500+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2)) \
501+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBGREEN_$(2)) \
502+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBNATIVE_$(2))
459503

460504
# Prerequisites for a working stageN compiler and libraries, for a specific target
461505
CSREQ$(1)_T_$(2)_H_$(3) = \
@@ -470,7 +514,9 @@ CSREQ$(1)_T_$(2)_H_$(3) = \
470514
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2)) \
471515
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTPKG_$(2)) \
472516
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTDOC_$(2)) \
473-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2))
517+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2)) \
518+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBGREEN_$(2)) \
519+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBNATIVE_$(2))
474520

475521
ifeq ($(1),0)
476522
# Don't run the the stage0 compiler under valgrind - that ship has sailed

branches/auto/RELEASES.txt

Lines changed: 149 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,156 @@
1-
Version 0.9 (XXX 2013)
1+
Version 0.9 (January 2014)
22
--------------------------
33

4-
* ~XXX changes, numerous bugfixes
4+
* ~1600 changes, numerous bugfixes
5+
6+
* Language
7+
* The `float` type has been removed. Use `f32` or `f64` instead.
8+
* A new facility for enabling experimental features (feature gating) has
9+
been added, using the crate-level `#[feature(foo)]` attribute.
10+
* Managed boxes (@) are now behind a feature gate
11+
(`#[feature(managed_boxes)]`) in preperation for future removal. Use the
12+
standard library's `Gc` or `Rc` types instead.
13+
* `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
14+
* Jumping back to the top of a loop is now done with `continue` instead of
15+
`loop`.
16+
* Strings can no longer be mutated through index assignment.
17+
* Raw strings can be created via the basic `r"foo"` syntax or with matched
18+
hash delimiters, as in `r###"foo"###`.
19+
* `~fn` is now written `proc (args) -> retval { ... }` and may only be
20+
called once.
21+
* The `&fn` type is now written `|args| -> ret` to match the literal form.
22+
* `@fn`s have been removed.
23+
* `do` only works with procs in order to make it obvious what the cost
24+
of `do` is.
25+
* The `#[link(...)]` attribute has been replaced with
26+
`#[crate_id = "name#vers"]`.
27+
* Empty `impl`s must be terminated with empty braces and may not be
28+
terminated with a semicolon.
29+
* Keywords are no longer allowed as lifetime names; the `self` lifetime
30+
no longer has any special meaning.
31+
* The old `fmt!` string formatting macro has been removed.
32+
* `printf!` and `printfln!` (old-style formatting) removed in favor of
33+
`print!` and `println!`.
34+
* `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
35+
* New reserved keywords: `alignof`, `offsetof`, `sizeof`.
36+
* Macros can have attributes.
37+
* Macros can expand to items with attributes.
38+
* Macros can expand to multiple items.
39+
* The `asm!` macro is feature-gated (`#[feature(asm)]`).
40+
* Comments may be nested.
41+
* Values automatically coerce to trait objects they implement, without
42+
an explicit `as`.
43+
* Enum discriminants are no longer an entire word but as small as needed to
44+
contain all the variants. The `repr` attribute can be used to override
45+
the discriminant size, as in `#[repr(int)]` for integer-sized, and
46+
`#[repr(C)]` to match C enums.
47+
* Non-string literals are not allowed in attributes (they never worked).
48+
* The FFI now supports variadic functions.
49+
* Octal numeric literals, as in `0o7777`.
50+
* The `concat!` syntax extension performs compile-time string concatenation.
51+
* The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
52+
removed as Rust no longer uses segmented stacks.
53+
* Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
54+
* Ignoring all fields of an enum variant or tuple-struct is done with `..`,
55+
not `*`; ignoring remaining fields of a struct is also done with `..`,
56+
not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
57+
* `rustc` supports the "win64" calling convention via `extern "win64"`.
58+
* `rustc` supports the "system" calling convention, which defaults to the
59+
preferred convention for the target platform, "stdcall" on 32-bit Windows,
60+
"C" elsewhere.
61+
* The `type_overflow` lint (default: warn) checks literals for overflow.
62+
* The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
63+
* The `attribute_usage` lint (default: warn) warns about unknown
64+
attributes.
65+
* The `unknown_features` lint (default: warn) warns about unknown
66+
feature gates.
67+
* The `dead_code` lint (default: warn) checks for dead code.
68+
* Rust libraries can be linked statically to one another
69+
* `#[link_args]` is behind the `link_args` feature gate.
70+
* Native libraries are now linked with `#[link(name = "foo")]`
71+
* Native libraries can be statically linked to a rust crate
72+
(`#[link(name = "foo", kind = "static")]`).
73+
* Native OS X frameworks are now officially supported
74+
(`#[link(name = "foo", kind = "framework")]`).
75+
* The `#[thread_local]` attribute creates thread-local (not task-local)
76+
variables. Currently behind the `thread_local` feature gate.
77+
* The `return` keyword may be used in closures.
78+
* Types that can be copied via a memcpy implement the `Pod` kind.
79+
80+
* Libraries
81+
* std: The `option` and `result` API's have been overhauled to make them
82+
simpler, more consistent, and more composable.
83+
* std: The entire `std::io` module has been replaced with one that is
84+
more comprehensive and that properly interfaces with the underlying
85+
scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
86+
implemented.
87+
* std: `io::util` contains a number of useful implementations of
88+
`Reader` and `Writer`, including `NullReader`, `NullWriter`,
89+
`ZeroReader`, `TeeReader`.
90+
* std: The reference counted pointer type `extra::rc` moved into std.
91+
* std: The `Gc` type in the `gc` module will replace `@` (it is currently
92+
just a wrapper around it).
93+
* std: `fmt::Default` can be implemented for any type to provide default
94+
formatting to the `format!` macro, as in `format!("{}", myfoo)`.
95+
* std: The `rand` API continues to be tweaked.
96+
* std: Functions dealing with type size and alignment have moved from the
97+
`sys` module to the `mem` module.
98+
* std: The `path` module was written and API changed.
99+
* std: `str::from_utf8` has been changed to cast instead of allocate.
100+
* std: `starts_with` and `ends_with` methods added to vectors via the
101+
`ImmutableEqVector` trait, which is in the prelude.
102+
* std: Vectors can be indexed with the `get_opt` method, which returns `None`
103+
if the index is out of bounds.
104+
* std: Task failure no longer propagates between tasks, as the model was
105+
complex, expensive, and incompatible with thread-based tasks.
106+
* std: The `Any` type can be used for dynamic typing.
107+
* std: `~Any` can be passed to the `fail!` macro and retrieved via
108+
`task::try`.
109+
* std: Methods that produce iterators generally do not have an `_iter`
110+
suffix now.
111+
* std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
112+
roots (mutable fields, etc.). Use instead of e.g. `@mut`.
113+
* std: `util::ignore` renamed to `prelude::drop`.
114+
* std: Slices have `sort` and `sort_by` methods via the `MutableVector`
115+
trait.
116+
* std: `vec::raw` has seen a lot of cleanup and API changes.
117+
* std: The standard library no longer includes any C++ code, and very
118+
minimal C, eliminating the dependency on libstdc++.
119+
* std: Runtime scheduling and I/O functionality has been factored out into
120+
extensible interfaces and is now implemented by two different crates:
121+
libnative, for native threading and I/O; and libgreen, for green threading
122+
and I/O. This paves the way for using the standard library in more limited
123+
embeded environments.
124+
* std: The `comm` module has been rewritten to be much faster, have a
125+
simpler, more consistent API, and to work for both native and green
126+
threading.
127+
* std: All libuv dependencies have been moved into the rustuv crate.
128+
* native: New implementations of runtime scheduling on top of OS threads.
129+
* native: New native implementations of TCP, UDP, file I/O, process spawning,
130+
and other I/O.
131+
* green: The green thread scheduler and message passing types are almost
132+
entirely lock-free.
133+
* extra: The `flatpipes` module had bitrotted and was removed.
134+
* extra: All crypto functions have been removed and Rust now has a policy of
135+
not reimplementing crypto in the standard library. In the future crypto
136+
will be provided by external crates with bindings to established libraries.
137+
* extra: `c_vec` has been modernized.
138+
* extra: The `sort` module has been removed. Use the `sort` method on
139+
mutable slices.
5140

6141
* Tooling
7-
* The `rust` and `rusti` commands have been removed, due to lack of maintenance.
142+
* The `rust` and `rusti` commands have been removed, due to lack of
143+
maintenance.
144+
* `rustdoc` was completely rewritten.
145+
* `rustdoc` can test code examples in documentation.
146+
* `rustpkg` can test packages with the argument, 'test'.
147+
* `rustpkg` supports arbitrary dependencies, including C libraries.
148+
* `rustc`'s support for generating debug info is improved again.
149+
* `rustc` has better error reporting for unbalanced delimiters.
150+
* `rustc`'s JIT support was removed due to bitrot.
151+
* Executables and static libraries can be built with LTO (-Z lto)
152+
* `rustc` adds a `--dep-info` flag for communicating dependencies to
153+
build tools.
8154

9155
Version 0.8 (September 2013)
10156
--------------------------

branches/auto/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ then
591591
LLVM_VERSION=$($LLVM_CONFIG --version)
592592

593593
case $LLVM_VERSION in
594-
(3.3|3.3svn|3.2|3.2svn)
594+
(3.[2-4]svn|3.[2-4])
595595
msg "found ok version of LLVM: $LLVM_VERSION"
596596
;;
597597
(*)

branches/auto/doc/rust.md

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -610,12 +610,12 @@ the behavior of the compiler.
610610

611611
~~~~
612612
// Package ID
613-
#[ pkgid = "projx#2.5" ];
613+
#[ crate_id = "projx#2.5" ];
614614
615615
// Additional metadata attributes
616616
#[ desc = "Project X" ];
617617
#[ license = "BSD" ];
618-
#[ author = "Jane Doe" ];
618+
#[ comment = "This is a comment on Project X." ];
619619
620620
// Specify the output type
621621
#[ crate_type = "lib" ];
@@ -776,9 +776,9 @@ as the `ident` provided in the `extern_mod_decl`.
776776
The external crate is resolved to a specific `soname` at compile time, and a
777777
runtime linkage requirement to that `soname` is passed to the linker for
778778
loading at runtime. The `soname` is resolved at compile time by scanning the
779-
compiler's library path and matching the optional `pkgid` provided as a string literal
780-
against the `pkgid` attributes that were declared on the external crate when
781-
it was compiled. If no `pkgid` is provided, a default `name` attribute is
779+
compiler's library path and matching the optional `crateid` provided as a string literal
780+
against the `crateid` attributes that were declared on the external crate when
781+
it was compiled. If no `crateid` is provided, a default `name` attribute is
782782
assumed, equal to the `ident` given in the `extern_mod_decl`.
783783

784784
Four examples of `extern mod` declarations:
@@ -1729,7 +1729,7 @@ names are effectively reserved. Some significant attributes include:
17291729
* The `cfg` attribute, for conditional-compilation by build-configuration.
17301730
* The `lang` attribute, for custom definitions of traits and functions that are known to the Rust compiler (see [Language items](#language-items)).
17311731
* The `link` attribute, for describing linkage metadata for a extern blocks.
1732-
* The `pkgid` attribute, for describing the package ID of a crate.
1732+
* The `crate_id` attribute, for describing the package ID of a crate.
17331733
* The `test` attribute, for marking functions as unit tests.
17341734
* The `allow`, `warn`, `forbid`, and `deny` attributes, for
17351735
controlling lint checks (see [Lint check attributes](#lint-check-attributes)).
@@ -3792,7 +3792,7 @@ specified then log level 4 is assumed. Debug messages can be omitted
37923792
by passing `--cfg ndebug` to `rustc`.
37933793

37943794
As an example, to see all the logs generated by the compiler, you would set
3795-
`RUST_LOG` to `rustc`, which is the crate name (as specified in its `pkgid`
3795+
`RUST_LOG` to `rustc`, which is the crate name (as specified in its `crate_id`
37963796
[attribute](#attributes)). To narrow down the logs to just crate resolution,
37973797
you would set it to `rustc::metadata::creader`. To see just error logging
37983798
use `rustc=0`.
@@ -3806,25 +3806,6 @@ As a convenience, the logging spec can also be set to a special pseudo-crate,
38063806
`::help`. In this case, when the application starts, the runtime will
38073807
simply output a list of loaded modules containing log expressions, then exit.
38083808

3809-
The Rust runtime itself generates logging information. The runtime's logs are
3810-
generated for a number of artificial modules in the `::rt` pseudo-crate,
3811-
and can be enabled just like the logs for any standard module. The full list
3812-
of runtime logging modules follows.
3813-
3814-
* `::rt::mem` Memory management
3815-
* `::rt::comm` Messaging and task communication
3816-
* `::rt::task` Task management
3817-
* `::rt::dom` Task scheduling
3818-
* `::rt::trace` Unused
3819-
* `::rt::cache` Type descriptor cache
3820-
* `::rt::upcall` Compiler-generated runtime calls
3821-
* `::rt::timer` The scheduler timer
3822-
* `::rt::gc` Garbage collection
3823-
* `::rt::stdlib` Functions used directly by the standard library
3824-
* `::rt::kern` The runtime kernel
3825-
* `::rt::backtrace` Log a backtrace on task failure
3826-
* `::rt::callback` Unused
3827-
38283809
#### Logging Expressions
38293810

38303811
Rust provides several macros to log information. Here's a simple Rust program

0 commit comments

Comments
 (0)