Skip to content

Commit 1d336ac

Browse files
---
yaml --- r: 178926 b: refs/heads/tmp c: fee52535402e82c009d91ba0156fe0540f05d1be h: refs/heads/master v: v3
1 parent fd83eed commit 1d336ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 811d07b30cb03544b50509f9413591b12ebfe601
37+
refs/heads/tmp: fee52535402e82c009d91ba0156fe0540f05d1be

branches/tmp/src/librustc_borrowck/borrowck/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
907907
match loan_path.kind {
908908
LpUpvar(ty::UpvarId{ var_id: id, closure_expr_id: _ }) |
909909
LpVar(id) => {
910-
out.push_str(ty::local_var_name_str(self.tcx, id).get());
910+
out.push_str(&ty::local_var_name_str(self.tcx, id)[]);
911911
}
912912

913913
LpDowncast(ref lp_base, variant_def_id) => {
@@ -924,7 +924,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
924924
match fname {
925925
mc::NamedField(fname) => {
926926
out.push('.');
927-
out.push_str(token::get_name(fname).get());
927+
out.push_str(&token::get_name(fname)[]);
928928
}
929929
mc::PositionalField(idx) => {
930930
out.push('.');

0 commit comments

Comments
 (0)