Skip to content

Commit 818e36e

Browse files
committed
---
yaml --- r: 274252 b: refs/heads/stable c: 37b48ed h: refs/heads/master
1 parent d72167c commit 818e36e

Some content is hidden

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

45 files changed

+800
-879
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: a19353643bf9ad38dfa05fbea94c01b795989569
32+
refs/heads/stable: 37b48edb5308a4d6559c7de533e8409b35da89ea
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/doc/book/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ and [`rustc-serialize`](https://crates.io/crates/rustc-serialize) crates.
15121512

15131513
We're not going to spend a lot of time on setting up a project with
15141514
Cargo because it is already covered well in [the Cargo
1515-
section](../book/hello-cargo.html) and [Cargo's documentation][14].
1515+
section](getting-started.html#hello-cargo) and [Cargo's documentation][14].
15161516

15171517
To get started from scratch, run `cargo new --bin city-pop` and make sure your
15181518
`Cargo.toml` looks something like this:

branches/stable/src/doc/book/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,11 +604,11 @@ This chapter covered the basics that will serve you well through the rest of
604604
this book, and the rest of your time with Rust. Now that you’ve got the tools
605605
down, we'll cover more about the Rust language itself.
606606

607-
You have two options: Dive into a project with ‘[Learn Rust][learnrust]’, or
607+
You have two options: Dive into a project with ‘[Tutorial: Guessing Game][guessinggame]’, or
608608
start from the bottom and work your way up with ‘[Syntax and
609609
Semantics][syntax]’. More experienced systems programmers will probably prefer
610-
Learn Rust’, while those from dynamic backgrounds may enjoy either. Different
610+
Tutorial: Guessing Game’, while those from dynamic backgrounds may enjoy either. Different
611611
people learn differently! Choose whatever’s right for you.
612612

613-
[learnrust]: learn-rust.html
613+
[guessinggame]: guessing-game.html
614614
[syntax]: syntax-and-semantics.html

branches/stable/src/doc/book/learn-rust.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

branches/stable/src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ pub mod middle {
108108
pub mod free_region;
109109
pub mod intrinsicck;
110110
pub mod infer;
111-
pub mod implicator;
112111
pub mod lang_items;
113112
pub mod liveness;
114113
pub mod mem_categorization;

branches/stable/src/librustc/middle/cstore.rs

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -267,24 +267,28 @@ impl InlinedItem {
267267

268268
// FIXME: find a better place for this?
269269
pub fn validate_crate_name(sess: Option<&Session>, s: &str, sp: Option<Span>) {
270-
let say = |s: &str| {
271-
match (sp, sess) {
272-
(_, None) => panic!("{}", s),
273-
(Some(sp), Some(sess)) => sess.span_err(sp, s),
274-
(None, Some(sess)) => sess.err(s),
270+
let mut err_count = 0;
271+
{
272+
let mut say = |s: &str| {
273+
match (sp, sess) {
274+
(_, None) => panic!("{}", s),
275+
(Some(sp), Some(sess)) => sess.span_err(sp, s),
276+
(None, Some(sess)) => sess.err(s),
277+
}
278+
err_count += 1;
279+
};
280+
if s.is_empty() {
281+
say("crate name must not be empty");
282+
}
283+
for c in s.chars() {
284+
if c.is_alphanumeric() { continue }
285+
if c == '_' { continue }
286+
say(&format!("invalid character `{}` in crate name: `{}`", c, s));
275287
}
276-
};
277-
if s.is_empty() {
278-
say("crate name must not be empty");
279-
}
280-
for c in s.chars() {
281-
if c.is_alphanumeric() { continue }
282-
if c == '_' { continue }
283-
say(&format!("invalid character `{}` in crate name: `{}`", c, s));
284288
}
285-
match sess {
286-
Some(sess) => sess.abort_if_errors(),
287-
None => {}
289+
290+
if err_count > 0 {
291+
sess.unwrap().abort_if_errors();
288292
}
289293
}
290294

0 commit comments

Comments
 (0)