Skip to content

Commit eed74c2

Browse files
committed
---
yaml --- r: 275691 b: refs/heads/master c: 399149a h: refs/heads/master i: 275689: a86f065 275687: 6a15e75
1 parent 5056e36 commit eed74c2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
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: 906cc48d48d97776905b493a8897569a57b32d64
2+
refs/heads/master: 399149ac7efda98e2290d5bf5c38f51d51b5b18f
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/test/compile-fail/transmute-from-fn-item-types-lint.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ use std::mem;
1515
unsafe fn foo() -> (isize, *const (), Option<fn()>) {
1616
let i = mem::transmute(bar);
1717
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
18-
//~^^ ERROR was previously accepted
18+
//~^^ WARNING was previously accepted
1919

2020
let p = mem::transmute(foo);
2121
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
22-
//~^^ ERROR was previously accepted
22+
//~^^ WARNING was previously accepted
2323

2424
let of = mem::transmute(main);
2525
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
26-
//~^^ ERROR was previously accepted
26+
//~^^ WARNING was previously accepted
2727

2828
(i, p, of)
2929
}
3030

3131
unsafe fn bar() {
3232
mem::transmute::<_, *mut ()>(foo);
3333
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
34-
//~^^ ERROR was previously accepted
34+
//~^^ WARNING was previously accepted
3535

3636
mem::transmute::<_, fn()>(bar);
3737
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
38-
//~^^ ERROR was previously accepted
38+
//~^^ WARNING was previously accepted
3939

4040
// No error if a coercion would otherwise occur.
4141
mem::transmute::<fn(), usize>(main);

0 commit comments

Comments
 (0)