Skip to content

Commit a192f95

Browse files
committed
---
yaml --- r: 68732 b: refs/heads/auto c: 17b3712 h: refs/heads/master v: v3
1 parent 5a3b5ba commit a192f95

File tree

20 files changed

+63
-56
lines changed

20 files changed

+63
-56
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: b0a9d8193f121db8115a1010659ee46f7186b2d5
17+
refs/heads/auto: 17b3712487a4cf2be30e6bd43e89a736a7d86908
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ endif
139139

140140
# version-string calculation
141141
CFG_GIT_DIR := $(CFG_SRC_DIR).git
142-
CFG_RELEASE = 0.8-pre
142+
CFG_RELEASE = 0.7
143143
CFG_VERSION = $(CFG_RELEASE)
144144
# windows exe's need numeric versions - don't use anything but
145145
# numbers and dots here
146-
CFG_VERSION_WIN = 0.8
146+
CFG_VERSION_WIN = 0.7
147147

148148
ifneq ($(wildcard $(CFG_GIT)),)
149149
ifneq ($(wildcard $(CFG_GIT_DIR)),)

branches/auto/src/etc/kate/rust.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!ENTITY rustIdent "[a-zA-Z_][a-zA-Z_0-9]*">
88
<!ENTITY rustIntSuf "([iu](8|16|32|64)?)?">
99
]>
10-
<language name="Rust" version="0.8-pre" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
10+
<language name="Rust" version="0.7" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
1111
<highlighting>
1212
<list name="fn">
1313
<item> fn </item>

branches/auto/src/libextra/extra.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Rust extras are part of the standard Rust distribution.
2121
*/
2222

2323
#[link(name = "extra",
24-
vers = "0.8-pre",
24+
vers = "0.7",
2525
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
2626
url = "https://github.com/mozilla/rust/tree/master/src/libextra")];
2727

branches/auto/src/librust/rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// FIXME #2238 Make run only accept source that emits an executable
1414

1515
#[link(name = "rust",
16-
vers = "0.8-pre",
16+
vers = "0.7",
1717
uuid = "4a24da33-5cc8-4037-9352-2cbe9bd9d27c",
1818
url = "https://github.com/mozilla/rust/tree/master/src/rust")];
1919

branches/auto/src/librustc/front/std_inject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use syntax::codemap::dummy_sp;
1818
use syntax::codemap;
1919
use syntax::fold;
2020

21-
static STD_VERSION: &'static str = "0.8-pre";
21+
static STD_VERSION: &'static str = "0.7";
2222

2323
pub fn maybe_inject_libstd_ref(sess: Session, crate: @ast::crate)
2424
-> @ast::crate {

branches/auto/src/librustc/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ mod __test {
273273
*/
274274

275275
fn mk_std(cx: &TestCtxt) -> ast::view_item {
276-
let vers = ast::lit_str(@"0.8-pre");
276+
let vers = ast::lit_str(@"0.7");
277277
let vers = nospan(vers);
278278
let mi = ast::meta_name_value(@"vers", vers);
279279
let mi = nospan(mi);

branches/auto/src/librustc/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
#[link(name = "rustc",
12-
vers = "0.8-pre",
12+
vers = "0.7",
1313
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
1414
url = "https://github.com/mozilla/rust/tree/master/src/rustc")];
1515

branches/auto/src/librustdoc/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! Rustdoc - The Rust documentation generator
1212
1313
#[link(name = "rustdoc",
14-
vers = "0.8-pre",
14+
vers = "0.7",
1515
uuid = "f8abd014-b281-484d-a0c3-26e3de8e2412",
1616
url = "https://github.com/mozilla/rust/tree/master/src/rustdoc")];
1717

branches/auto/src/librusti/rusti.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
*/
4545

4646
#[link(name = "rusti",
47-
vers = "0.8-pre",
47+
vers = "0.7",
4848
uuid = "7fb5bf52-7d45-4fee-8325-5ad3311149fc",
4949
url = "https://github.com/mozilla/rust/tree/master/src/rusti")];
5050

branches/auto/src/librustpkg/rustpkg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// rustpkg - a package manager and build system for Rust
1212

1313
#[link(name = "rustpkg",
14-
vers = "0.8-pre",
14+
vers = "0.7",
1515
uuid = "25de5e6e-279e-4a20-845c-4cabae92daaf",
1616
url = "https://github.com/mozilla/rust/tree/master/src/librustpkg")];
1717

