|
1 | | -% HOWTO submit a RUST bug report |
| 1 | +% How to submit a Rust bug report |
2 | 2 |
|
3 | 3 | # I think I found a bug in the compiler! |
4 | 4 |
|
5 | | - If you see this message: ''error: internal compiler error: unexpected failure'', |
| 5 | +If you see this message: `error: internal compiler error: unexpected failure`, |
6 | 6 | then you have definitely found a bug in the compiler. It's also possible that |
7 | 7 | your code is not well-typed, but if you saw this message, it's still a bug in |
8 | 8 | error reporting. |
9 | 9 |
|
10 | | - If you see a message about an LLVM assertion failure, then you have also |
| 10 | +If you see a message about an LLVM assertion failure, then you have also |
11 | 11 | definitely found a bug in the compiler. In both of these cases, it's not your |
12 | 12 | fault and you should report a bug! |
13 | 13 |
|
14 | | - If you see a compiler error message that you think is meant for users to see, |
| 14 | +If you see a compiler error message that you think is meant for users to see, |
15 | 15 | but it confuses you, *that's a bug too*. If it wasn't clear to you, then it's |
16 | 16 | an error message we want to improve, so please report it so that we can try |
17 | 17 | to make it better. |
18 | 18 |
|
19 | | -# I don't want to waste the Rust devs' time! How do I know the bug I found isn't a bug that already exists in the issue tracker? |
| 19 | +# How do I know the bug I found isn't a bug that already exists in the issue tracker? |
20 | 20 |
|
21 | | - If you don't have much time, then don't worry about that. Just submit the bug. |
22 | | -If it's a duplicate, somebody will notice that and close it. No one will laugh |
23 | | -at you, we promise (and if someone did, they would be violating the Rust |
24 | | -[code of conduct](https://github.com/mozilla/rust/wiki/Note-development-policy code of conduct)). |
| 21 | +If you don't have enough time for a search, then don't worry about that. Just submit |
| 22 | +the bug. If it's a duplicate, somebody will notice that and close it during triage. |
25 | 23 |
|
26 | | - If you have more time, it's very helpful if you can type the text of the error |
| 24 | +If you have the time for it, it would be useful to type the text of the error |
27 | 25 | message you got [into the issue tracker search box](https://github.com/mozilla/rust/issues) |
28 | 26 | to see if there's an existing bug that resembles your problem. If there is, |
29 | | -and it's an open bug, you can comment on that issue and say you ran into it too. |
30 | | -This will encourage devs to fix it. But again, don't let this stop you from |
| 27 | +and it's an open bug, you can comment on that issue and say you are also affected. |
| 28 | +This will encourage the devs to fix it. But again, don't let this stop you from |
31 | 29 | submitting a bug. We'd rather have to do the work of closing duplicates than |
32 | 30 | miss out on valid bug reports. |
33 | 31 |
|
34 | 32 | # What information should I include in a bug report? |
35 | 33 |
|
36 | | - It's helpful to include your specific OS (for example: Mac OS X 10.8.3, |
37 | | -Windows 7, Ubuntu 12.0.4) and your hardware architecture (for example: i686, x86_64). |
| 34 | +It generally helps our diagnosis to include your specific OS (for example: Mac OS X 10.8.3, |
| 35 | +Windows 7, Ubuntu 12.04) and your hardware architecture (for example: i686, x86_64). |
38 | 36 | It's also helpful to copy/paste the output of re-running the erroneous rustc |
39 | | -commmand with the `-v` flag. Finally, if you can run the offending command under gdb, |
40 | | -pasting a stack trace can be useful; to do so, you will need to set a breakpoint on `rust_begin_unwind`. |
| 37 | +command with the `-v` flag. Finally, if you can run the offending command under gdb, |
| 38 | +pasting a stack trace can be useful; to do so, you will need to set a breakpoint on `rust_fail`. |
41 | 39 |
|
42 | | -# I submitted a bug, but nobody has commented on it! I'm sad. |
| 40 | +# I submitted a bug, but nobody has commented on it! |
43 | 41 |
|
44 | | - This is sad, but does happen sometimes, since we're short-staffed. If you |
| 42 | +This is sad, but does happen sometimes, since we're short-staffed. If you |
45 | 43 | submit a bug and you haven't received a comment on it within 3 business days, |
46 | 44 | it's entirely reasonable to either ask on the #rust IRC channel, |
47 | 45 | or post on the [rust-dev mailing list](https://mail.mozilla.org/listinfo/rust-dev) |
|
0 commit comments