hashmap: rm linear namespace
This commit is contained in:
parent
0cc903015b
commit
44029a5bbc
@ -441,7 +441,7 @@ expression context, the final namespace qualifier is omitted.
|
||||
Two examples of paths with type arguments:
|
||||
|
||||
~~~~
|
||||
# use core::hashmap::linear::LinearMap;
|
||||
# use core::hashmap::LinearMap;
|
||||
# fn f() {
|
||||
# fn id<T:Copy>(t: T) -> T { t }
|
||||
type t = LinearMap<int,~str>; // Type arguments used in a type expression
|
||||
|
@ -1888,7 +1888,7 @@ illegal to copy and pass by value.
|
||||
Generic `type`, `struct`, and `enum` declarations follow the same pattern:
|
||||
|
||||
~~~~
|
||||
# use core::hashmap::linear::LinearMap;
|
||||
# use core::hashmap::LinearMap;
|
||||
type Set<T> = LinearMap<T, ()>;
|
||||
|
||||
struct Stack<T> {
|
||||
|
@ -43,7 +43,7 @@
|
||||
use libc::{size_t, uintptr_t};
|
||||
use option::{None, Option, Some};
|
||||
use ptr;
|
||||
use hashmap::linear::LinearSet;
|
||||
use hashmap::LinearSet;
|
||||
use stackwalk;
|
||||
use sys;
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -79,7 +79,7 @@
|
||||
use prelude::*;
|
||||
use unstable;
|
||||
use ptr;
|
||||
use hashmap::linear::LinearSet;
|
||||
use hashmap::LinearSet;
|
||||
use task::local_data_priv::{local_get, local_set};
|
||||
use task::rt::rust_task;
|
||||
use task::rt;
|
||||
|
@ -34,7 +34,7 @@
|
||||
use unstable::{Exclusive, exclusive};
|
||||
use unstable::at_exit::at_exit;
|
||||
use unstable::intrinsics::atomic_cxchg;
|
||||
use hashmap::linear::LinearMap;
|
||||
use hashmap::LinearMap;
|
||||
use sys::Closure;
|
||||
|
||||
#[cfg(test)] use unstable::{SharedMutableState, shared_mutable_state};
|
||||
|
@ -21,7 +21,7 @@
|
||||
use cell::Cell;
|
||||
use comm::{GenericSmartChan, stream};
|
||||
use comm::{Port, Chan, SharedChan, GenericChan, GenericPort};
|
||||
use hashmap::linear::LinearMap;
|
||||
use hashmap::LinearMap;
|
||||
use option::{Some, None};
|
||||
use unstable::at_exit::at_exit;
|
||||
use unstable::finally::Finally;
|
||||
|
@ -18,7 +18,7 @@
|
||||
use core::uint;
|
||||
use core::util;
|
||||
use core::vec;
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
|
||||
fn not_win32(os: session::os) -> bool {
|
||||
match os {
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
use core::prelude::*;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::libc::c_uint;
|
||||
use core::option;
|
||||
use core::ptr;
|
||||
|
@ -18,7 +18,7 @@
|
||||
use metadata::filesearch::FileSearch;
|
||||
use metadata::loader;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::vec;
|
||||
use syntax::attr;
|
||||
use syntax::codemap::{span, dummy_sp};
|
||||
|
@ -17,7 +17,7 @@
|
||||
use metadata::cstore;
|
||||
use metadata::decoder;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::vec;
|
||||
use std;
|
||||
use syntax::ast;
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
use core::flate;
|
||||
use core::hash::HashUtil;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::int;
|
||||
use core::io::{Writer, WriterUtil};
|
||||
use core::io;
|
||||
|
@ -16,7 +16,7 @@
|
||||
use middle::ty::param_ty;
|
||||
use middle::ty;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::io::WriterUtil;
|
||||
use core::io;
|
||||
use core::uint;
|
||||
|
@ -31,7 +31,7 @@
|
||||
use middle::ty;
|
||||
use util::ppaux::ty_to_str;
|
||||
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
use core::uint;
|
||||
use syntax::ast::m_mutbl;
|
||||
use syntax::ast;
|
||||
|
@ -31,7 +31,7 @@
|
||||
use util::common::indenter;
|
||||
use util::ppaux::{expr_repr, region_to_str};
|
||||
|
||||
use core::hashmap::linear::{LinearSet, LinearMap};
|
||||
use core::hashmap::{LinearSet, LinearMap};
|
||||
use core::vec;
|
||||
use syntax::ast::{m_const, m_imm, m_mutbl};
|
||||
use syntax::ast;
|
||||
|
@ -234,7 +234,7 @@
|
||||
use util::common::stmt_set;
|
||||
use util::ppaux::note_and_explain_region;
|
||||
|
||||
use core::hashmap::linear::{LinearSet, LinearMap};
|
||||
use core::hashmap::{LinearSet, LinearMap};
|
||||
use core::io;
|
||||
use core::result::{Result, Ok, Err};
|
||||
use core::to_bytes;
|
||||
|
@ -20,7 +20,7 @@
|
||||
use syntax::{ast, ast_map, ast_util, visit};
|
||||
use syntax::ast::*;
|
||||
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
|
||||
//
|
||||
// This pass classifies expressions by their constant-ness.
|
||||
|
@ -17,7 +17,7 @@
|
||||
use middle::resolve;
|
||||
use middle::ty;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use syntax::codemap::span;
|
||||
use syntax::{ast, ast_util, visit};
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
use syntax::visit::{default_simple_visitor, mk_simple_visitor, SimpleVisitor};
|
||||
use syntax::visit::visit_crate;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::ptr;
|
||||
|
||||
pub enum LangItem {
|
||||
|
@ -15,7 +15,7 @@
|
||||
use middle::ty;
|
||||
use util::ppaux::{ty_to_str};
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::char;
|
||||
use core::cmp;
|
||||
use core::i8;
|
||||
|
@ -111,7 +111,7 @@
|
||||
use middle::moves;
|
||||
use util::ppaux::ty_to_str;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::io::WriterUtil;
|
||||
use core::io;
|
||||
use core::ptr;
|
||||
|
@ -215,7 +215,7 @@ struct Foo { a: int, b: ~int }
|
||||
use util::ppaux;
|
||||
use util::common::indenter;
|
||||
|
||||
use core::hashmap::linear::{LinearSet, LinearMap};
|
||||
use core::hashmap::{LinearSet, LinearMap};
|
||||
use core::vec;
|
||||
use syntax::ast::*;
|
||||
use syntax::ast_util;
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
use middle::resolve;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use syntax::ast::*;
|
||||
use syntax::ast_util::{path_to_ident, walk_pat};
|
||||
use syntax::codemap::span;
|
||||
|
@ -26,7 +26,7 @@
|
||||
use middle::ty::{rv_contravariant};
|
||||
use middle::ty;
|
||||
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
use core::vec;
|
||||
use syntax::ast_map;
|
||||
use syntax::codemap::span;
|
||||
|
@ -77,7 +77,7 @@
|
||||
|
||||
use core::option::Some;
|
||||
use core::str::each_split_str;
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
|
||||
// Definition mapping
|
||||
pub type DefMap = @mut LinearMap<node_id,def>;
|
||||
|
@ -167,7 +167,7 @@
|
||||
use middle::ty;
|
||||
use util::common::indenter;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use syntax::ast;
|
||||
use syntax::ast::ident;
|
||||
use syntax::ast_util::path_to_ident;
|
||||
|
@ -67,7 +67,7 @@
|
||||
use util::ppaux;
|
||||
|
||||
use core::hash;
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
use core::int;
|
||||
use core::io;
|
||||
use core::libc::{c_uint, c_ulonglong};
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
use core::prelude::*;
|
||||
use core::cast;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::libc::{c_uint, c_ulonglong, c_char};
|
||||
use core::libc;
|
||||
use core::option::Some;
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
use core::cast;
|
||||
use core::hash;
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
use core::libc::{c_uint, c_longlong, c_ulonglong};
|
||||
use core::ptr;
|
||||
use core::str;
|
||||
|
@ -20,7 +20,7 @@
|
||||
use middle::ty;
|
||||
use util::ppaux::ty_to_str;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::libc;
|
||||
use core::option;
|
||||
use core::sys;
|
||||
|
@ -153,7 +153,7 @@
|
||||
use util::ppaux::ty_to_str;
|
||||
|
||||
use core::cast::transmute;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use syntax::print::pprust::{expr_to_str};
|
||||
use syntax::ast;
|
||||
use syntax::codemap;
|
||||
|
@ -21,7 +21,7 @@
|
||||
use middle::typeck;
|
||||
|
||||
use core::prelude::*;
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
use syntax::ast;
|
||||
use syntax::ast::*;
|
||||
use syntax::ast_util::def_id_of_def;
|
||||
|
@ -36,7 +36,7 @@
|
||||
use core::to_bytes;
|
||||
use core::uint;
|
||||
use core::vec;
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
use std::smallintmap::SmallIntMap;
|
||||
use syntax::ast::*;
|
||||
use syntax::ast_util::{is_local, local_def};
|
||||
|
@ -18,7 +18,7 @@
|
||||
use middle::typeck::check::{structure_of, valid_range_bounds};
|
||||
use middle::typeck::require_same_types;
|
||||
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
use core::vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
|
@ -95,7 +95,7 @@ trait `ToStr` imported, and I call `to_str()` on a value of type `T`,
|
||||
use util::common::indenter;
|
||||
use util::ppaux::expr_repr;
|
||||
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
use core::result;
|
||||
use core::uint;
|
||||
use core::vec;
|
||||
|
@ -110,7 +110,7 @@
|
||||
use util::ppaux::{bound_region_to_str, expr_repr, pat_repr};
|
||||
use util::ppaux;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::ptr;
|
||||
use core::result::{Result, Ok, Err};
|
||||
use core::result;
|
||||
|
@ -28,7 +28,7 @@
|
||||
use core::result;
|
||||
use core::uint;
|
||||
use core::vec;
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
use syntax::codemap::span;
|
||||
|
@ -53,7 +53,7 @@
|
||||
use util::ppaux::ty_to_str;
|
||||
|
||||
use core::result::Ok;
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
use core::uint;
|
||||
|
||||
pub struct UniversalQuantificationResult {
|
||||
|
@ -548,7 +548,7 @@ fn<a,b>(&a, &b, &a) fn<x,y>(&x, &y, &y) fn<a>(&a, &a, &a) fn<a,b,c>(&a,&b,&c)
|
||||
use util::ppaux::note_and_explain_region;
|
||||
|
||||
use core::cell::{Cell, empty_cell};
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
use core::result::{Err, Ok};
|
||||
use core::to_bytes;
|
||||
use core::uint;
|
||||
|
@ -55,7 +55,7 @@
|
||||
use util::common::time;
|
||||
use util::ppaux;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::result;
|
||||
use core::vec;
|
||||
use std::list::List;
|
||||
|
@ -14,7 +14,7 @@
|
||||
use syntax::codemap::{span};
|
||||
use syntax::visit;
|
||||
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
use core::str;
|
||||
use std;
|
||||
|
||||
|
@ -28,7 +28,7 @@ extern mod syntax(vers = "0.6");
|
||||
|
||||
use core::*;
|
||||
use core::container::Map;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::io::WriterUtil;
|
||||
use rustc::driver::{driver, session};
|
||||
use rustc::metadata::filesearch;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
use core::*;
|
||||
use core::hash::Streaming;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use rustc::driver::{driver, session};
|
||||
use rustc::metadata::filesearch;
|
||||
use std::getopts::groups::getopts;
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
use core::prelude::*;
|
||||
use core::io::{WriterUtil, ReaderUtil};
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
use serialize::Encodable;
|
||||
use serialize;
|
||||
@ -1161,7 +1161,7 @@ mod tests {
|
||||
use super::*;
|
||||
|
||||
use core::prelude::*;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
use std::serialize::Decodable;
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
use core::io::{Reader, ReaderUtil};
|
||||
use core::io;
|
||||
use core::prelude::*;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::str;
|
||||
use core::to_bytes::IterBytes;
|
||||
use core::to_bytes;
|
||||
@ -818,7 +818,7 @@ mod tests {
|
||||
|
||||
use net_url::*;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
#[test]
|
||||
pub fn test_url_parse() {
|
||||
|
@ -17,7 +17,7 @@
|
||||
#[forbid(non_camel_case_types)];
|
||||
|
||||
use core::prelude::*;
|
||||
use core::hashmap::linear::{LinearMap, LinearSet};
|
||||
use core::hashmap::{LinearMap, LinearSet};
|
||||
use core::trie::{TrieMap, TrieSet};
|
||||
use deque::Deque;
|
||||
use dlist::DList;
|
||||
|
@ -24,7 +24,7 @@
|
||||
use core::prelude::*;
|
||||
use core::result;
|
||||
use core::run;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::task;
|
||||
use core::to_bytes;
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
use visit;
|
||||
|
||||
use core::cmp;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::str;
|
||||
use core::vec;
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
use parse::comments::{doc_comment_style, strip_doc_comment_decoration};
|
||||
|
||||
use core::vec;
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
use std;
|
||||
|
||||
/* Constructors */
|
||||
|
@ -20,7 +20,7 @@
|
||||
use parse::token;
|
||||
|
||||
use core::vec;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
// new-style macro! tt code:
|
||||
//
|
||||
@ -509,7 +509,7 @@ fn insert (&mut self, +key: K, +ext: @V) -> bool {
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::MapChain;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
#[test] fn testenv () {
|
||||
let mut a = LinearMap::new();
|
||||
|
@ -20,7 +20,7 @@
|
||||
use parse::token;
|
||||
|
||||
use core::prelude::*;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
/* This is an Earley-like parser, without support for in-grammar nonterminals,
|
||||
only by calling out to the main rust parser for named nonterminals (which it
|
||||
|
@ -18,7 +18,7 @@
|
||||
use parse::token::{EOF, INTERPOLATED, IDENT, Token, nt_ident, ident_interner};
|
||||
use parse::lexer::TokenAndSpan;
|
||||
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
use core::option;
|
||||
use core::vec;
|
||||
|
||||
|
@ -94,7 +94,7 @@
|
||||
|
||||
use core::either::Either;
|
||||
use core::either;
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
use core::vec;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
use core::cast;
|
||||
use core::char;
|
||||
use core::hashmap::linear::LinearSet;
|
||||
use core::hashmap::LinearSet;
|
||||
use core::str;
|
||||
use core::task;
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
// type, and vice versa.
|
||||
|
||||
use core::prelude::*;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::hashmap::LinearMap;
|
||||
|
||||
pub struct Interner<T> {
|
||||
priv map: @mut LinearMap<T, uint>,
|
||||
|
@ -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 @@
|
||||
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::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…
Reference in New Issue
Block a user