Open
Description
Meta
$ rustc -V
rustc 1.12.0-dev (5556554e2 2016-07-31)
STR
#![feature(core_intrinsics, rustc_private)]
#[cfg(arena_first)]
extern crate arena;
extern crate term;
#[cfg(not(arena_first))]
extern crate arena;
use std::intrinsics::type_id;
fn main() { unsafe {
println!("same={:?} different={:?}",
type_id::<arena::TypedArena<()>>(),
type_id::<Iterator<Item=arena::TypedArena<()>>>()
);
}}
Any pair of crates, one of them with a struct, can be used instead of arena/term.
Expected Result
The Type ID of Iterator<Item=arena::TypedArena<()>>
should be the same when the cfg is toggled.
Actual Result
The Type ID of Iterator<Item=arena::TypedArena<()>>
differs when the cfg is toggled, but the id of arena::TypedArena<()>
does not