Skip to content

Commit 8ac83da

Browse files
Anton Lofgrenalexcrichton
authored andcommitted
---
yaml --- r: 126935 b: refs/heads/snap-stage3 c: ef7d3e1 h: refs/heads/master i: 126933: b9b2d2f 126931: 6b0ea9e 126927: 8a3b107 v: v3
1 parent d29b828 commit 8ac83da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c2ac7fde0b4715ff87467be91d57d5afd49978a2
4+
refs/heads/snap-stage3: ef7d3e13e258258ec427889d3b047f0b7fda33c7
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/lint/builtin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@ impl LintPass for CTypes {
358358
def::DefTy(def_id) => {
359359
if !adt::is_ffi_safe(cx.tcx, def_id) {
360360
cx.span_lint(CTYPES, ty.span,
361-
"found enum type without foreign-function-safe \
362-
representation annotation in foreign module");
363-
// hmm... this message could be more helpful
361+
"found enum type without foreign-function-safe
362+
representation annotation in foreign module, consider \
363+
adding a #[repr(...)] attribute to the enumeration");
364364
}
365365
}
366366
_ => ()

0 commit comments

Comments
 (0)