]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #62542 - Centril:rollup-5mpb8tu, r=Centril
authorbors <bors@rust-lang.org>
Tue, 9 Jul 2019 22:02:58 +0000 (22:02 +0000)
committerbors <bors@rust-lang.org>
Tue, 9 Jul 2019 22:02:58 +0000 (22:02 +0000)
Rollup of 9 pull requests

Successful merges:

 - #62417 (Fix ICEs when `Self` is used in type aliases)
 - #62450 (Raise the default recursion limit to 128)
 - #62470 (Prevent shrinking of "crate select" element on Firefox)
 - #62515 (cli: make help output for -l and -L consistent)
 - #62520 (Regression test for issue 42574.)
 - #62526 (normalize use of backticks in compiler messages for libsyntax/feature_gate.rs)
 - #62527 (clarify that debug_assert does not completely omits the code)
 - #62535 (ci: Configure $CI_JOB_NAME correctly)
 - #62541 (Add spastorino for rustc-guide toolstate)

Failed merges:

r? @ghost

1  2 
src/librustc_typeck/check/mod.rs

index e192465588ee8072085c2bd8d2f34ac85f28b821,d8c73b2be8258d7416ebd0aea69facb56cede685..4acba6d38fa25e993d3f5e20b9f033e4c26eea3c
@@@ -1065,7 -1065,6 +1065,7 @@@ fn check_fn<'a, 'tcx>
          &declared_ret_ty,
          decl.output.span(),
      );
 +    debug!("check_fn: declared_ret_ty: {}, revealed_ret_ty: {}", declared_ret_ty, revealed_ret_ty);
      fcx.ret_coercion = Some(RefCell::new(CoerceMany::new(revealed_ret_ty)));
      fn_sig = fcx.tcx.mk_fn_sig(
          fn_sig.inputs().iter().cloned(),
@@@ -4458,7 -4457,7 +4458,7 @@@ pub fn check_bounds_are_used<'tcx>(tcx
          return;
      }
  
-     // Make a vector of booleans initially false, set to true when used.
+     // Make a vector of booleans initially `false`; set to `true` when used.
      let mut types_used = vec![false; own_counts.types];
  
      for leaf_ty in ty.walk() {
              types_used[index as usize - own_counts.lifetimes] = true;
          } else if let ty::Error = leaf_ty.sty {
              // If there is already another error, do not emit
-             // an error for not using a type Parameter.
+             // an error for not using a type parameter.
              assert!(tcx.sess.has_errors());
              return;
          }