Skip to content

Commit

Permalink
librustc: Remove trans::reflect and the opaque and ty_visitor lang it…
Browse files Browse the repository at this point in the history
…ems.
  • Loading branch information
luqmana committed Oct 16, 2014
1 parent 7210a5a commit 3410c52
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 493 deletions.
4 changes: 0 additions & 4 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2279,8 +2279,6 @@ These types help drive the compiler's analysis
: The lifetime parameter should be considered invariant
* `malloc`
: Allocate memory on the managed heap.
* `opaque`
: ___Needs filling in___
* `owned_box`
: ___Needs filling in___
* `stack_exhausted`
Expand All @@ -2295,8 +2293,6 @@ These types help drive the compiler's analysis
: The type parameter should be considered invariant
* `ty_desc`
: ___Needs filling in___
* `ty_visitor`
: ___Needs filling in___

> **Note:** This list is likely to become out of date. We should auto-generate
> it from `librustc/middle/lang_items.rs`.
Expand Down
3 changes: 3 additions & 0 deletions src/libcore/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@ pub struct TyDesc {
pub name: &'static str,
}

#[cfg(stage0)]
#[lang="opaque"]
pub enum Opaque { }

#[cfg(stage0)]
pub type Disr = u64;

#[cfg(stage0)]
#[lang="ty_visitor"]
pub trait TyVisitor {
fn visit_bot(&mut self) -> bool;
Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/lang_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ lets_do_this! {
StartFnLangItem, "start", start_fn;

TyDescStructLangItem, "ty_desc", ty_desc;
TyVisitorTraitLangItem, "ty_visitor", ty_visitor;
OpaqueStructLangItem, "opaque", opaque;

TypeIdLangItem, "type_id", type_id;
Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/trans/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pub mod cabi_arm;
pub mod cabi_mips;
pub mod foreign;
pub mod intrinsic;
pub mod reflect;
pub mod debuginfo;
pub mod machine;
pub mod adt;
Expand Down

0 comments on commit 3410c52

Please sign in to comment.