Skip to content

Commit 5c40756

Browse files
nikomatsakisbrson
authored andcommitted
---
yaml --- r: 5785 b: refs/heads/master c: 24b201f h: refs/heads/master i: 5783: d086485 v: v3
1 parent 7d8d2c7 commit 5c40756

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b9a9559c910823d7fe06a4d08be461de010830c5
2+
refs/heads/master: 24b201fa48558832f13c41f1307d824ee26915eb

trunk/src/comp/middle/typeck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ fn require_unsafe(sess: session::session, f_purity: ast::purity, sp: span) {
15291529
ast::unsafe_fn. { ret; }
15301530
_ {
15311531
sess.span_fatal(
1532-
sp,
1532+
sp,
15331533
"Found unsafe expression in safe function decl");
15341534
}
15351535
}

trunk/src/test/compile-fail/unsafe-fn-called-from-safe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// -*- rust -*-
22
// error-pattern: safe function calls function marked unsafe
3+
// xfail-test
34

45
unsafe fn f() { ret; }
56

0 commit comments

Comments
 (0)