Skip to content

Commit 49139b8

Browse files
committed
---
yaml --- r: 13301 b: refs/heads/master c: 64c7897 h: refs/heads/master i: 13299: d9d2a77 v: v3
1 parent e6d0662 commit 49139b8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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: b61071d953019ccfcc8b5c53f737256a1c64230d
2+
refs/heads/master: 64c78971876df254d346c237fa7173770610c066
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/middle/borrowck/gather_loans.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ fn req_loans_in_expr(ex: @ast::expr,
8686
// passing the buck onto us to enforce this)
8787

8888
alt opt_deref_kind(arg_ty.ty) {
89-
some(deref_ptr(region_ptr)) {
89+
some(deref_ptr(region_ptr)) |
90+
some(deref_ptr(unsafe_ptr)) {
9091
/* region pointers are (by induction) guaranteed */
92+
/* unsafe pointers are the user's problem */
9193
}
9294
none {
9395
/* not a pointer, no worries */

0 commit comments

Comments
 (0)