diff options
| author | Philipp Brüschweiler <blei42@gmail.com> | 2013-06-21 10:00:49 +0200 |
|---|---|---|
| committer | Philipp Brüschweiler <blei42@gmail.com> | 2013-06-23 12:49:16 +0200 |
| commit | 976c0b3dfb6a0da8a70958f157507b5dcf7c5ceb (patch) | |
| tree | bb7afcd189fcab9ab60366b7cb885573dad7be17 /src/libstd/sys.rs | |
| parent | 273f90566c26309c13ebe10278f8745e978250b2 (diff) | |
| download | rust-976c0b3dfb6a0da8a70958f157507b5dcf7c5ceb.tar.gz rust-976c0b3dfb6a0da8a70958f157507b5dcf7c5ceb.zip | |
Remove rust_call_tydesc_glue
Towards #4812. Also includes some minor cleanups.
Diffstat (limited to 'src/libstd/sys.rs')
| -rw-r--r-- | src/libstd/sys.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs index 7f80375c2f6..a1d6342323c 100644 --- a/src/libstd/sys.rs +++ b/src/libstd/sys.rs @@ -22,17 +22,6 @@ use repr; use str; use unstable::intrinsics; -// Corresponds to runtime type_desc type -#[cfg(stage0)] -pub struct TypeDesc { - size: uint, - align: uint, - take_glue: uint, - drop_glue: uint, - free_glue: uint - // Remaining fields not listed -} - /// The representation of a Rust closure pub struct Closure { code: *(), @@ -50,18 +39,6 @@ pub mod rustrt { } } -/** - * Returns a pointer to a type descriptor. - * - * Useful for calling certain function in the Rust runtime or otherwise - * performing dark magick. - */ -#[inline] -#[cfg(stage0)] -pub fn get_type_desc<T>() -> *TypeDesc { - unsafe { intrinsics::get_tydesc::<T>() as *TypeDesc } -} - /// Returns the size of a type #[inline] pub fn size_of<T>() -> uint { |
