Skip to content

Commit 2085390

Browse files
---
yaml --- r: 179031 b: refs/heads/master c: 0f09021 h: refs/heads/master i: 179029: 954e380 179027: d1f8d76 179023: 1ce829d v: v3
1 parent 69bc79d commit 2085390

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 664c41b42790c6eb9a73975149c9f39397e6120e
2+
refs/heads/master: 0f09021b376a0cbe18a15a3bb7a5c5201573d4dc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ac134f7ca435551964996ee88319241cd3c7c110
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77

trunk/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)