From d3650cb38fec0fedb9346f1932c2bc7fc48cec08 Mon Sep 17 00:00:00 2001 From: maikklein Date: Fri, 19 Jul 2013 00:35:51 +0200 Subject: [PATCH 1/4] updated manual --- doc/rust.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index f58d420bff58c..60eec431abcdf 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -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 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 that represent crates have the extension `.rc`, called *crate files*. +Source and crate files typically have the extension `.rs`. A Rust source file describes a module, the name and location of which -- in the module tree of the current crate -- are defined @@ -3251,7 +3250,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 use `rustc=0`. -Note that when compiling either `.rs` or `.rc` files that don't specify a +Note that when compiling either `source` or `crate` files that don't specify a 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 compiled from, e.g. `helloworld.rs`, `RUST_LOG` should be set to `helloworld`. From 019deaaee4c91f5b3df29ba01bd0afd843f0fd44 Mon Sep 17 00:00:00 2001 From: maikklein Date: Fri, 19 Jul 2013 00:56:10 +0200 Subject: [PATCH 2/4] removed backticks --- doc/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rust.md b/doc/rust.md index 60eec431abcdf..88dcb7ce21ae7 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -3250,7 +3250,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 use `rustc=0`. -Note that when compiling either `source` or `crate` files that don't specify a +Note that when compiling either source or crate files that don't specify a 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 compiled from, e.g. `helloworld.rs`, `RUST_LOG` should be set to `helloworld`. From 2c674456568c5802a124e8b3b176ee7c4cc9db62 Mon Sep 17 00:00:00 2001 From: maikklein Date: Fri, 19 Jul 2013 01:37:29 +0200 Subject: [PATCH 3/4] removed crate files --- doc/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rust.md b/doc/rust.md index 88dcb7ce21ae7..d963efc60cd94 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -3250,7 +3250,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 use `rustc=0`. -Note that when compiling either source or crate 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, 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`. From 7e0524e397894e09faad6cd937aedf1e9ec43ec6 Mon Sep 17 00:00:00 2001 From: maikklein Date: Fri, 19 Jul 2013 01:39:21 +0200 Subject: [PATCH 4/4] removing crate files #2 --- doc/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rust.md b/doc/rust.md index d963efc60cd94..a2d723c4cf91e 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -573,7 +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 processing of that source file may result in other source files being loaded as modules. -Source and crate files typically have the extension `.rs`. +Source files have the extension `.rs`. A Rust source file describes a module, the name and location of which -- in the module tree of the current crate -- are defined