hashmap: rm linear namespace

This commit is contained in:
Daniel Micay 2013-04-03 08:45:14 -04:00
parent 0cc903015b
commit 44029a5bbc
75 changed files with 1014 additions and 1018 deletions

View file

@ -13,7 +13,7 @@
extern mod std;
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
pub type header_map = LinearMap<~str, @mut ~[@~str]>;

View file

@ -13,7 +13,7 @@ extern mod std;
use core::io;
use std::time;
use std::treemap::TreeMap;
use core::hashmap::linear::{LinearMap, LinearSet};
use core::hashmap::{LinearMap, LinearSet};
use core::trie::TrieMap;
fn timed(label: &str, f: &fn()) {

View file

@ -9,7 +9,7 @@
// except according to those terms.
extern mod std;
use core::hashmap::linear::LinearSet;
use core::hashmap::LinearSet;
use std::bitv::BitvSet;
use std::treemap::TreeSet;
use core::io::WriterUtil;

View file

@ -24,7 +24,7 @@ use std::arc;
use std::time;
use std::deque::Deque;
use std::par;
use core::hashmap::linear::{LinearMap, LinearSet};
use core::hashmap::{LinearMap, LinearSet};
use core::io::WriterUtil;
use core::int::abs;
use core::rand::RngUtil;

View file

@ -15,7 +15,7 @@
extern mod std;
use std::sort;
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
use core::io::ReaderUtil;
use core::comm::{stream, Port, Chan};
use core::cmp::Ord;

View file

@ -25,7 +25,7 @@
// writes pbm image to output path
use core::io::WriterUtil;
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
struct cmplx {
re: f64,

View file

@ -10,7 +10,7 @@
//buggy.rs
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
fn main() {
let mut buggy_map :LinearMap<uint, &uint> =

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::hashmap::linear::LinearSet;
use core::hashmap::LinearSet;
struct Foo {
n: LinearSet<int>,

View file

@ -11,7 +11,7 @@
// error-pattern: mismatched types
extern mod std;
use std::bitv;
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
struct FnInfo {
vars: LinearMap<uint, VarInfo>

View file

@ -9,7 +9,7 @@
// except according to those terms.
use core::container::Map;
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
// Test that trait types printed in error msgs include the type arguments.

View file

@ -14,7 +14,7 @@
fn main() {
let count = @mut 0u;
let mut map = core::hashmap::linear::LinearMap::new();
let mut map = core::hashmap::LinearMap::new();
let mut arr = ~[];
for uint::range(0u, 10u) |i| {
arr += ~[@~"key stuff"];

View file

@ -19,7 +19,7 @@
pub fn map(filename: ~str, emit: map_reduce::putter) { emit(filename, ~"1"); }
mod map_reduce {
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
use core::comm::*;
pub type putter = @fn(~str, ~str);

View file

@ -10,7 +10,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
pub fn main() {
let mut m = LinearMap::new();

View file

@ -14,7 +14,7 @@
extern mod req;
use req::*;
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
pub fn main() {
let v = ~[@~"hi"];

View file

@ -13,7 +13,7 @@
// Minimized version of issue-2804.rs. Both check that callee IDs don't
// clobber the previous node ID in a macro expr
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
fn add_interfaces(managed_ip: ~str, device: LinearMap<~str, int>) {
error!("%s, %?", managed_ip, device.get(&~"interfaces"));

View file

@ -11,7 +11,7 @@
// except according to those terms.
extern mod std;
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
use std::json;
enum object {

View file

@ -10,7 +10,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
pub fn main() {
let mut buggy_map: LinearMap<uint, &uint> = LinearMap::new::<uint, &uint>();

View file

@ -29,7 +29,7 @@ fn check_strs(actual: &str, expected: &str) -> bool
#[test]
fn tester()
{
let mut table = core::hashmap::linear::LinearMap();
let mut table = core::hashmap::LinearMap();
table.insert(@~"one", 1);
table.insert(@~"two", 2);
assert!(check_strs(table.to_str(), ~"xxx")); // not sure what expected should be

View file

@ -11,7 +11,7 @@
// xfail-test
extern mod std;
use hashmap::linear;
use hashmap;
use std::json;
use std::serialization::{Deserializable, deserialize};

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::hashmap::linear::LinearMap;
use core::hashmap::LinearMap;
pub fn main() {
let mut x = LinearMap::new();