Auto merge of #55114 - oli-obk:fx#map, r=nikomatsakis

Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack
This commit is contained in:
bors 2018-10-20 08:45:55 +00:00
commit 94273f4d8e
133 changed files with 428 additions and 558 deletions

View file

@ -122,6 +122,6 @@ fn f<'a>(arena: &'a TypedArena<C<'a>>) {
}
fn main() {
let arena = TypedArena::new();
let arena = TypedArena::default();
f(&arena);
} //~^ ERROR `arena` does not live long enough

View file

@ -47,7 +47,7 @@ impl<'a> HasId for &'a usize { fn count(&self) -> usize { 1 } }
fn f<'a>(_arena: &'a TypedArena<C<'a>>) {}
fn main() {
let arena: TypedArena<C> = TypedArena::new();
let arena: TypedArena<C> = TypedArena::default();
f(&arena);
} //~^ ERROR `arena` does not live long enough

View file

@ -46,6 +46,6 @@ impl<'a> HasId for &'a usize { fn count(&self) -> usize { 1 } }
fn f<'a, 'b>(_arena: &'a TypedArena<C<'b>>) {}
fn main() {
let arena: TypedArena<C> = TypedArena::new();
let arena: TypedArena<C> = TypedArena::default();
f(&arena);
}

View file

@ -133,8 +133,8 @@ fn compute_types<'tcx,'ast>(tcx: &mut TypeContext<'tcx,'ast>,
}
pub fn main() {
let ty_arena = TypedArena::new();
let ast_arena = TypedArena::new();
let ty_arena = TypedArena::default();
let ast_arena = TypedArena::default();
let mut tcx = TypeContext::new(&ty_arena, &ast_arena);
let ast = tcx.ast(ExprInt);
let ty = compute_types(&mut tcx, ast);