Skip to content

Commit 0e4f0ff

Browse files
committed
---
yaml --- r: 212823 b: refs/heads/master c: a9ea380 h: refs/heads/master i: 212821: a1b0f98 212819: 6749de3 212815: f947e07 v: v3
1 parent e1eeb3c commit 0e4f0ff

File tree

11 files changed

+52
-16
lines changed

11 files changed

+52
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3c6dcea985ad75934901f3cb988af93687dce26d
2+
refs/heads/master: a9ea3805232df6aa8fb0c893ede488a5ce457cbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05

trunk/.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ before_script:
1616
script:
1717
- make tidy
1818

19+
# Real testing happens on http://buildbot.rust-lang.org/
20+
#
21+
# See https://github.com/rust-lang/rust-buildbot
22+
# CONTRIBUTING.md#pull-requests
23+
1924
notifications:
2025
email: false
2126

trunk/mk/cfg/x86_64-pc-windows-msvc.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CPP_x86_64-pc-windows-msvc="$(CFG_MSVC_CL)" -nologo
66
AR_x86_64-pc-windows-msvc="$(CFG_MSVC_LIB)" -nologo
77
CFG_LIB_NAME_x86_64-pc-windows-msvc=$(1).dll
88
CFG_STATIC_LIB_NAME_x86_64-pc-windows-msvc=$(1).lib
9-
CFG_LIB_GLOB_x86_64-pc-windows-msvc=$(1)-*.dll
9+
CFG_LIB_GLOB_x86_64-pc-windows-msvc=$(1)-*.{dll,lib}
1010
CFG_LIB_DSYM_GLOB_x86_64-pc-windows-msvc=$(1)-*.dylib.dSYM
1111
CFG_JEMALLOC_CFLAGS_x86_64-pc-windows-msvc :=
1212
CFG_GCCISH_CFLAGS_x86_64-pc-windows-msvc := -MD

trunk/mk/prepare.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ define PREPARE_LIB
6363
echo " at destination $(PREPARE_WORKING_DEST_LIB_DIR):" && \
6464
echo $$MATCHES ; \
6565
fi
66-
$(Q)$(PREPARE_LIB_CMD) `ls -drt1 $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1) | tail -1` $(PREPARE_WORKING_DEST_LIB_DIR)/
66+
$(Q)$(PREPARE_LIB_CMD) `ls -drt1 $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1)` $(PREPARE_WORKING_DEST_LIB_DIR)/
6767
endef
6868

6969
# Copy a man page

trunk/src/doc/trpl/hello-cargo.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ To start a new project with Cargo, use `cargo new`:
145145
$ cargo new hello_world --bin
146146
```
147147

148-
We’re passing `--bin` because we're making a binary program: if we were making
149-
a library, we'd leave it off.
148+
We’re passing `--bin` because our goal is to get straight to making an executable application, as opposed to a library. Executables are often called ‘binaries.’ (as in `/usr/bin`, if you’re on a Unix system)
150149

151150
Let's check out what Cargo has generated for us:
152151

trunk/src/doc/trpl/installing-rust.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ $ sh rustup.sh
2424

2525
[insecurity]: http://curlpipesh.tumblr.com
2626

27-
If you're on Windows, please download either the [32-bit installer][win32] or
28-
the [64-bit installer][win64] and run it.
27+
If you're on Windows, please download the appropriate [installer][install-page].
2928

30-
[win32]: https://static.rust-lang.org/dist/rust-1.0.0-i686-pc-windows-gnu.msi
31-
[win64]: https://static.rust-lang.org/dist/rust-1.0.0-x86_64-pc-windows-gnu.msi
29+
[install-page]: http://www.rust-lang.org/install.html
3230

3331
## Uninstalling
3432

@@ -51,7 +49,6 @@ documentation on [building Rust from Source][from-source], or [the official
5149
binary downloads][install-page].
5250

5351
[from-source]: https://github.com/rust-lang/rust#building-from-source
54-
[install-page]: http://www.rust-lang.org/install.html
5552

5653
Oh, we should also mention the officially supported platforms:
5754

@@ -75,10 +72,11 @@ If you've got Rust installed, you can open up a shell, and type this:
7572
$ rustc --version
7673
```
7774

78-
You should see the version number, commit hash, commit date and build date:
75+
You should see the version number, commit hash, and commit date. If you just
76+
installed version 1.0.0, you should see:
7977

8078
```bash
81-
rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)
79+
rustc 1.0.0 (a59de37e9 2015-05-13)
8280
```
8381

8482
If you did, Rust has been installed successfully! Congrats!

trunk/src/librustc_driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use super::Compilation;
3333
use serialize::json;
3434

3535
use std::env;
36-
use std::ffi::OsString;
36+
use std::ffi::{OsString, OsStr};
3737
use std::fs;
3838
use std::io::{self, Write};
3939
use std::path::{Path, PathBuf};
@@ -966,7 +966,7 @@ pub fn build_output_filenames(input: &Input,
966966

967967
OutputFilenames {
968968
out_directory: out_file.parent().unwrap_or(cur_dir).to_path_buf(),
969-
out_filestem: out_file.file_stem().unwrap()
969+
out_filestem: out_file.file_stem().unwrap_or(OsStr::new(""))
970970
.to_str().unwrap().to_string(),
971971
single_output_file: ofile,
972972
extra: sess.opts.cg.extra_filename.clone(),

trunk/src/librustc_typeck/collect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ fn check_method_self_type<'a, 'tcx, RS:RegionScope>(
21742174
if let ast::SelfExplicit(ref ast_type, _) = explicit_self.node {
21752175
let typ = ccx.icx(&method_type.predicates).to_ty(rs, &**ast_type);
21762176
let base_type = match typ.sty {
2177-
ty::ty_ptr(tm) | ty::ty_rptr(_, tm) => tm.ty,
2177+
ty::ty_rptr(_, tm) => tm.ty,
21782178
ty::ty_uniq(typ) => typ,
21792179
_ => typ,
21802180
};
@@ -2220,7 +2220,7 @@ fn check_method_self_type<'a, 'tcx, RS:RegionScope>(
22202220
ppaux::ty_to_string(tcx, required_type))
22212221
}));
22222222

2223-
// We could conceviably add more free-reion relations here,
2223+
// We could conceviably add more free-region relations here,
22242224
// but since this code is just concerned with checking that
22252225
// the `&Self` types etc match up, it's not really necessary.
22262226
// It would just allow people to be more approximate in some
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
struct S(String);
12+
13+
impl S {
14+
fn f(self: *mut S) -> String { self.0 }
15+
//~^ ERROR mismatched self type
16+
}
17+
18+
fn main() { S("".to_owned()).f(); }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-include ../tools.mk
2+
3+
all:
4+
$(RUSTC) -o "" blank.rs 2>&1 | \
5+
grep 'No such file or directory'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
fn main() {}

0 commit comments

Comments
 (0)