|
12 | 12 |
|
13 | 13 | //! Operations on ASCII strings and characters
|
14 | 14 |
|
| 15 | +#![feature(macro_rules, globs)] |
15 | 16 | #![unstable = "unsure about placement and naming"]
|
16 | 17 | #![allow(deprecated)]
|
17 | 18 |
|
18 |
| -use core::kinds::Sized; |
19 |
| -use fmt; |
20 |
| -use iter::IteratorExt; |
21 |
| -use mem; |
22 |
| -use option::{Option, Some, None}; |
23 |
| -use slice::{SlicePrelude, AsSlice}; |
24 |
| -use str::{Str, StrPrelude}; |
25 |
| -use string::{String, IntoString}; |
26 |
| -use vec::Vec; |
| 19 | +// FIXME: Work around std::ascii traits being in the prelude |
| 20 | +#![no_implicit_prelude] |
| 21 | + |
| 22 | +use std::kinds::Sized; |
| 23 | +use std::fmt; |
| 24 | +use std::mem; |
| 25 | +use std::iter::IteratorExt; |
| 26 | +use std::option::{Option, Some, None}; |
| 27 | +use std::slice::{SlicePrelude, AsSlice}; |
| 28 | +use std::str::{Str, StrPrelude}; |
| 29 | +use std::string::{String, IntoString}; |
| 30 | +use std::vec::Vec; |
| 31 | + |
27 | 32 |
|
28 | 33 | /// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
|
29 | 34 | #[deriving(Clone, PartialEq, PartialOrd, Ord, Eq, Hash)]
|
@@ -626,10 +631,9 @@ static ASCII_UPPER_MAP: [u8, ..256] = [
|
626 | 631 |
|
627 | 632 | #[cfg(test)]
|
628 | 633 | mod tests {
|
629 |
| - use prelude::*; |
| 634 | + use std::prelude::*; |
630 | 635 | use super::*;
|
631 |
| - use char::from_u32; |
632 |
| - use str::StrPrelude; |
| 636 | + use std::char::from_u32; |
633 | 637 |
|
634 | 638 | macro_rules! v2ascii (
|
635 | 639 | ( [$($e:expr),*]) => (&[$(Ascii{chr:$e}),*]);
|
|
0 commit comments