]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #15377 : alexcrichton/rust/rollup, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 3 Jul 2014 21:46:47 +0000 (21:46 +0000)
committerbors <bors@rust-lang.org>
Thu, 3 Jul 2014 21:46:47 +0000 (21:46 +0000)
Closes #15276 (Guide: if)
Closes #15280 (std::os - Add join_paths, make setenv non-utf8 capable)
Closes #15314 (Guide: functions)
Closes #15327 (Simplify PatIdent to contain an Ident rather than a Path)
Closes #15340 (Guide: add mutable binding section)
Closes #15342 (Fix ICE with nested macro_rules!-style macros)
Closes #15350 (Remove duplicated slash in install script path)
Closes #15351 (correct a few spelling mistakes in the tutorial)
Closes #15352 (librustc: Have the kind checker check sub-bounds in trait casts.)
Closes #15359 (Fix spelling errors.)
Closes #15361 (Rename set_broadast() to set_broadcast().)
Closes #15366 (Simplify creating a parser from a token tree)
Closes #15367 (Add examples for StrVector methods)
Closes #15372 (Vec::grow should use reserve_additional, Vec::reserve should check against capacity)
Closes #15373 (Fix minor issues in the documentation of libtime.)

1  2 
src/librustc/middle/trans/_match.rs
src/librustc/middle/trans/debuginfo.rs

index 310d0f19c329a391d88b7ec242f60021fd3daecb,55939e6ea7a9fd56b7b03e5b28ed171df5efc022..655973c3d33d4a55f2f20f355c0d4e87416a49c0
@@@ -1366,11 -1429,10 +1364,11 @@@ fn create_bindings_map(bcx: &Block, pat
      let ccx = bcx.ccx();
      let tcx = bcx.tcx();
      let mut bindings_map = HashMap::new();
-     pat_bindings(&tcx.def_map, &*pat, |bm, p_id, span, path| {
-         let ident = path_to_ident(path);
+     pat_bindings(&tcx.def_map, &*pat, |bm, p_id, span, path1| {
+         let ident = path1.node;
          let variable_ty = node_id_type(bcx, p_id);
          let llvariable_ty = type_of::type_of(ccx, variable_ty);
 +        let tcx = bcx.tcx();
  
          let llmatch;
          let trmode;