hashmap: rm linear namespace
This commit is contained in:
parent
0cc903015b
commit
44029a5bbc
75 changed files with 1014 additions and 1018 deletions
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
extern mod std;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
pub type header_map = LinearMap<~str, @mut ~[@~str]>;
|
||||
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
//buggy.rs
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
fn main() {
|
||||
let mut buggy_map :LinearMap<uint, &uint> =
|
||||
|
|
|
|||
|
|
@ -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>,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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"];
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
extern mod req;
|
||||
|
||||
use req::*;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
pub fn main() {
|
||||
let v = ~[@~"hi"];
|
||||
|
|
|
|||
|
|
@ -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"));
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// xfail-test
|
||||
extern mod std;
|
||||
|
||||
use hashmap::linear;
|
||||
use hashmap;
|
||||
use std::json;
|
||||
use std::serialization::{Deserializable, deserialize};
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue