We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61071d commit 64c7897Copy full SHA for 64c7897
src/rustc/middle/borrowck/gather_loans.rs
@@ -86,8 +86,10 @@ fn req_loans_in_expr(ex: @ast::expr,
86
// passing the buck onto us to enforce this)
87
88
alt opt_deref_kind(arg_ty.ty) {
89
- some(deref_ptr(region_ptr)) {
+ some(deref_ptr(region_ptr)) |
90
+ some(deref_ptr(unsafe_ptr)) {
91
/* region pointers are (by induction) guaranteed */
92
+ /* unsafe pointers are the user's problem */
93
}
94
none {
95
/* not a pointer, no worries */
0 commit comments