updated manual

This commit is contained in:
maikklein
2013-07-19 00:35:51 +02:00
committed by Daniel Micay
parent 0cdb0a2189
commit b082302727

View File

@@ -573,8 +573,7 @@ The top level of this tree is a module that is anonymous (from the point of view
The Rust compiler is always invoked with a single source file as input, and always produces a single output crate. The Rust compiler is always invoked with a single source file as input, and always produces a single output crate.
The processing of that source file may result in other source files being loaded as modules. The processing of that source file may result in other source files being loaded as modules.
Source files typically have the extension `.rs` but, by convention, Source files have the extension `.rs`.
source files that represent crates have the extension `.rc`, called *crate files*.
A Rust source file describes a module, the name and A Rust source file describes a module, the name and
location of which -- in the module tree of the current crate -- are defined location of which -- in the module tree of the current crate -- are defined
@@ -3286,7 +3285,7 @@ As an example, to see all the logs generated by the compiler, you would set
you would set it to `rustc::metadata::creader`. To see just error logging you would set it to `rustc::metadata::creader`. To see just error logging
use `rustc=0`. use `rustc=0`.
Note that when compiling either `.rs` or `.rc` files that don't specify a Note that when compiling source files that don't specify a
crate name the crate is given a default name that matches the source file, crate name the crate is given a default name that matches the source file,
with the extension removed. In that case, to turn on logging for a program with the extension removed. In that case, to turn on logging for a program
compiled from, e.g. `helloworld.rs`, `RUST_LOG` should be set to `helloworld`. compiled from, e.g. `helloworld.rs`, `RUST_LOG` should be set to `helloworld`.