about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-02-15 23:34:04 +0000
committervarkor <github@varkor.com>2019-02-15 23:34:04 +0000
commit18ce997e51117d3dd40aa1187a2c3cdf58f74167 (patch)
tree997ff5ab6c3740cc8f58a84a22d2d7457348a56a
parent9cfdb800859a5a5cea876e97232644325931f4fc (diff)
downloadrust-18ce997e51117d3dd40aa1187a2c3cdf58f74167.tar.gz
rust-18ce997e51117d3dd40aa1187a2c3cdf58f74167.zip
Fix rebase issue
-rw-r--r--src/librustc_lint/nonstandard_style.rs2
-rw-r--r--src/librustc_typeck/check/compare_method.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_lint/nonstandard_style.rs b/src/librustc_lint/nonstandard_style.rs
index ee5e715161a..7c66289703a 100644
--- a/src/librustc_lint/nonstandard_style.rs
+++ b/src/librustc_lint/nonstandard_style.rs
@@ -456,7 +456,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NonUpperCaseGlobals {
         }
     }
 
-    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,
diff --git a/src/librustc_typeck/check/compare_method.rs b/src/librustc_typeck/check/compare_method.rs
index bc323e2cf8a..5f1c2efb6a4 100644
--- a/src/librustc_typeck/check/compare_method.rs
+++ b/src/librustc_typeck/check/compare_method.rs
@@ -842,7 +842,7 @@ fn compare_synthetic_generics<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
                                 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