Skip to content

Commit 3410c52

Browse files
committed
librustc: Remove trans::reflect and the opaque and ty_visitor lang items.
1 parent 7210a5a commit 3410c52

File tree

6 files changed

+4
-493
lines changed

6 files changed

+4
-493
lines changed

src/doc/reference.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,8 +2279,6 @@ These types help drive the compiler's analysis
22792279
: The lifetime parameter should be considered invariant
22802280
* `malloc`
22812281
: Allocate memory on the managed heap.
2282-
* `opaque`
2283-
: ___Needs filling in___
22842282
* `owned_box`
22852283
: ___Needs filling in___
22862284
* `stack_exhausted`
@@ -2295,8 +2293,6 @@ These types help drive the compiler's analysis
22952293
: The type parameter should be considered invariant
22962294
* `ty_desc`
22972295
: ___Needs filling in___
2298-
* `ty_visitor`
2299-
: ___Needs filling in___
23002296

23012297
> **Note:** This list is likely to become out of date. We should auto-generate
23022298
> it from `librustc/middle/lang_items.rs`.

src/libcore/intrinsics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,14 @@ pub struct TyDesc {
6565
pub name: &'static str,
6666
}
6767

68+
#[cfg(stage0)]
6869
#[lang="opaque"]
6970
pub enum Opaque { }
7071

72+
#[cfg(stage0)]
7173
pub type Disr = u64;
7274

75+
#[cfg(stage0)]
7376
#[lang="ty_visitor"]
7477
pub trait TyVisitor {
7578
fn visit_bot(&mut self) -> bool;

src/librustc/middle/lang_items.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ lets_do_this! {
284284
StartFnLangItem, "start", start_fn;
285285

286286
TyDescStructLangItem, "ty_desc", ty_desc;
287-
TyVisitorTraitLangItem, "ty_visitor", ty_visitor;
288287
OpaqueStructLangItem, "opaque", opaque;
289288

290289
TypeIdLangItem, "type_id", type_id;

src/librustc/middle/trans/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ pub mod cabi_arm;
3636
pub mod cabi_mips;
3737
pub mod foreign;
3838
pub mod intrinsic;
39-
pub mod reflect;
4039
pub mod debuginfo;
4140
pub mod machine;
4241
pub mod adt;

0 commit comments

Comments
 (0)