about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-11-21 13:29:23 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2018-11-21 13:29:23 +0100
commit4aae76464c75f6c8dc6e365a5076f28584782be7 (patch)
tree157a5b35618ec9ec5a8def2d3eb6da05c27329de
parent64ff255ac63856c1dfe2021a62349984e4039788 (diff)
downloadrust-4aae76464c75f6c8dc6e365a5076f28584782be7.tar.gz
rust-4aae76464c75f6c8dc6e365a5076f28584782be7.zip
rustup https://github.com/rust-lang/rust/pull/52591
-rw-r--r--clippy_lints/src/escape.rs2
-rw-r--r--clippy_lints/src/new_without_default.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/escape.rs b/clippy_lints/src/escape.rs
index b7646dd6fdf..11bdf2244b1 100644
--- a/clippy_lints/src/escape.rs
+++ b/clippy_lints/src/escape.rs
@@ -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,
         };
 
diff --git a/clippy_lints/src/new_without_default.rs b/clippy_lints/src/new_without_default.rs
index 21b966a6bd9..ee990117014 100644
--- a/clippy_lints/src/new_without_default.rs
+++ b/clippy_lints/src/new_without_default.rs
@@ -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) {