Skip to content

Commit d5b3b29

Browse files
committed
---
yaml --- r: 81077 b: refs/heads/snap-stage3 c: 32f97cc h: refs/heads/master i: 81075: 834432b v: v3
1 parent ca65af1 commit d5b3b29

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
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: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e3624ed968905b789b35c2301eb3c8057c05b3b3
4+
refs/heads/snap-stage3: 32f97cc891a6a2857338b4fcc7bb022e609eac1c
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librust/rust.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ extern mod rustc;
2828
use std::io;
2929
use std::os;
3030
use std::run;
31+
use std::libc::exit;
3132

3233
enum ValidUsage {
3334
Valid(int), Invalid
@@ -234,7 +235,7 @@ pub fn main() {
234235

235236
if (os_args.len() > 1 && (os_args[1] == ~"-v" || os_args[1] == ~"--version")) {
236237
rustc::version(os_args[0]);
237-
return;
238+
unsafe { exit(0); }
238239
}
239240

240241
let args = os_args.tail();
@@ -244,11 +245,8 @@ pub fn main() {
244245
for command in r.iter() {
245246
let result = do_command(command, args.tail());
246247
match result {
247-
Valid(exit_code) => {
248-
os::set_exit_status(exit_code);
249-
return;
250-
}
251-
_ => loop
248+
Valid(exit_code) => unsafe { exit(exit_code.to_i32()) },
249+
_ => loop
252250
}
253251
}
254252
}

branches/snap-stage3/src/libsyntax/ext/expand.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,9 +1640,10 @@ mod test {
16401640
macro_rules! user(($x:ident) => ({letty!($x); $x}))
16411641
fn main() -> int {user!(z)}",
16421642
~[~[0]], false),
1643-
// FIXME #8062: this test exposes a *potential* bug; our system does
1644-
// not behave exactly like MTWT, but I haven't thought of a way that
1645-
// this could cause a bug in Rust, yet.
1643+
// no longer a fixme #8062: this test exposes a *potential* bug; our system does
1644+
// not behave exactly like MTWT, but a conversation with Matthew Flatt
1645+
// suggests that this can only occur in the presence of local-expand, which
1646+
// we have no plans to support.
16461647
// ("fn main() {let hrcoo = 19; macro_rules! getx(()=>(hrcoo)); getx!();}",
16471648
// ~[~[0]], true)
16481649
// FIXME #6994: the next string exposes the bug referred to in issue 6994, so I'm
@@ -1655,6 +1656,7 @@ mod test {
16551656
// fn a(){g!(z)}"
16561657
// create a really evil test case where a $x appears inside a binding of $x
16571658
// but *shouldnt* bind because it was inserted by a different macro....
1659+
// can't write this test case until we have macro-generating macros.
16581660
];
16591661
for (idx,s) in tests.iter().enumerate() {
16601662
run_renaming_test(s,idx);

0 commit comments

Comments
 (0)