]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/mut_mut.rs
Auto merge of #4551 - mikerite:fix-ice-reporting, r=llogiq
[rust.git] / clippy_lints / src / mut_mut.rs
index 3971346dd1ebe36a6b365c3bdecd062a3a05dfd0..decc684b66778bc5b1e022f1f2efc89fb5073afa 100644 (file)
@@ -16,6 +16,7 @@
     ///
     /// **Example:**
     /// ```rust
+    /// # let mut y = 1;
     /// let x = &mut &mut y;
     /// ```
     pub MUT_MUT,
@@ -37,7 +38,7 @@ fn check_ty(&mut self, cx: &LateContext<'a, 'tcx>, ty: &'tcx hir::Ty) {
     }
 }
 
-pub struct MutVisitor<'a, 'tcx: 'a> {
+pub struct MutVisitor<'a, 'tcx> {
     cx: &'a LateContext<'a, 'tcx>,
 }