Skip to content

Commit 5ab7085

Browse files
committed
---
yaml --- r: 127087 b: refs/heads/snap-stage3 c: 055e25a h: refs/heads/master i: 127085: c01a733 127083: b1509d8 127079: 2cf084c 127071: 4017d3c v: v3
1 parent a4fcd0f commit 5ab7085

File tree

35 files changed

+186
-114
lines changed

35 files changed

+186
-114
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: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 821262f30e537d21440976d3f36b935c5e45d008
4+
refs/heads/snap-stage3: 055e25acbe9fd48e0791c6a97db27a19b4f36b45
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ doc/$(1)/:
285285
$(2) += doc/$(1)/index.html
286286
doc/$(1)/index.html: CFG_COMPILER_HOST_TRIPLE = $(CFG_TARGET)
287287
doc/$(1)/index.html: $$(LIB_DOC_DEP_$(1)) doc/$(1)/
288-
@$$(call E, rustdoc $$@)
288+
@$$(call E, rustdoc: $$@)
289289
$$(Q)$$(RUSTDOC) --cfg dox --cfg stage2 $$<
290290
endef
291291

branches/snap-stage3/src/compiletest/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub struct Config {
136136
// Extra parameter to run adb on arm-linux-androideabi
137137
pub adb_path: String,
138138

139-
// Extra parameter to run test sute on arm-linux-androideabi
139+
// Extra parameter to run test suite on arm-linux-androideabi
140140
pub adb_test_dir: String,
141141

142142
// status whether android device available or not

branches/snap-stage3/src/compiletest/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
325325
let DebuggerCommands { commands, check_lines, .. } = parse_debugger_commands(testfile, "gdb");
326326
let mut cmds = commands.connect("\n");
327327

328-
// compile test file (it shoud have 'compile-flags:-g' in the header)
328+
// compile test file (it should have 'compile-flags:-g' in the header)
329329
let compiler_run_result = compile_test(config, props, testfile);
330330
if !compiler_run_result.status.success() {
331331
fatal_proc_rec("compilation failed!", &compiler_run_result);
@@ -520,7 +520,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
520520

521521
let config = &mut config;
522522

523-
// compile test file (it shoud have 'compile-flags:-g' in the header)
523+
// compile test file (it should have 'compile-flags:-g' in the header)
524524
let compile_result = compile_test(config, props, testfile);
525525
if !compile_result.status.success() {
526526
fatal_proc_rec("compilation failed!", &compile_result);

branches/snap-stage3/src/doc/complement-design-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Rust Design FAQ
1+
% The Rust Design FAQ
22

33
This document describes decisions were arrived at after lengthy discussion and
44
experimenting with alternatives. Please do not propose reversing them unless

branches/snap-stage3/src/doc/complement-lang-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Language FAQ
1+
% The Rust Language FAQ
22

33
## Are there any big programs written in it yet? I want to read big samples.
44

branches/snap-stage3/src/doc/complement-project-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Project FAQ
1+
% The Rust Project FAQ
22

33
# What is this project's goal, in one sentence?
44

branches/snap-stage3/src/doc/guide-strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% The Strings Guide
1+
% The Guide to Rust Strings
22

33
Strings are an important concept to master in any programming language. If you
44
come from a managed language background, you may be surprised at the complexity

branches/snap-stage3/src/doc/guide-unsafe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Writing Safe Unsafe and Low-Level Code
1+
% Writing Unsafe and Low-Level Code in Rust
22

33
# Introduction
44

branches/snap-stage3/src/doc/guide.md

Lines changed: 30 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Put this inside:
316316
317317
name = "hello_world"
318318
version = "0.1.0"
319-
authors = [ "someone@example.com" ]
319+
authors = [ "Your name <you@example.com>" ]
320320
321321
[[bin]]
322322
@@ -354,6 +354,18 @@ file, we would need to call `rustc` twice, and pass it a bunch of options to
354354
tell it to build everything together. With Cargo, as our project grows, we can
355355
just `cargo build` and it'll work the right way.
356356

357+
You'll also notice that Cargo has created a new file: `Cargo.lock`.
358+
359+
```{ignore,notrust}
360+
[root]
361+
name = "hello_world"
362+
version = "0.0.1"
363+
```
364+
365+
This file is used by Cargo to keep track of dependencies in your application.
366+
Right now, we don't have any, so it's a bit sparse. You won't ever need
367+
to touch this file yourself, just let Cargo handle it.
368+
357369
That's it! We've successfully built `hello_world` with Cargo. Even though our
358370
program is simple, it's using much of the real tooling that you'll use for the
359371
rest of your Rust career.
@@ -1594,41 +1606,45 @@ taken to the screen. Sound good?
15941606

15951607
## Set up
15961608

1597-
Let's set up a new project. Go to your projects directory, and make a new
1598-
directory for the project, as well as a `src` directory for our code:
1609+
Let's set up a new project. Go to your projects directory. Remember how we
1610+
had to create our directory structure and a `Cargo.toml` for `hello_world`? Cargo
1611+
has a command that does that for us. Let's give it a shot:
15991612

16001613
```{bash}
16011614
$ cd ~/projects
1602-
$ mkdir guessing_game
1615+
$ cargo new guessing_game --bin
16031616
$ cd guessing_game
1604-
$ mkdir src
16051617
```
16061618

1607-
Great. Next, let's make a `Cargo.toml` file so Cargo knows how to build our
1608-
project:
1619+
We pass the name of our project to `cargo new`, and then the `--bin` flag,
1620+
since we're making a binary, rather than a library.
1621+
1622+
Check out the generated `Cargo.toml`:
16091623

16101624
```{ignore}
16111625
[package]
16121626
16131627
name = "guessing_game"
16141628
version = "0.1.0"
1615-
authors = [ "someone@example.com" ]
1629+
authors = ["Your Name <you@example.com>"]
16161630
16171631
[[bin]]
16181632
16191633
name = "guessing_game"
16201634
```
16211635

1622-
Finally, we need our source file. Let's just make it hello world for now, so we
1623-
can check that our setup works. In `src/guessing_game.rs`:
1636+
Cargo gets this information from your environment. If it's not correct, go ahead
1637+
and fix that.
1638+
1639+
Finally, Cargo generated a hello, world for us. Check out `src/main.rs`:
16241640

16251641
```{rust}
16261642
fn main() {
16271643
println!("Hello world!");
16281644
}
16291645
```
16301646

1631-
Let's make sure that worked:
1647+
Let's try compiling what Cargo gave us:
16321648

16331649
```{bash}
16341650
$ cargo build
@@ -1883,7 +1899,6 @@ fn cmp(a: int, b: int) -> Ordering {
18831899
If we try to compile, we'll get some errors:
18841900

18851901
```{notrust,ignore}
1886-
$ cargo build
18871902
$ cargo build
18881903
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
18891904
src/guessing_game.rs:20:15: 20:20 error: mismatched types: expected `int` but found `collections::string::String` (expected int but found struct collections::string::String)
@@ -2486,27 +2501,7 @@ Enough talk, let's build something! Let's make a new project called `modules`.
24862501

24872502
```{bash,ignore}
24882503
$ cd ~/projects
2489-
$ mkdir modules
2490-
$ cd modules
2491-
$ mkdir src
2492-
```
2493-
2494-
We need to make our two 'hello world' files. In `src/main.rs`:
2495-
2496-
```{rust}
2497-
fn main() {
2498-
println!("Hello, world!");
2499-
}
2500-
```
2501-
2502-
And in `Cargo.toml`:
2503-
2504-
```{notrust,ignore}
2505-
[package]
2506-
2507-
name = "modules"
2508-
version = "0.1.0"
2509-
authors = [ "[email protected]" ]
2504+
$ cargo new modules --bin
25102505
```
25112506

25122507
Let's double check our work by compiling:
@@ -2924,34 +2919,16 @@ now: make a new project:
29242919

29252920
```{bash,ignore}
29262921
$ cd ~/projects
2927-
$ mkdir testing
2922+
$ cargo new testing --bin
29282923
$ cd testing
2929-
$ mkdir test
2930-
```
2931-
2932-
In `src/main.rs`:
2933-
2934-
```{rust}
2935-
fn main() {
2936-
println!("Hello, world!");
2937-
}
2938-
```
2939-
2940-
And in `Cargo.toml`:
2941-
2942-
```{notrust,ignore}
2943-
[package]
2944-
2945-
name = "testing"
2946-
version = "0.1.0"
2947-
authors = [ "[email protected]" ]
29482924
```
29492925

29502926
And try it out:
29512927

29522928
```{notrust,ignore}
29532929
$ cargo run
29542930
Compiling testing v0.1.0 (file:/home/you/projects/testing)
2931+
Running `target/testing`
29552932
Hello, world!
29562933
$
29572934
```

branches/snap-stage3/src/doc/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Rust documentation
1+
% Rust Documentation
22

33
<!-- Completely hide the TOC and the section numbers -->
44
<style type="text/css">
@@ -19,7 +19,7 @@ li {list-style-type: none; }
1919
* [Containers and Iterators](guide-container.html)
2020
* [Tasks and Communication](guide-tasks.html)
2121
* [Foreign Function Interface](guide-ffi.html)
22-
* [Writing Safe Unsafe and Low-Level Code](guide-unsafe.html)
22+
* [Writing Unsafe and Low-Level Code](guide-unsafe.html)
2323
* [Macros](guide-macros.html)
2424
* [Testing](guide-testing.html)
2525
* [Rust's Runtime](guide-runtime.html)

branches/snap-stage3/src/doc/rust.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,11 +1823,11 @@ meta_item : ident [ '=' literal
18231823
meta_seq : meta_item [ ',' meta_seq ] ? ;
18241824
~~~~
18251825

1826-
Static entities in Rust &mdash; crates, modules and items &mdash; may have _attributes_
1827-
applied to them. Attributes in Rust are modeled on Attributes in ECMA-335,
1828-
with the syntax coming from ECMA-334 (C#). An attribute is a general,
1829-
free-form metadatum that is interpreted according to name, convention, and
1830-
language and compiler version. Attributes may appear as any of:
1826+
Any item declaration may have an _attribute_ applied to it. Attributes in Rust
1827+
are modeled on Attributes in ECMA-335, with the syntax coming from ECMA-334
1828+
(C#). An attribute is a general, free-form metadatum that is interpreted
1829+
according to name, convention, and language and compiler version. Attributes
1830+
may appear as any of:
18311831

18321832
* A single identifier, the attribute name
18331833
* An identifier followed by the equals sign '=' and a literal, providing a

branches/snap-stage3/src/libcollections/bitv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ pub struct BitPositions<'a> {
15321532
next_idx: uint
15331533
}
15341534

1535-
/// An iterator combining wo `BitvSet` iterators.
1535+
/// An iterator combining two `BitvSet` iterators.
15361536
pub struct TwoBitPositions<'a> {
15371537
set: &'a BitvSet,
15381538
other: &'a BitvSet,

branches/snap-stage3/src/libcollections/priority_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
//! // 10 | |
120120
//! // +---------------+
121121
//! //
122-
//! // The graph is represented as an adjecency list where each index,
122+
//! // The graph is represented as an adjacency list where each index,
123123
//! // corresponding to a node value, has a list of outgoing edges.
124124
//! // Chosen for it's efficiency.
125125
//! let graph = vec![

branches/snap-stage3/src/libcollections/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ pub mod raw {
842842
/// Create a `String` from a null-terminated *u8 buffer
843843
///
844844
/// This function is unsafe because we dereference memory until we find the NUL character,
845-
/// which is not guaranteed to be present. Additionaly, the slice is not checked to see
845+
/// which is not guaranteed to be present. Additionally, the slice is not checked to see
846846
/// whether it contains valid UTF-8
847847
pub unsafe fn from_buf(buf: *const u8) -> String {
848848
let mut len = 0;

branches/snap-stage3/src/libcore/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ pub struct UnsafeCell<T> {
449449
}
450450

451451
impl<T> UnsafeCell<T> {
452-
/// Construct a new instance of `UnsafeCell` which will wrapp the specified
452+
/// Construct a new instance of `UnsafeCell` which will wrap the specified
453453
/// value.
454454
///
455455
/// All access to the inner value through methods is `unsafe`, and it is

branches/snap-stage3/src/libgreen/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ extern fn bootstrap_green_task(task: uint, code: *mut (), env: *mut ()) -> ! {
118118
// preserving a handle to the GreenTask down to this point, this
119119
// unfortunately must call `GreenTask::convert`. In order to avoid
120120
// this we could add a `terminate` function to the `Runtime` trait
121-
// in libstd, but that seems less appropriate since the coversion
121+
// in libstd, but that seems less appropriate since the conversion
122122
// method exists.
123123
GreenTask::convert(task).terminate();
124124
}

branches/snap-stage3/src/libnative/io/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ impl rtio::RtioUdpSocket for UdpSocket {
769769
// It turns out that there's this nifty MSG_DONTWAIT flag which can be passed to
770770
// send/recv, but the niftiness wears off once you realize it only works well on
771771
// linux [1] [2]. This means that it's pretty easy to get a nonblocking
772-
// operation on linux (no flag fidding, no affecting other objects), but not on
772+
// operation on linux (no flag fiddling, no affecting other objects), but not on
773773
// other platforms.
774774
//
775775
// To work around this constraint on other platforms, we end up using the

branches/snap-stage3/src/libnative/io/pipe_win32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl UnixStream {
311311
}
312312
}
313313

314-
// An example I found on microsoft's website used 20
314+
// An example I found on Microsoft's website used 20
315315
// seconds, libuv uses 30 seconds, hence we make the
316316
// obvious choice of waiting for 25 seconds.
317317
None => {

branches/snap-stage3/src/librustc/metadata/loader.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! Finds crate binaries and loads their metadata
1212
//!
1313
//! Might I be the first to welcome you to a world of platform differences,
14-
//! version requirements, dependency graphs, conficting desires, and fun! This
14+
//! version requirements, dependency graphs, conflicting desires, and fun! This
1515
//! is the major guts (along with metadata::creader) of the compiler for loading
1616
//! crates and resolving dependencies. Let's take a tour!
1717
//!
@@ -83,7 +83,7 @@
8383
//! 5. Does the target in the metadata agree with the current target?
8484
//! 6. Does the SVH match? (more on this later)
8585
//!
86-
//! If the file answeres `yes` to all these questions, then the file is
86+
//! If the file answers `yes` to all these questions, then the file is
8787
//! considered as being *candidate* for being accepted. It is illegal to have
8888
//! more than two candidates as the compiler has no method by which to resolve
8989
//! this conflict. Additionally, rlib/dylib candidates are considered
@@ -173,7 +173,7 @@
173173
//! ## Loading transitive dependencies
174174
//!
175175
//! Dealing with same-named-but-distinct crates is not just a local problem, but
176-
//! one that also needs to be dealt with for transitive dependences. Note that
176+
//! one that also needs to be dealt with for transitive dependencies. Note that
177177
//! in the letter above `--extern` flags only apply to the *local* set of
178178
//! dependencies, not the upstream transitive dependencies. Consider this
179179
//! dependency graph:
@@ -660,7 +660,7 @@ impl<'a> Context<'a> {
660660
false
661661
});
662662

663-
// Now that we have an itertor of good candidates, make sure there's at
663+
// Now that we have an iterator of good candidates, make sure there's at
664664
// most one rlib and at most one dylib.
665665
let mut rlibs = HashSet::new();
666666
let mut dylibs = HashSet::new();

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub struct ctxt {
269269

270270
/// Stores the type parameters which were substituted to obtain the type
271271
/// of this node. This only applies to nodes that refer to entities
272-
/// param<eterized by type parameters, such as generic fns, types, or
272+
/// parameterized by type parameters, such as generic fns, types, or
273273
/// other items.
274274
pub item_substs: RefCell<NodeMap<ItemSubsts>>,
275275

0 commit comments

Comments
 (0)