Skip to content

Commit 52fd3e4

Browse files
author
Cameron Zwarich
committed
---
yaml --- r: 152583 b: refs/heads/try2 c: 9934759 h: refs/heads/master i: 152581: 886ddae 152579: 3a009ad 152575: 73925e4 v: v3
1 parent 8cf7209 commit 52fd3e4

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 6849362f383c9c21a72cea5377c28596061c6c13
8+
refs/heads/try2: 99347591956958ab62074a41a83b4a62587c2ee6
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/borrowck/gather_loans/restrictions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<'a> RestrictionsContext<'a> {
133133
cause: self.cause,
134134
cmt: cmt_base,
135135
code: err_borrowed_pointer_too_short(
136-
self.loan_region, lt, restrictions)});
136+
self.loan_region, lt)});
137137
return Safe;
138138
}
139139
Safe
@@ -148,7 +148,7 @@ impl<'a> RestrictionsContext<'a> {
148148
cause: self.cause,
149149
cmt: cmt_base,
150150
code: err_borrowed_pointer_too_short(
151-
self.loan_region, lt, restrictions)});
151+
self.loan_region, lt)});
152152
return Safe;
153153
}
154154

branches/try2/src/librustc/middle/borrowck/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ impl Repr for RestrictionSet {
310310
pub enum bckerr_code {
311311
err_mutbl,
312312
err_out_of_scope(ty::Region, ty::Region), // superscope, subscope
313-
err_borrowed_pointer_too_short(
314-
ty::Region, ty::Region, RestrictionSet), // loan, ptr
313+
err_borrowed_pointer_too_short(ty::Region, ty::Region), // loan, ptr
315314
}
316315

317316
// Combination of an error code and the categorization of the expression
@@ -711,7 +710,7 @@ impl<'a> BorrowckCtxt<'a> {
711710
suggestion);
712711
}
713712

714-
err_borrowed_pointer_too_short(loan_scope, ptr_scope, _) => {
713+
err_borrowed_pointer_too_short(loan_scope, ptr_scope) => {
715714
let descr = match opt_loan_path(&err.cmt) {
716715
Some(lp) => {
717716
format!("`{}`", self.loan_path_to_str(&*lp))

0 commit comments

Comments
 (0)