This commit is contained in:
Matthias Krüger 2018-11-21 13:29:23 +01:00
parent 64ff255ac6
commit 4aae76464c
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
let mut v = EscapeDelegate {
cx,
set: NodeSet(),
set: NodeSet::default(),
too_large_for_stack: self.too_large_for_stack,
};

View file

@ -141,7 +141,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NewWithoutDefault {
if let Some(default_trait_id) = get_trait_def_id(cx, &paths::DEFAULT_TRAIT);
then {
if self.impling_types.is_none() {
let mut impls = NodeSet();
let mut impls = NodeSet::default();
cx.tcx.for_each_impl(default_trait_id, |d| {
if let Some(ty_def) = cx.tcx.type_of(d).ty_adt_def() {
if let Some(node_id) = cx.tcx.hir.as_local_node_id(ty_def.did) {