Nick Cameron
a76d9b529a
format code and tests
2018-03-20 09:27:31 +13:00
Seiichi Uchida
d316eba54d
Add opt_span_before() to SpanUtils trait
...
With some refactorings to avoid duplicated code.
2018-03-06 19:46:03 +09:00
Nick Cameron
39301ae5f2
Go back to a non-workspace structure
...
Kinda reverts https://github.com/rust-lang-nursery/rustfmt/pull/2419
2018-03-02 14:58:23 +13:00
topecongiro
4af2aa3a9e
Create rustfmt_core crate
2018-02-07 22:48:05 +09:00
Nick Cameron
30a28a262c
Make is_mod_decl
more accommodating
...
Fixes #2403 (I think)
2018-02-02 15:16:29 +13:00
David Wood
e343521276
Add assert_eq! to special-cased macros
...
Allows for this form of assert_eq! macros:
```rust
assert_eq!(
left.id, right.id,
"IDs are not equal: {:?} {:?}",
left, right
);
```
Also allows for assert! macros to have the format arguments split across
multiple lines even if the assert condition is not simple:
```rust
assert!(
result >= 42,
"The result must be at least 42: {:?}",
result, result.code, context
);
```
2017-12-23 01:06:17 +00:00
Oliver Schneider
fad903fd14
Move from String to PathBuf where applicable
2017-12-15 10:26:19 +09:00
topecongiro
6ce42823cb
Add opt_snippet() and opt_span_after()
2017-11-10 17:08:57 +09:00
Seiichi Uchida
4b79055a15
Apply refactoring from cargo clippy
2017-08-31 12:49:12 +09:00
Vadim Petrochenkov
6e5c6f5ba3
Use getters to access Span
fields
2017-08-31 14:14:13 +12:00
Nick Cameron
1f512948a0
Reformat source code using new defaults
2017-06-13 14:41:49 +12:00
Nick Cameron
5fb1140688
fallout - source reformatting
2017-03-28 11:14:47 +13:00
Nick Cameron
33b83ae7df
Formatting fallout
...
Also fixes a minor bug when we break a line after `if` and used to leave a trailing space
2017-03-07 09:50:41 +13:00
Nick Cameron
d3eba76e4d
update Serde, etc.
...
Lots of changes to how closures work
2016-11-21 11:02:18 +13:00
Kamal Marhubi
8775fe4172
codemap: Add module description
2016-05-31 01:34:42 +02:00
Kamal Marhubi
a83f1a197e
Add copyright notices to added files
2016-05-31 01:34:07 +02:00
Kamal Marhubi
ed27b4799a
codemap: Add utilities for looking up line ranges of spans
...
This commit adds extension methods to `Codemap` to allow looking up line
ranges for spans.
Refs #434
2016-05-31 00:49:31 +02:00
Kamal Marhubi
bd10af127e
utils: Move codemap related utilities to a dedicated module
...
This commit adds a `codemap` module, and moves the `CodemapSpanUtils`
added in #857 to it. This is preparation for adding more `Codemap`
specific utilities.
Refs #434
2016-05-31 00:49:26 +02:00