blob: fa408935cc8cc956f0f9ad49680c555f9fea2088 [file] [log] [blame] [view]
Steve Klabnikf645cad2015-02-13 17:26:441# Contributing to Rust
Garrett Bergdaf3ed52017-09-29 23:19:172[contributing-to-rust]: #contributing-to-rust
Tim Chevalier5afd7602013-10-21 19:10:573
Steve Klabnikf645cad2015-02-13 17:26:444Thank you for your interest in contributing to Rust! There are many ways to
5contribute, and we appreciate all of them. This document is a bit long, so here's
6links to the major sections:
Tim Chevalier5afd7602013-10-21 19:10:577
Steve Klabnikf645cad2015-02-13 17:26:448* [Feature Requests](#feature-requests)
9* [Bug Reports](#bug-reports)
Greg Chappledc6ed632016-01-25 14:07:1010* [The Build System](#the-build-system)
Steve Klabnikf645cad2015-02-13 17:26:4411* [Pull Requests](#pull-requests)
12* [Writing Documentation](#writing-documentation)
13* [Issue Triage](#issue-triage)
14* [Out-of-tree Contributions](#out-of-tree-contributions)
christopherdumas3f866022015-09-11 23:21:1115* [Helpful Links and Information](#helpful-links-and-information)
Tim Chevalier5afd7602013-10-21 19:10:5716
Steve Klabnikf645cad2015-02-13 17:26:4417If you have questions, please make a post on [internals.rust-lang.org][internals] or
varkor205ab0c2019-03-14 01:04:1918hop on the [Rust Discord server][rust-discord], [Rust Zulip server][rust-zulip] or [#rust-internals][pound-rust-internals].
Nick Cameron852cef82014-09-22 00:46:2419
Darrell Hamiltona6b47c02015-02-19 03:53:0020As a reminder, all contributors are expected to follow our [Code of Conduct][coc].
Brian Anderson36c63a32015-01-02 23:41:4721
mark48bee072019-01-16 02:02:2822The [rustc-guide] is your friend! It describes how the compiler works and how
23to contribute to it in more detail than this document.
24
25If this is your first time contributing, the [walkthrough] chapter of the guide
26can give you a good example of how a typical contribution would go.
27
Suriyaa ✌️️2d108ec2017-10-03 10:36:1628[pound-rust-internals]: https://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
Eli Friedmanbbbfed22015-08-09 21:15:0529[internals]: https://internals.rust-lang.org
varkor205ab0c2019-03-14 01:04:1930[rust-discord]: http://discord.gg/rust-lang
31[rust-zulip]: https://rust-lang.zulipchat.com
Eli Friedmanbbbfed22015-08-09 21:15:0532[coc]: https://www.rust-lang.org/conduct.html
varkorff5e31f2019-03-14 01:02:5633[rustc-guide]: https://rust-lang.github.io/rustc-guide/
mark48bee072019-01-16 02:02:2834[walkthrough]: https://rust-lang.github.io/rustc-guide/walkthrough.html
Brian Anderson36c63a32015-01-02 23:41:4735
Steve Klabnikf645cad2015-02-13 17:26:4436## Feature Requests
Garrett Bergdaf3ed52017-09-29 23:19:1737[feature-requests]: #feature-requests
Steve Klabnikf645cad2015-02-13 17:26:4438
Kurtis Nusbaumf9c5b1f2018-03-03 19:12:0939To request a change to the way the Rust language works, please head over
varkor6e449da2019-03-14 01:03:1140to the [RFCs repository](https://github.com/rust-lang/rfcs) and view the
Kurtis Nusbaumf9c5b1f2018-03-03 19:12:0941[README](https://github.com/rust-lang/rfcs/blob/master/README.md)
42for instructions.
Steve Klabnikf645cad2015-02-13 17:26:4443
44## Bug Reports
Garrett Bergdaf3ed52017-09-29 23:19:1745[bug-reports]: #bug-reports
Steve Klabnikf645cad2015-02-13 17:26:4446
47While bugs are unfortunate, they're a reality in software. We can't fix what we
48don't know about, so please report liberally. If you're not sure if something
49is a bug or not, feel free to file a bug anyway.
50
Brian Anderson0d0cb3b2015-11-06 22:05:1951**If you believe reporting your bug publicly represents a security risk to Rust users,
Jens Hausdorf38667102018-12-09 14:25:2352please follow our [instructions for reporting security vulnerabilities](https://www.rust-lang.org/policies/security)**.
Brian Anderson0d0cb3b2015-11-06 22:05:1953
Steve Klabnikf645cad2015-02-13 17:26:4454If you have the chance, before reporting a bug, please [search existing
55issues](https://github.com/rust-lang/rust/search?q=&type=Issues&utf8=%E2%9C%93),
56as it's possible that someone else has already reported your error. This doesn't
57always work, and sometimes it's hard to know what to search for, so consider this
58extra credit. We won't mind if you accidentally file a duplicate report.
59
Niv Kaminer79b11272018-04-21 09:08:0160Similarly, to help others who encountered the bug find your issue,
Lukas Bergdoll0bc8d4e2018-06-08 17:44:0461consider filing an issue with a descriptive title, which contains information that might be unique to it.
Niv Kaminer79b11272018-04-21 09:08:0162This can be the language or compiler feature used, the conditions that trigger the bug,
63or part of the error message if there is any.
64An example could be: **"impossible case reached" on lifetime inference for impl Trait in return position**.
65
Steve Klabnikf645cad2015-02-13 17:26:4466Opening an issue is as easy as following [this
67link](https://github.com/rust-lang/rust/issues/new) and filling out the fields.
68Here's a template that you can use to file a bug, though it's not necessary to
69use it exactly:
70
71 <short summary of the bug>
72
73 I tried this code:
74
75 <code sample that causes the bug>
76
77 I expected to see this happen: <explanation>
78
79 Instead, this happened: <explanation>
80
81 ## Meta
82
83 `rustc --version --verbose`:
84
85 Backtrace:
86
87All three components are important: what you did, what you expected, what
88happened instead. Please include the output of `rustc --version --verbose`,
89which includes important information about what platform you're on, what
90version of Rust you're using, etc.
91
92Sometimes, a backtrace is helpful, and so including that is nice. To get
Emanuel Cziraie1d2eda2016-03-28 12:41:5593a backtrace, set the `RUST_BACKTRACE` environment variable to a value
94other than `0`. The easiest way
Steve Klabnikf645cad2015-02-13 17:26:4495to do this is to invoke `rustc` like this:
96
97```bash
98$ RUST_BACKTRACE=1 rustc ...
99```
100
Greg Chappledc6ed632016-01-25 14:07:10101## The Build System
102
mark48bee072019-01-16 02:02:28103For info on how to configure and build the compiler, please see [this
104chapter][rustcguidebuild] of the rustc-guide. This chapter contains info for
105contributions to the compiler and the standard library. It also lists some
106really useful commands to the build system (`./x.py`), which could save you a
107lot of time.
Greg Chappledc6ed632016-01-25 14:07:10108
mark48bee072019-01-16 02:02:28109[rustcguidebuild]: https://rust-lang.github.io/rustc-guide/how-to-build-and-run.html
Ariel Ben-Yehudaf68e11b2017-12-20 19:22:32110
Steve Klabnikf645cad2015-02-13 17:26:44111## Pull Requests
Garrett Bergdaf3ed52017-09-29 23:19:17112[pull-requests]: #pull-requests
Steve Klabnikf645cad2015-02-13 17:26:44113
114Pull requests are the primary mechanism we use to change Rust. GitHub itself
Matthew Walinga9a4287d2018-01-18 23:05:33115has some [great documentation][about-pull-requests] on using the Pull Request feature.
Tej Chajeda7461292017-08-12 11:28:29116We use the "fork and pull" model [described here][development-models], where
117contributors push changes to their personal fork and create pull requests to
118bring those changes into the source repository.
Steve Klabnikf645cad2015-02-13 17:26:44119
Matthew Walinga9a4287d2018-01-18 23:05:33120[about-pull-requests]: https://help.github.com/articles/about-pull-requests/
Tej Chajeda7461292017-08-12 11:28:29121[development-models]: https://help.github.com/articles/about-collaborative-development-models/
Steve Klabnikf645cad2015-02-13 17:26:44122
123Please make pull requests against the `master` branch.
124
Cobrand9d9c0292016-09-03 10:41:02125Please make sure your pull request is in compliance with Rust's style
126guidelines by running
127
Alex Crichton0e272de2016-11-16 20:31:19128 $ python x.py test src/tools/tidy
Cobrand9d9c0292016-09-03 10:41:02129
130Make this check before every pull request (and every new commit in a pull
mark48bee072019-01-16 02:02:28131request); you can add [git hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)
Cobrand9d9c0292016-09-03 10:41:02132before every push to make sure you never forget to make this check.
133
Steve Klabnikf645cad2015-02-13 17:26:44134All pull requests are reviewed by another person. We have a bot,
varkor6f3fda92019-03-14 01:07:00135[@rust-highfive][rust-highfive], that will automatically assign a random person to review your
edunham177531e2015-05-27 14:29:02136request.
Steve Klabnikf645cad2015-02-13 17:26:44137
138If you want to request that a specific person reviews your pull request,
varkor308a0022019-03-14 01:13:26139you can add an `r?` to the message. For example, [Steve][steveklabnik] usually reviews
Steve Klabnikf645cad2015-02-13 17:26:44140documentation changes. So if you were to make a documentation change, add
141
142 r? @steveklabnik
143
varkor308a0022019-03-14 01:13:26144to the end of the message, and @rust-highfive will assign [@steveklabnik][steveklabnik] instead
Steve Klabnikf645cad2015-02-13 17:26:44145of a random person. This is entirely optional.
146
147After someone has reviewed your pull request, they will leave an annotation
148on the pull request with an `r+`. It will look something like this:
149
varkoreadb8442019-03-14 01:09:32150 @bors r+
Steve Klabnikf645cad2015-02-13 17:26:44151
varkor6f3fda92019-03-14 01:07:00152This tells [@bors][bors], our lovable integration bot, that your pull request has
varkor308a0022019-03-14 01:13:26153been approved. The PR then enters the [merge queue][merge-queue], where [@bors][bors]
Steve Klabnikf645cad2015-02-13 17:26:44154will run all the tests on every platform we support. If it all works out,
varkor308a0022019-03-14 01:13:26155[@bors][bors] will merge your code into `master` and close the pull request.
Steve Klabnikf645cad2015-02-13 17:26:44156
varkor3a006492019-03-14 01:17:49157Depending on the scale of the change, you may see a slightly different form of `r+`:
158
159 @bors r+ rollup
160
161The additional `rollup` tells [@bors][bors] that this change is eligible for to be
162"rolled up". Changes that are rolled up are tested and merged at the same time, to
163speed the process up. Typically only small changes that are expected not to conflict
164with one another are rolled up.
165
varkor6f3fda92019-03-14 01:07:00166[rust-highfive]: https://github.com/rust-highfive
varkor308a0022019-03-14 01:13:26167[steveklabnik]: https://github.com/steveklabnik
varkor6f3fda92019-03-14 01:07:00168[bors]: https://github.com/bors
Sam Cappleman-Lynesc3293112017-07-17 10:57:26169[merge-queue]: https://buildbot2.rust-lang.org/homu/queue/rust
Steve Klabnikf645cad2015-02-13 17:26:44170
Steve Klabnik8cb1faa2015-07-06 16:14:49171Speaking of tests, Rust has a comprehensive test suite. More information about
Kazuyoshi Katof656fe32018-09-13 04:21:43172it can be found [here][rctd].
Steve Klabnik8cb1faa2015-07-06 16:14:49173
Oliver Schneider49fca852017-08-15 16:06:10174### External Dependencies
Garrett Bergdaf3ed52017-09-29 23:19:17175[external-dependencies]: #external-dependencies
Oliver Schneider49fca852017-08-15 16:06:10176
177Currently building Rust will also build the following external projects:
178
Philipp Hansch36f66522019-02-21 19:58:56179* [clippy](https://github.com/rust-lang/rust-clippy)
Philipp Hansch4867a8c2019-02-21 18:26:45180* [miri](https://github.com/rust-lang/miri)
Philipp Hansch36f66522019-02-21 19:58:56181* [rustfmt](https://github.com/rust-lang/rustfmt)
182* [rls](https://github.com/rust-lang/rls/)
Oliver Schneider49fca852017-08-15 16:06:10183
kennytmd7488c32017-12-07 08:37:06184We allow breakage of these tools in the nightly channel. Maintainers of these
185projects will be notified of the breakages and should fix them as soon as
186possible.
Michal Budzynskie6c3c7f2017-09-17 23:24:29187
kennytmd7488c32017-12-07 08:37:06188After the external is fixed, one could add the changes with
Michal Budzynskie6c3c7f2017-09-17 23:24:29189
kennytmd7488c32017-12-07 08:37:06190```sh
Michal Budzynskie6c3c7f2017-09-17 23:24:29191git add path/to/submodule
192```
193
194outside the submodule.
Oliver Schneider49fca852017-08-15 16:06:10195
kennytmd7488c32017-12-07 08:37:06196In order to prepare your tool-fixing PR, you can run the build locally by doing
Niko Matsakis09caa122017-09-21 17:46:52197`./x.py build src/tools/TOOL`. If you will be editing the sources
198there, you may wish to set `submodules = false` in the `config.toml`
199to prevent `x.py` from resetting to the original branch.
Oliver Schneider49fca852017-08-15 16:06:10200
kennytmd7488c32017-12-07 08:37:06201Breakage is not allowed in the beta and stable channels, and must be addressed
202before the PR is merged.
203
Sunjay Varma790604a2017-10-18 02:51:10204#### Breaking Tools Built With The Compiler
205[breaking-tools-built-with-the-compiler]: #breaking-tools-built-with-the-compiler
Sunjay Varmabd4907d2017-10-08 01:53:43206
Sunjay Varma790604a2017-10-18 02:51:10207Rust's build system builds a number of tools that make use of the
varkor6e449da2019-03-14 01:03:11208internals of the compiler. This includes
Philipp Hansch36f66522019-02-21 19:58:56209[Clippy](https://github.com/rust-lang/rust-clippy),
210[RLS](https://github.com/rust-lang/rls) and
211[rustfmt](https://github.com/rust-lang/rustfmt). If these tools
Sunjay Varmabd4907d2017-10-08 01:53:43212break because of your changes, you may run into a sort of "chicken and egg"
Sunjay Varma790604a2017-10-18 02:51:10213problem. These tools rely on the latest compiler to be built so you can't update
214them to reflect your changes to the compiler until those changes are merged into
215the compiler. At the same time, you can't get your changes merged into the compiler
216because the rust-lang/rust build won't pass until those tools build and pass their
217tests.
Sunjay Varmabd4907d2017-10-08 01:53:43218
Sunjay Varma790604a2017-10-18 02:51:10219That means that, in the default state, you can't update the compiler without first
220fixing rustfmt, rls and the other tools that the compiler builds.
Sunjay Varmabd4907d2017-10-08 01:53:43221
kennytmd7488c32017-12-07 08:37:06222Luckily, a feature was [added to Rust's build](https://github.com/rust-lang/rust/issues/45861)
223to make all of this easy to handle. The idea is that we allow these tools to be "broken",
Sunjay Varma790604a2017-10-18 02:51:10224so that the rust-lang/rust build passes without trying to build them, then land the change
225in the compiler, wait for a nightly, and go update the tools that you broke. Once you're done
kennytmd7488c32017-12-07 08:37:06226and the tools are working again, you go back in the compiler and update the tools
227so they can be distributed again.
Sunjay Varmabd4907d2017-10-08 01:53:43228
Sunjay Varma790604a2017-10-18 02:51:10229This should avoid a bunch of synchronization dances and is also much easier on contributors as
230there's no need to block on rls/rustfmt/other tools changes going upstream.
231
232Here are those same steps in detail:
233
2341. (optional) First, if it doesn't exist already, create a `config.toml` by copying
Sunjay Varmabd4907d2017-10-08 01:53:43235 `config.toml.example` in the root directory of the Rust repository.
236 Set `submodules = false` in the `[build]` section. This will prevent `x.py`
Sunjay Varma3f90c3a2017-10-10 20:31:43237 from resetting to the original branch after you make your changes. If you
238 need to [update any submodules to their latest versions][updating-submodules],
239 see the section of this file about that for more information.
Sunjay Varma790604a2017-10-18 02:51:102402. (optional) Run `./x.py test src/tools/rustfmt` (substituting the submodule
241 that broke for `rustfmt`). Fix any errors in the submodule (and possibly others).
2423. (optional) Make commits for your changes and send them to upstream repositories as a PR.
2434. (optional) Maintainers of these submodules will **not** merge the PR. The PR can't be
244 merged because CI will be broken. You'll want to write a message on the PR referencing
245 your change, and how the PR should be merged once your change makes it into a nightly.
kennytmd7488c32017-12-07 08:37:062465. Wait for your PR to merge.
2476. Wait for a nightly
2487. (optional) Help land your PR on the upstream repository now that your changes are in nightly.
2498. (optional) Send a PR to rust-lang/rust updating the submodule.
Sunjay Varmabd4907d2017-10-08 01:53:43250
Sunjay Varma3f90c3a2017-10-10 20:31:43251#### Updating submodules
252[updating-submodules]: #updating-submodules
253
254These instructions are specific to updating `rustfmt`, however they may apply
255to the other submodules as well. Please help by improving these instructions
Martin Lindheece9a572017-11-21 14:33:45256if you find any discrepancies or special cases that need to be addressed.
Sunjay Varma3f90c3a2017-10-10 20:31:43257
258To update the `rustfmt` submodule, start by running the appropriate
259[`git submodule` command](https://git-scm.com/book/en/v2/Git-Tools-Submodules).
260For example, to update to the latest commit on the remote master branch,
261you may want to run:
262```
263git submodule update --remote src/tools/rustfmt
264```
265If you run `./x.py build` now, and you are lucky, it may just work. If you see
266an error message about patches that did not resolve to any crates, you will need
267to complete a few more steps which are outlined with their rationale below.
268
269*(This error may change in the future to include more information.)*
270```
Philipp Hansch36f66522019-02-21 19:58:56271error: failed to resolve patches for `https://github.com/rust-lang/rustfmt`
Sunjay Varma3f90c3a2017-10-10 20:31:43272
273Caused by:
Philipp Hansch36f66522019-02-21 19:58:56274 patch for `rustfmt-nightly` in `https://github.com/rust-lang/rustfmt` did not resolve to any crates
Sunjay Varma3f90c3a2017-10-10 20:31:43275failed to run: ~/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build --manifest-path ~/rust/src/bootstrap/Cargo.toml
276```
277
278If you haven't used the `[patch]`
279section of `Cargo.toml` before, there is [some relevant documentation about it
280in the cargo docs](http://doc.crates.io/manifest.html#the-patch-section). In
Ariel Ben-Yehudaf68e11b2017-12-20 19:22:32281addition to that, you should read the
Sunjay Varma3f90c3a2017-10-10 20:31:43282[Overriding dependencies](http://doc.crates.io/specifying-dependencies.html#overriding-dependencies)
283section of the documentation as well.
284
285Specifically, the following [section in Overriding dependencies](http://doc.crates.io/specifying-dependencies.html#testing-a-bugfix) reveals what the problem is:
286
287> Next up we need to ensure that our lock file is updated to use this new version of uuid so our project uses the locally checked out copy instead of one from crates.io. The way [patch] works is that it'll load the dependency at ../path/to/uuid and then whenever crates.io is queried for versions of uuid it'll also return the local version.
Ariel Ben-Yehudaf68e11b2017-12-20 19:22:32288>
Sunjay Varma3f90c3a2017-10-10 20:31:43289> This means that the version number of the local checkout is significant and will affect whether the patch is used. Our manifest declared uuid = "1.0" which means we'll only resolve to >= 1.0.0, < 2.0.0, and Cargo's greedy resolution algorithm also means that we'll resolve to the maximum version within that range. Typically this doesn't matter as the version of the git repository will already be greater or match the maximum version published on crates.io, but it's important to keep this in mind!
290
291This says that when we updated the submodule, the version number in our
292`src/tools/rustfmt/Cargo.toml` changed. The new version is different from
293the version in `Cargo.lock`, so the build can no longer continue.
294
295To resolve this, we need to update `Cargo.lock`. Luckily, cargo provides a
296command to do this easily.
297
Sunjay Varma3f90c3a2017-10-10 20:31:43298```
Sunjay Varma3f90c3a2017-10-10 20:31:43299$ cargo update -p rustfmt-nightly
300```
301
Eduard-Mihai Burtescu7c166f52018-08-22 02:50:46302This should change the version listed in `Cargo.lock` to the new version you updated
Sunjay Varma3f90c3a2017-10-10 20:31:43303the submodule to. Running `./x.py build` should work now.
304
Steve Klabnikf645cad2015-02-13 17:26:44305## Writing Documentation
Garrett Bergdaf3ed52017-09-29 23:19:17306[writing-documentation]: #writing-documentation
Steve Klabnikf645cad2015-02-13 17:26:44307
308Documentation improvements are very welcome. The source of `doc.rust-lang.org`
309is located in `src/doc` in the tree, and standard API documentation is generated
varkor3a006492019-03-14 01:17:49310from the source code itself. Documentation pull requests function in the same way
311as other pull requests.
Steve Klabnikf645cad2015-02-13 17:26:44312
lukaramu3b0add42017-03-24 20:16:00313To find documentation-related issues, sort by the [T-doc label][tdoc].
edunham177531e2015-05-27 14:29:02314
lukaramu3b0add42017-03-24 20:16:00315[tdoc]: https://github.com/rust-lang/rust/issues?q=is%3Aopen%20is%3Aissue%20label%3AT-doc
lukaramu7643ccd2017-03-24 20:28:59316
317You can find documentation style guidelines in [RFC 1574][rfc1574].
318
lukaramu3b0add42017-03-24 20:16:00319[rfc1574]: https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
edunham177531e2015-05-27 14:29:02320
Josh Driverfb2d7632017-02-23 10:45:30321In many cases, you don't need a full `./x.py doc`. You can use `rustdoc` directly
Aleksey Kladovc3753ce2015-10-02 21:09:27322to check small fixes. For example, `rustdoc src/doc/reference.md` will render
323reference to `doc/reference.html`. The CSS might be messed up, but you can
Amit Levy4b6477f2016-08-22 02:42:33324verify that the HTML is right.
Aleksey Kladovc3753ce2015-10-02 21:09:27325
mark48bee072019-01-16 02:02:28326Additionally, contributions to the [rustc-guide] are always welcome. Contributions
327can be made directly at [the
328rust-lang/rustc-guide](https://github.com/rust-lang/rustc-guide) repo. The issue
329tracker in that repo is also a great way to find things that need doing. There
330are issues for beginners and advanced compiler devs alike!
331
Steve Klabnikf645cad2015-02-13 17:26:44332## Issue Triage
Garrett Bergdaf3ed52017-09-29 23:19:17333[issue-triage]: #issue-triage
Steve Klabnikf645cad2015-02-13 17:26:44334
335Sometimes, an issue will stay open, even though the bug has been fixed. And
336sometimes, the original bug may go stale because something has changed in the
337meantime.
338
339It can be helpful to go through older bug reports and make sure that they are
340still valid. Load up an older issue, double check that it's still true, and
edunham177531e2015-05-27 14:29:02341leave a comment letting us know if it is or is not. The [least recently
342updated sort][lru] is good for finding issues like this.
Steve Klabnikf645cad2015-02-13 17:26:44343
edunham177531e2015-05-27 14:29:02344Contributors with sufficient permissions on the Rust repo can help by adding
345labels to triage issues:
346
347* Yellow, **A**-prefixed labels state which **area** of the project an issue
Aleksey Kladove3596e32015-10-02 21:08:14348 relates to.
edunham177531e2015-05-27 14:29:02349
Greg Chapplea5836fa2016-01-14 10:47:04350* Magenta, **B**-prefixed labels identify bugs which are **blockers**.
edunham177531e2015-05-27 14:29:02351
Carol (Nichols || Goulding)69b94942017-09-10 17:21:37352* Dark blue, **beta-** labels track changes which need to be backported into
353 the beta branches.
354
Carol (Nichols || Goulding)28fc93f2017-09-10 17:31:08355* Light purple, **C**-prefixed labels represent the **category** of an issue.
356
edunham177531e2015-05-27 14:29:02357* Green, **E**-prefixed labels explain the level of **experience** necessary
358 to fix the issue.
359
Carol (Nichols || Goulding)28fc93f2017-09-10 17:31:08360* The dark blue **final-comment-period** label marks bugs that are using the
jacob84f75f02018-10-02 21:59:48361 RFC signoff functionality of [rfcbot][rfcbot] and are currently in the final
Carol (Nichols || Goulding)28fc93f2017-09-10 17:31:08362 comment period.
363
edunham177531e2015-05-27 14:29:02364* Red, **I**-prefixed labels indicate the **importance** of the issue. The
365 [I-nominated][inom] label indicates that an issue has been nominated for
Aleksey Kladove3596e32015-10-02 21:08:14366 prioritizing at the next triage meeting.
edunham177531e2015-05-27 14:29:02367
Carol (Nichols || Goulding)69b94942017-09-10 17:21:37368* The purple **metabug** label marks lists of bugs collected by other
369 categories.
370
Carol (Nichols || Goulding)28fc93f2017-09-10 17:31:08371* Purple gray, **O**-prefixed labels are the **operating system** or platform
372 that this issue is specific to.
373
edunham177531e2015-05-27 14:29:02374* Orange, **P**-prefixed labels indicate a bug's **priority**. These labels
375 are only assigned during triage meetings, and replace the [I-nominated][inom]
Aleksey Kladove3596e32015-10-02 21:08:14376 label.
edunham177531e2015-05-27 14:29:02377
Carol (Nichols || Goulding)28fc93f2017-09-10 17:31:08378* The gray **proposed-final-comment-period** label marks bugs that are using
379 the RFC signoff functionality of [rfcbot][rfcbot] and are currently awaiting
380 signoff of all team members in order to enter the final comment period.
381
382* Pink, **regression**-prefixed labels track regressions from stable to the
383 release channels.
384
385* The light orange **relnotes** label marks issues that should be documented in
386 the release notes of the next release.
387
388* Gray, **S**-prefixed labels are used for tracking the **status** of pull
389 requests.
390
edunham177531e2015-05-27 14:29:02391* Blue, **T**-prefixed bugs denote which **team** the issue belongs to.
392
Aleksey Kladove3596e32015-10-02 21:08:14393If you're looking for somewhere to start, check out the [E-easy][eeasy] tag.
edunham177531e2015-05-27 14:29:02394
395[inom]: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AI-nominated
396[eeasy]: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AE-easy
Steve Klabnikf645cad2015-02-13 17:26:44397[lru]: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-asc
lukasluegf513fbd2018-03-27 18:56:15398[rfcbot]: https://github.com/anp/rfcbot-rs/
Steve Klabnikf645cad2015-02-13 17:26:44399
400## Out-of-tree Contributions
Garrett Bergdaf3ed52017-09-29 23:19:17401[out-of-tree-contributions]: #out-of-tree-contributions
Steve Klabnikf645cad2015-02-13 17:26:44402
403There are a number of other ways to contribute to Rust that don't deal with
404this repository.
405
406Answer questions in [#rust][pound-rust], or on [users.rust-lang.org][users],
407or on [StackOverflow][so].
408
409Participate in the [RFC process](https://github.com/rust-lang/rfcs).
410
411Find a [requested community library][community-library], build it, and publish
412it to [Crates.io](http://crates.io). Easier said than done, but very, very
413valuable!
414
415[pound-rust]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
Eli Friedmanbbbfed22015-08-09 21:15:05416[users]: https://users.rust-lang.org/
Steve Klabnikf645cad2015-02-13 17:26:44417[so]: http://stackoverflow.com/questions/tagged/rust
418[community-library]: https://github.com/rust-lang/rfcs/labels/A-community-library
christopherdumas3f866022015-09-11 23:21:11419
420## Helpful Links and Information
Garrett Bergdaf3ed52017-09-29 23:19:17421[helpful-info]: #helpful-info
christopherdumas3f866022015-09-11 23:21:11422
423For people new to Rust, and just starting to contribute, or even for
424more seasoned developers, some useful places to look for information
425are:
426
mark48bee072019-01-16 02:02:28427* The [rustc guide] contains information about how various parts of the compiler work and how to contribute to the compiler
Niko Matsakis9276b8b2017-09-22 20:27:55428* [Rust Forge][rustforge] contains additional documentation, including write-ups of how to achieve common tasks
christopherdumas3f866022015-09-11 23:21:11429* The [Rust Internals forum][rif], a place to ask questions and
430 discuss Rust's internals
431* The [generated documentation for rust's compiler][gdfrustc]
Andreas Sommeraa9666e2015-10-02 12:36:27432* The [rust reference][rr], even though it doesn't specifically talk about Rust's internals, it's a great resource nonetheless
christopherdumas3f866022015-09-11 23:21:11433* Although out of date, [Tom Lee's great blog article][tlgba] is very helpful
434* [rustaceans.org][ro] is helpful, but mostly dedicated to IRC
christopherdumasd09ba5d2015-09-12 15:02:01435* The [Rust Compiler Testing Docs][rctd]
varkor037596c2019-03-14 01:20:41436* For [@bors][bors], [this cheat sheet][cheatsheet] is helpful
437(though you'll need to replace `@homu` with `@bors` in any commands)
Andreas Sommeraa9666e2015-10-02 12:36:27438* **Google!** ([search only in Rust Documentation][gsearchdocs] to find types, traits, etc. quickly)
christopherdumas3f866022015-09-11 23:21:11439* Don't be afraid to ask! The Rust community is friendly and helpful.
440
Mark Mansi6494f1e2018-11-26 21:03:13441[rustc guide]: https://rust-lang.github.io/rustc-guide/about-this-guide.html
Do Duye03d24e2018-10-15 08:54:29442[gdfrustc]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/
fbergraa219d92015-12-23 20:42:36443[gsearchdocs]: https://www.google.com/search?q=site:doc.rust-lang.org+your+query+here
christopherdumas3f866022015-09-11 23:21:11444[rif]: http://internals.rust-lang.org
445[rr]: https://doc.rust-lang.org/book/README.html
Santiago Pastorino84dfade2017-09-22 20:10:51446[rustforge]: https://forge.rust-lang.org/
Florian Bergerdaa48a22016-04-15 19:28:32447[tlgba]: http://tomlee.co/2014/04/a-more-detailed-tour-of-the-rust-compiler/
christopherdumas3f866022015-09-11 23:21:11448[ro]: http://www.rustaceans.org/
Mark Mansi6494f1e2018-11-26 21:03:13449[rctd]: https://rust-lang.github.io/rustc-guide/tests/intro.html
Corey Farwellc7cd79b2017-08-21 01:24:14450[cheatsheet]: https://buildbot2.rust-lang.org/homu/