Skip to content

Commit 1d95e7a

Browse files
committed
---
yaml --- r: 92862 b: refs/heads/auto c: 250ca0e h: refs/heads/master v: v3
1 parent 57aa7dc commit 1d95e7a

File tree

9 files changed

+32
-155
lines changed

9 files changed

+32
-155
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: d255d4a4ff394da96bb669fef7a70871e08498fa
16+
refs/heads/auto: 250ca0eb85ca7bf4497cdf68ecbaa5f90dc7439d
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libextra/getopts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
//!
3232
//! ~~~{.rust}
3333
//! extern mod extra;
34-
//! use extra::getopts::*;
34+
//! use extra::getopts::{optopt,optflag,getopts,Opt};
3535
//! use std::os;
3636
//!
3737
//! fn do_work(inp: &str, out: Option<~str>) {

branches/auto/src/librustc/back/link.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use back::archive::{Archive, METADATA_FILENAME};
1313
use back::rpath;
14-
use back::manifest;
1514
use driver::driver::CrateTranslation;
1615
use driver::session::Session;
1716
use driver::session;
@@ -828,12 +827,6 @@ fn link_binary_output(sess: Session,
828827
}
829828
session::OutputExecutable => {
830829
link_natively(sess, false, obj_filename, &out_filename);
831-
// Windows linker will add an ".exe" extension if there was none
832-
let out_filename = match out_filename.extension() {
833-
Some(_) => out_filename.clone(),
834-
None => out_filename.with_extension(win32::EXE_EXTENSION)
835-
};
836-
manifest::postprocess_executable(sess, &out_filename);
837830
}
838831
session::OutputDylib => {
839832
link_natively(sess, true, obj_filename, &out_filename);

branches/auto/src/librustc/back/manifest.rs

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

branches/auto/src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ pub mod front {
8888
pub mod back {
8989
pub mod archive;
9090
pub mod link;
91-
pub mod manifest;
9291
pub mod abi;
9392
pub mod arm;
9493
pub mod mips;

branches/auto/src/librustdoc/test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ fn maketest(s: &str, cratename: &str) -> @str {
138138
let mut prog = ~r"
139139
#[deny(warnings)];
140140
#[allow(unused_variable, dead_assignment, unused_mut, attribute_usage, dead_code)];
141-
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
142141
";
143142
if s.contains("extra") {
144143
prog.push_str("extern mod extra;\n");

branches/auto/src/libstd/rt/unwind.rs

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,29 @@ impl Unwinder {
180180
self.unwinding = true;
181181
self.cause = Some(cause);
182182

183-
unsafe {
184-
let exception = ~uw::_Unwind_Exception {
185-
exception_class: rust_exception_class(),
186-
exception_cleanup: exception_cleanup,
187-
private_1: 0,
188-
private_2: 0
189-
};
190-
let error = uw::_Unwind_RaiseException(cast::transmute(exception));
191-
rtabort!("Could not unwind stack, error = {}", error as int)
192-
}
183+
rust_fail();
193184

194-
extern "C" fn exception_cleanup(_unwind_code: uw::_Unwind_Reason_Code,
195-
exception: *uw::_Unwind_Exception) {
196-
rtdebug!("exception_cleanup()");
185+
// An uninlined, unmangled function upon which to slap yer breakpoints
186+
#[inline(never)]
187+
#[no_mangle]
188+
fn rust_fail() -> ! {
197189
unsafe {
198-
let _: ~uw::_Unwind_Exception = cast::transmute(exception);
190+
let exception = ~uw::_Unwind_Exception {
191+
exception_class: rust_exception_class(),
192+
exception_cleanup: exception_cleanup,
193+
private_1: 0,
194+
private_2: 0
195+
};
196+
let error = uw::_Unwind_RaiseException(cast::transmute(exception));
197+
rtabort!("Could not unwind stack, error = {}", error as int)
198+
}
199+
200+
extern "C" fn exception_cleanup(_unwind_code: uw::_Unwind_Reason_Code,
201+
exception: *uw::_Unwind_Exception) {
202+
rtdebug!("exception_cleanup()");
203+
unsafe {
204+
let _: ~uw::_Unwind_Exception = cast::transmute(exception);
205+
}
199206
}
200207
}
201208
}

branches/auto/src/libstd/str.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ there are three common kinds of strings in rust:
3838
As an example, here's a few different kinds of strings.
3939
4040
```rust
41-
let owned_string = ~"I am an owned string";
42-
let managed_string = @"This string is garbage-collected";
43-
let borrowed_string1 = "This string is borrowed with the 'static lifetime";
44-
let borrowed_string2: &str = owned_string; // owned strings can be borrowed
45-
let borrowed_string3: &str = managed_string; // managed strings can also be borrowed
41+
#[feature(managed_boxes)];
42+
43+
fn main() {
44+
let owned_string = ~"I am an owned string";
45+
let managed_string = @"This string is garbage-collected";
46+
let borrowed_string1 = "This string is borrowed with the 'static lifetime";
47+
let borrowed_string2: &str = owned_string; // owned strings can be borrowed
48+
let borrowed_string3: &str = managed_string; // managed strings can also be borrowed
49+
}
4650
```
4751
4852
From the example above, you can see that rust has 3 different kinds of string

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

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

0 commit comments

Comments
 (0)