Commit Graph

14 Commits

Author SHA1 Message Date
Stéphane Campinas
f7a25a1177
warn on use of default value for an option 2018-06-30 17:03:18 +02:00
Philipp Hansch
d93ae12c52
Link to official nightly documentation
Since https://github.com/rust-lang/rust-central-station/pull/40 has been
merged, we have a stable location for the nightly docs.
2018-04-19 08:22:13 +02:00
David Alber
87d3b3c25a Adding links to the Code of Conduct 2018-03-01 21:58:07 -08:00
Christopher Armstrong
9332181729
IRC channel is now #rust-dev-tools
Also specifically mention the IRC network (irc.mozilla.org) that the channel is on.
2018-02-15 14:47:49 -06:00
David Alber
f410d02b61 Updating good starting issues link 2017-11-02 01:14:52 -07:00
topecongiro
ce8e645537 Update Contributing.md 2017-10-05 20:50:50 +09:00
Michael Killough
c0bdbfa531 Switch to accessing config items via method.
Preparation for #865, which proposes adding a flag which outputs which
config options are used during formatting.

This PR should not make any difference to functionality. A lot of this
was search-and-replace.

Some areas worthy of review/discussion:

 - The method for each config item returns a clone of the underlying
   value. We can't simply return an immutable reference, as lots of
   places in the code expect to be able to pass the returned value as
   `bool` (not `&bool). It would be nice if the `bool` items could
   return a copy, but the more complex types a borrowed reference... but
   unfortunately, I couldn't get the macro to do this.
 - A few places (mostly tests and `src/bin/rustfmt.rs`) were overriding
   config items by modifying the fields of the `Config` struct directly.
   They now use the existing `override_value()` method, which has been
   modified to return a `Result` for use by `src/bin/rustfmt.rs`. This
   benefits of this are that the complex `file_lines` and `write_mode`
   strings are now parsed in one place (`Config.override_value`) instead
   of multiple. The disadvantages are that it moves the compile-time
   checks for config names to become run-time checks.
2017-05-16 15:47:09 +07:00
Stuart Dootson
5dda986a2c Add commentary 2016-08-09 22:11:27 +02:00
Kaivo Anastetiks
a9d27f92ce Links to the rust-lang-nursery/rustfmt issue list. 2016-07-02 11:34:48 -04:00
Keith Yeung
b205fb6af2 Fix incorrect usage of 'it's' 2015-11-21 15:55:42 -08:00
Nick Cameron
b4d7c6ba5a make links work 2015-11-12 11:51:24 +13:00
Nick Cameron
8ac0b3144c Information for new contributors 2015-11-11 11:15:54 +13:00
Marcus Klaas
be77f8a277 Add a brief overview of rustfmt tests 2015-10-24 16:24:51 +02:00
Alex HotShot Newman
b1565c5c4c Readme cleanup 2015-08-31 21:02:19 -07:00