branches/auto/src/libstd/std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ they contained the following prologue:
4949

5050

5151
#[link(name = "std",
52-
vers = "0.8-pre",
52+
vers = "0.7",
5353
uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
5454
url = "https://github.com/mozilla/rust/tree/master/src/libstd")];
5555

branches/auto/src/libsyntax/syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
#[link(name = "syntax",
17-
vers = "0.8-pre",
17+
vers = "0.7",
1818
uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];
1919

2020
#[license = "MIT/ASL2"];

branches/auto/src/test/compile-fail/borrowck-move-out-of-vec-tail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn main() {
1111
Foo { string: ~"baz" }
1212
];
1313
match x {
14-
[first, ..tail] => {
14+
[_, ..tail] => {
1515
match tail {
1616
[Foo { string: a }, Foo { string: b }] => {
1717
//~^ ERROR cannot move out of dereference of & pointer

branches/auto/src/test/compile-fail/borrowck-vec-pattern-nesting.rs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,41 @@ fn b() {
1717
}
1818
}
1919

20+
fn c() {
21+
let mut vec = [~1, ~2, ~3];
22+
match vec {
23+
[_a, .._b] => {
24+
//~^ ERROR cannot move out
25+
26+
// Note: `_a` is *moved* here, but `b` is borrowing,
27+
// hence illegal.
28+
//
29+
// See comment in middle/borrowck/gather_loans/mod.rs
30+
// in the case covering these sorts of vectors.
31+
}
32+
_ => {}
33+
}
34+
let a = vec[0]; //~ ERROR use of partially moved value: `vec`
35+
}
36+
37+
fn d() {
38+
let mut vec = [~1, ~2, ~3];
39+
match vec {
40+
[.._a, _b] => {
41+
//~^ ERROR cannot move out
42+
}
43+
_ => {}
44+
}
45+
let a = vec[0]; //~ ERROR use of partially moved value: `vec`
46+
}
47+
48+
fn e() {
49+
let mut vec = [~1, ~2, ~3];
50+
match vec {
51+
[_a, _b, _c] => {}
52+
_ => {}
53+
}
54+
let a = vec[0]; //~ ERROR use of partially moved value: `vec`
55+
}
56+
2057
fn main() {}

branches/auto/src/test/run-pass/borrowck-newtype-issue-2573.rs

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

branches/auto/src/test/run-pass/borrowck-wg-autoderef-and-autoborrowvec-combined-issue-6272.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828

2929

3030
fn main() {
31-
let a = @mut [3i];
32-
let b = @mut [a];
33-
let c = @mut b;
31+
let a = @mut 3i;
32+
// let b = @mut [a];
33+
// let c = @mut [3];
3434

3535
// this should freeze `a` only
36-
let _x: &mut [int] = c[0];
36+
let _x: &mut int = a;
3737

3838
// hence these writes should not fail:
39-
b[0] = b[0];
40-
c[0] = c[0];
39+
// b[0] = b[0];
40+
// c[0] = c[0];
4141
}

branches/auto/src/test/run-pass/match-pattern-drop.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
enum t { make_t(@int), clam, }
1515

1616
fn foo(s: @int) {
17+
debug!(::std::sys::refcount(s));
1718
let count = ::std::sys::refcount(s);
1819
let x: t = make_t(s); // ref up
20+
assert_eq!(::std::sys::refcount(s), count + 1u);
21+
debug!(::std::sys::refcount(s));
1922

2023
match x {
2124
make_t(y) => {
@@ -38,6 +41,5 @@ pub fn main() {
3841

3942
debug!("%u", ::std::sys::refcount(s));
4043
let count2 = ::std::sys::refcount(s);
41-
let _ = ::std::sys::refcount(s); // don't get bitten by last-use.
4244
assert_eq!(count, count2);
4345
}

branches/auto/src/test/run-pass/use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#[no_std];
1414
extern mod std;
1515
extern mod zed(name = "std");
16-
extern mod bar(name = "std", vers = "0.8-pre");
16+
extern mod bar(name = "std", vers = "0.7");
1717

1818

1919
use std::str;

branches/auto/src/test/run-pass/vec-tail-matching.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn main() {
99
Foo { string: ~"baz" }
1010
];
1111
match x {
12-
[first, ..tail] => {
12+
[ref first, ..tail] => {
1313
assert!(first.string == ~"foo");
1414
assert_eq!(tail.len(), 2);
1515
assert!(tail[0].string == ~"bar");

0 commit comments

Comments
 (0)