Skip to content

std: Remove gc and stackwalk #8218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
358 changes: 0 additions & 358 deletions src/libstd/gc.rs

This file was deleted.

80 changes: 0 additions & 80 deletions src/libstd/stackwalk.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/libstd/std.rs
Original file line number Diff line number Diff line change
@@ -170,7 +170,6 @@ pub mod local_data;

/* Runtime and platform support */

pub mod gc;
pub mod libc;
pub mod os;
pub mod path;
@@ -196,7 +195,6 @@ pub mod unstable;
mod unicode;
#[path = "num/cmath.rs"]
mod cmath;
mod stackwalk;

// XXX: This shouldn't be pub, and it should be reexported under 'unstable'
// but name resolution doesn't work without it being pub.
4 changes: 0 additions & 4 deletions src/libstd/sys.rs
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@
#[allow(missing_doc)];

use cast;
use gc;
use io;
use libc;
use libc::{c_char, size_t};
@@ -147,7 +146,6 @@ pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! {
match context {
OldTaskContext => {
unsafe {
gc::cleanup_stack_for_failure();
rustrt::rust_upcall_fail(msg, file, line);
cast::transmute(())
}
@@ -180,8 +178,6 @@ pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! {
msg, file, line as int);
}

gc::cleanup_stack_for_failure();

let task = Local::unsafe_borrow::<Task>();
if (*task).unwinder.unwinding {
rtabort!("unwinding again");