]> git.lizzy.rs Git - rust.git/commitdiff
Fix rebase issue
authorvarkor <github@varkor.com>
Fri, 15 Feb 2019 23:34:04 +0000 (23:34 +0000)
committervarkor <github@varkor.com>
Fri, 15 Feb 2019 23:34:04 +0000 (23:34 +0000)
src/librustc_lint/nonstandard_style.rs
src/librustc_typeck/check/compare_method.rs

index ee5e715161adc167fc830c6406e71d67cee4f016..7c66289703ac8f88eb6c0a5589d329a52fbf0da5 100644 (file)
@@ -456,7 +456,7 @@ fn check_pat(&mut self, cx: &LateContext<'_, '_>, p: &hir::Pat) {
         }
     }
 
-    fn check_generic_param(&mut self, cx: &LateContext, param: &hir::GenericParam) {
+    fn check_generic_param(&mut self, cx: &LateContext<'_, '_>, param: &hir::GenericParam) {
         if let GenericParamKind::Const { .. } = param.kind {
             NonUpperCaseGlobals::check_upper_case(
                 cx,
index bc323e2cf8a989ef44321130dba68f20508d05c4..5f1c2efb6a457cec6510611b842c60a0cdbe4547 100644 (file)
@@ -842,7 +842,7 @@ fn nested_visit_map<'this>(
                                 GenericParamKind::Lifetime { .. } => None,
                                 GenericParamKind::Type { .. } |
                                 GenericParamKind::Const { .. } => {
-                                    if param.hir_id == impl_node_id {
+                                    if param.hir_id == impl_hir_id {
                                         Some(&param.bounds)
                                     } else {
                                         None