Fix @str
removal tests.
This commit is contained in:
parent
c594e675eb
commit
f502576fc7
3 changed files with 1 additions and 3 deletions
|
@ -1213,7 +1213,7 @@ mod test {
|
||||||
let sessopts = build_session_options(~"rustc", matches, @diagnostic::DefaultEmitter);
|
let sessopts = build_session_options(~"rustc", matches, @diagnostic::DefaultEmitter);
|
||||||
let sess = build_session(sessopts, None, @diagnostic::DefaultEmitter);
|
let sess = build_session(sessopts, None, @diagnostic::DefaultEmitter);
|
||||||
let cfg = build_configuration(sess);
|
let cfg = build_configuration(sess);
|
||||||
let mut test_items = cfg.iter().filter(|m| "test" == m.name());
|
let mut test_items = cfg.iter().filter(|m| m.name().equiv(&("test")));
|
||||||
assert!(test_items.next().is_some());
|
assert!(test_items.next().is_some());
|
||||||
assert!(test_items.next().is_none());
|
assert!(test_items.next().is_none());
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,6 @@ pub struct Gc<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[no_send]
|
|
||||||
pub struct Gc<T> {
|
pub struct Gc<T> {
|
||||||
priv ptr: @T,
|
priv ptr: @T,
|
||||||
priv marker: marker::NoSend,
|
priv marker: marker::NoSend,
|
||||||
|
|
|
@ -549,7 +549,6 @@ pub fn get_ident_interner() -> @IdentInterner {
|
||||||
/// destroyed. In particular, they must not access string contents. This can
|
/// destroyed. In particular, they must not access string contents. This can
|
||||||
/// be fixed in the future by just leaking all strings until task death
|
/// be fixed in the future by just leaking all strings until task death
|
||||||
/// somehow.
|
/// somehow.
|
||||||
#[no_send]
|
|
||||||
#[deriving(Clone, Eq, IterBytes, Ord, TotalEq, TotalOrd)]
|
#[deriving(Clone, Eq, IterBytes, Ord, TotalEq, TotalOrd)]
|
||||||
pub struct InternedString {
|
pub struct InternedString {
|
||||||
priv string: RcStr,
|
priv string: RcStr,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue