Commit Graph

23 Commits

Author SHA1 Message Date
Caleb Cartwright
ed3e96e3d1 Merge commit '3f7c366fc0464e01ddcaefbd70647cb3da4202be' into rustfmt-sync 2023-06-19 23:13:56 -05:00
Caleb Cartwright
f99e3582bd Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync 2021-11-07 20:37:34 -06:00
Caleb Cartwright
e4b8714c09 Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt 2021-07-25 22:57:19 -05:00
Alexander Melentyev
71f01d1974 Delete spaces 2021-06-21 12:11:37 +03:00
Stéphane Campinas
ae331be1aa
indicate that version-gate are to be considered only with changes to the default formatting 2019-02-21 14:43:45 +01:00
Stéphane Campinas
36e2cb0456
add a section to the Contributing.md file about version-gating formatting changes 2018-12-19 09:31:13 +01:00
Lucian
8cd8ab5f4b Fix minor typos and grammar
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2018-12-06 15:31:43 +00:00
Nick Cameron
378994b858 Add a version option 2018-11-27 14:18:14 +13:00
Stéphane Campinas
d681d5f456
added a note about the use of the RUST_LOG environment variable 2018-09-26 22:42:59 +02:00
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