Commit Graph

122 Commits

Author SHA1 Message Date
David Tolnay
eca28d4276
Bump to 0.2.2 2018-01-21 21:17:28 -08:00
David Tolnay
b9114e6189
Merge pull request #58 from alexcrichton/fix
Add a special case for empty `/*` comments
2018-01-21 21:15:28 -08:00
Alex Crichton
f7df57c5c9 Add a special case for empty /* comments
Looks like they didn't fall into quite the right position!

Closes #57
2018-01-21 21:05:11 -08:00
Alex Crichton
8c03033828 Fix a panic in cooked_byte on utf-8 chars
Don't want to slice on the wrong boundary!

Closes #54
2018-01-16 08:07:36 -08:00
David Tolnay
36931ed936
Bump to 0.2.1 2018-01-08 14:05:54 -08:00
David Tolnay
9008f9cb5f
Merge pull request #51 from mystor/truefalse_lit
true and false should not be parsed as literals, and should instead be parsed as terms
2018-01-08 14:05:12 -08:00
Nika Layzell
7b3bb04f3e true and false should not be parsed as literals, and should instead be parsed as terms 2018-01-08 17:01:56 -05:00
David Tolnay
34231875b8
Bump to 0.2.0 2018-01-08 08:05:26 -08:00
David Tolnay
15cc498f9e
Set html_root_url 2018-01-08 08:03:27 -08:00
David Tolnay
ee04a5d846
Merge pull request #50 from alexcrichton/breaking
Breaking changes for 0.2
2018-01-08 08:01:39 -08:00
David Tolnay
1b5788f98a
Remove 'unstable' cfg 2018-01-08 07:48:53 -08:00
David Tolnay
1ce3a79646
Remove impl Default for Span
This was removed upstream in proc_macro. Use `Span::def_site()` instead.
2018-01-08 07:48:52 -08:00
Alex Crichton
066520dac8
Merge pull request #45 from SergioBenitez/master
Add From<proc_macro::Span> for proc_macro2::Span.
2018-01-08 09:36:50 -06:00
Alex Crichton
f2c71050ed
Merge pull request #49 from alexcrichton/term
Use the same api for imp::Term as for Term
2018-01-06 13:10:58 -06:00
David Tolnay
10effeb9b7
Use the same api for imp::Term as for Term 2018-01-06 11:07:49 -08:00
David Tolnay
c2f9c6ac7e
Bump to 0.1.10 2018-01-06 09:19:54 -08:00
David Tolnay
902557546a
Merge pull request #47 from alexcrichton/combine
Span::resolved_at and Span::located_at to combine behavior of two spans
2018-01-06 09:19:27 -08:00
David Tolnay
4e8e3973f7
Span::resolved_at and Span::located_at to combine behavior of two spans 2018-01-05 18:10:22 -08:00
David Tolnay
71c4b88c5c
Bump to 0.1.9 2018-01-05 14:16:58 -08:00
Alex Crichton
b71e64bd47
Merge pull request #46 from alexcrichton/float
Ensure that float literal is always formatted as floating point
2018-01-05 14:14:09 -06:00
David Tolnay
114990ecb1
Ensure that float literal is always formatted as floating point 2018-01-05 11:17:08 -08:00
Sergio Benitez
13805088ce Add From<proc_macro::Span> for proc_macro2::Span. 2018-01-04 01:56:41 -08:00
David Tolnay
12f379eab6
Bump to 0.1.8 2018-01-02 20:38:19 -08:00
Alex Crichton
47f36a0adb
Merge pull request #44 from alexcrichton/unstable-flags
Rename procmacro2_unstable and proc-macro2/unstable
2018-01-02 22:31:22 -06:00
David Tolnay
1ebe397e29
Rename procmacro2_unstable to procmacro2_semver_exempt 2018-01-02 20:14:20 -08:00
David Tolnay
d66ecf6960
Rename unstable feature to nightly 2018-01-02 20:06:52 -08:00
David Tolnay
fa1864f185
Bump to 0.1.7 2017-12-31 12:23:33 -05:00
David Tolnay
b10733fcd5
Link to travis and crates.io 2017-12-31 12:22:37 -05:00
Alex Crichton
31ac177a66
Merge pull request #41 from alexcrichton/unstable
Span::unstable to expose the proc_macro::Span
2017-12-31 11:15:15 -06:00
Alex Crichton
0957edd429
Merge pull request #40 from alexcrichton/span
Omit Span::lo/hi when not using procmacro2_unstable
2017-12-31 11:14:53 -06:00
David Tolnay
79105e54fc
Support rust 1.15.0 2017-12-31 11:03:18 -05:00
David Tolnay
16a1720b5b
Span::unstable to expose the proc_macro::Span 2017-12-31 10:49:43 -05:00
David Tolnay
ddfca05aa7
Omit Span::lo/hi when not using procmacro2_unstable
Token![...] being 24 bytes is a large number.
2017-12-31 10:41:45 -05:00
Alex Crichton
92ab1b4e3e
Merge pull request #36 from mystor/stable_span
Support meaningful spans in the stable version of proc-macro2
2017-12-31 01:00:12 -06:00
Nika Layzell
3aa5bdf4c6 Update travis configuration 2017-12-30 15:09:51 -05:00
Nika Layzell
fb783e32f0 Move span tests behind a procmacro2_unstable feature flag 2017-12-30 14:59:19 -05:00
Nika Layzell
3463674c99 Add a section about Unstable Features to the README.md 2017-12-30 14:56:58 -05:00
Nika Layzell
a0a7c3d27f Remove the now-unnecessary memchr dependency 2017-12-30 14:52:39 -05:00
Nika Layzell
a9dbc1848b Move the span APIs behind the procmacro2_unstable config option 2017-12-30 14:50:13 -05:00
Nika Layzell
b65b298c29 fixup! Wrap the LineColumn struct when re-exporting from proc-macro 2017-12-30 14:40:04 -05:00
Nika Layzell
b35a9a3d49 Update SourceFile::path to return the FileName struct 2017-12-30 14:34:35 -05:00
Nika Layzell
1ecb6ce8c3 Wrap the LineColumn struct when re-exporting from proc-macro 2017-12-30 14:34:05 -05:00
David Tolnay
7b7157c7b1
Bump to 0.1.6 2017-12-25 18:35:45 -05:00
Alex Crichton
21d2d11153
Merge pull request #38 from alexcrichton/underscore
Lex underscore in unicode escapes
2017-12-25 17:32:53 -06:00
David Tolnay
8d109342af
Lex underscore in unicode escapes 2017-12-25 18:24:45 -05:00
Nika Layzell
9cd13f742a Remove some unnecessary eprintln logging calls 2017-12-12 16:42:55 -05:00
Nika Layzell
ddea156a89 Add some tests for the join method 2017-12-11 14:25:35 -05:00
Nika Layzell
f8d5f2171a Initial implementation of stable meaningful spans 2017-12-11 14:13:08 -05:00
Alex Crichton
ea71984b11 Fix CI 2017-11-25 06:42:34 -08:00
Alex Crichton
be256d8cc8 Remove compiletest-dependent tests
We're only sort of barely using them anyway
2017-11-25 06:37:29 -08:00