David Tolnay
58d55651b3
Merge pull request #319 from dtolnay/treesfield
...
Reduce visibility of fallback TokenStream's field
2021-12-26 21:22:06 -08:00
David Tolnay
6d9a5796ec
Reduce visibility of fallback TokenStream's field
2021-12-26 21:20:23 -08:00
David Tolnay
6f4dc99570
Merge pull request #318 from dtolnay/literalrepr
...
Rename text -> repr in implementation of Literal
2021-12-26 20:49:39 -08:00
David Tolnay
2f2dfcf36b
Rename text -> repr in implementation of Literal
2021-12-26 20:48:02 -08:00
David Tolnay
0360b2af38
Merge pull request #317 from dtolnay/literalunchecked
...
Add a Literal::from_str_unchecked constructor for quote
2021-12-26 20:46:32 -08:00
David Tolnay
4ca7537b94
Add a Literal::from_str_unchecked constructor for quote
2021-12-26 20:44:29 -08:00
David Tolnay
7b91e66a2f
Consistently use Self in return type of constructors
2021-12-26 20:36:34 -08:00
David Tolnay
a7eabbdda6
Release 1.0.35
2021-12-26 14:03:43 -08:00
David Tolnay
3dcb2fe9c9
Bump benchmark iteration count
2021-12-26 13:34:15 -08:00
David Tolnay
05fb118a45
Merge pull request #314 from dtolnay/bench
...
Update benchmark example output
2021-12-26 13:34:06 -08:00
David Tolnay
dc22e17fe9
Update benchmark example output
...
This has been running hundreds of times faster since Rust 1.40.
2021-12-26 13:18:33 -08:00
David Tolnay
a85f0f0848
Cargo bench is not supported
...
$ cargo bench
Compiling proc-macro2 v1.0.34 (/git/proc-macro2)
error[E0433]: failed to resolve: use of undeclared crate or module `bench_libproc_macro`
--> benches/bench-libproc-macro/main.rs:1:1
|
1 | bench_libproc_macro::bench!();
| ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `bench_libproc_macro`
2021-12-26 13:18:18 -08:00
David Tolnay
988cf403e7
Merge pull request #312 from dtolnay/detection
...
Ordering::Relaxed for the proc_macro detection
2021-12-20 12:34:53 -08:00
David Tolnay
5dc441c3ee
Ordering::Relaxed for the proc_macro detection
2021-12-20 12:30:22 -08:00
David Tolnay
a2b4ff3c0c
Ignore return_self_not_must_use clippy lint
...
error: missing `#[must_use]` attribute on a method returning `Self`
--> src/lib.rs:437:5
|
437 | / pub fn resolved_at(&self, other: Span) -> Span {
438 | | Span::_new(self.inner.resolved_at(other.inner))
439 | | }
| |_____^
|
= note: `-D clippy::return-self-not-must-use` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
error: missing `#[must_use]` attribute on a method returning `Self`
--> src/lib.rs:443:5
|
443 | / pub fn located_at(&self, other: Span) -> Span {
444 | | Span::_new(self.inner.located_at(other.inner))
445 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
2021-12-17 18:18:45 -08:00
David Tolnay
5671a59390
Merge pull request #311 from dtolnay/cfg
...
Try to diagnose "cannot find type SourceFile" errors better
2021-12-14 13:20:28 -08:00
David Tolnay
dc609ab4e6
Try to diagnose "cannot find type SourceFile" errors better
2021-12-14 13:09:44 -08:00
David Tolnay
3ff70daead
Release 1.0.34
2021-12-14 10:08:10 -08:00
David Tolnay
d8c0371a8f
Merge pull request #310 from dtolnay/docsrs
...
Work around doc build failure due to docs.rs flags change
2021-12-14 10:07:37 -08:00
David Tolnay
1385671945
Work around doc build failure due to docs.rs flags change
2021-12-14 09:59:15 -08:00
David Tolnay
4ca16a0054
Merge pull request #308 from klensy/doc-comment-less-alloc
...
doc_comment: consume vector instead of iterating and collecting it
2021-12-10 11:19:00 -08:00
klensy
12f9352c4b
doc_comment: consume vector instead of iterating and collecting it
2021-12-10 19:53:50 +03:00
David Tolnay
9f100ba092
Release 1.0.33
2021-12-05 11:49:38 -08:00
David Tolnay
b3ac19cbfb
Merge pull request #305 from dtolnay/openclose
...
Enable span_open() and span_close() on Rust 1.55+
2021-12-05 11:48:53 -08:00
David Tolnay
bf7f11678e
Enable span_open() and span_close() on Rust 1.55+
2021-12-05 11:45:57 -08:00
David Tolnay
366c4022aa
Merge pull request #304 from dtolnay/cfgno
...
Invert cfgs that deal with old compiler support
2021-12-05 11:42:43 -08:00
David Tolnay
1a798db43b
Invert cfgs that deal with old compiler support
2021-12-05 11:30:48 -08:00
David Tolnay
acfe69f72d
Import std::panic in the one place where needed
2021-12-05 11:06:49 -08:00
David Tolnay
28514c65cf
Merge pull request #303 from bjorn3/fix_is_available
...
Fix usage of proc_macro::is_available()
2021-12-05 11:05:43 -08:00
bjorn3
a4beb26961
Fix warning when is_available() is used
2021-12-02 11:43:53 +01:00
bjorn3
f601ea30a7
Fix usage of proc_macro::is_available()
...
In #300 I made a mistake with the #[cfg] causing
proc_macro::is_available() to never actually be used. I have now
double checked that it is actually used on Rust 1.57+.
2021-12-02 11:40:28 +01:00
David Tolnay
162fff2eae
Install newest build of cargo-outdated
...
The old version available by default in the GitHub Actions image fails
with:
thread 'main' panicked at 'package cache lock is not currently held, Cargo forgot to call `acquire_package_cache_lock` before we got to this stack frame', /usr/share/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.57.0/src/cargo/util/config/mod.rs:1542:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2021-11-17 13:32:54 -08:00
David Tolnay
dc83186fb3
Clippy if_then_panic lint has been renamed to manual_assert
2021-11-04 19:52:19 -07:00
David Tolnay
124002dbaf
Release 1.0.32
2021-10-26 12:17:04 -07:00
David Tolnay
4178471d8b
Merge pull request #301 from dtolnay/negative
...
Support negative int and float literals in FromStr
2021-10-26 12:16:40 -07:00
David Tolnay
3f57d820f7
Support negative int and float literals in FromStr
2021-10-26 12:11:24 -07:00
David Tolnay
25d7c7573d
Add tests of negative literal parsing
2021-10-26 12:08:26 -07:00
David Tolnay
37484ecac4
Release 1.0.31
2021-10-26 10:55:51 -07:00
David Tolnay
1740ffc628
Add crosslink icons to rustdoc
2021-10-26 10:51:48 -07:00
David Tolnay
0918b736a4
Update badge styles
2021-10-26 10:49:39 -07:00
David Tolnay
059b4c3adb
Update cargo metadata and links to dtolnay repo
2021-10-26 10:48:19 -07:00
David Tolnay
10239028f8
Release 1.0.30
2021-10-12 09:55:45 -07:00
David Tolnay
3268f28ef6
Touch up PR 300
2021-10-12 09:55:22 -07:00
David Tolnay
321a711ad3
Merge pull request #300 from bjorn3/proc_macro_is_available
...
Use proc_macro::is_available() on rust 1.57+
2021-10-12 12:53:01 -04:00
bjorn3
07ee9bba15
Fix review comment
2021-10-12 13:36:01 +02:00
bjorn3
f0b0040bf8
Use proc_macro::is_available() on rust 1.57+
...
This avoids the need for catching a panic, which is incompatible with
projects using panic=abort or cg_clif.
2021-10-11 18:02:21 +02:00
David Tolnay
0253a0b7cd
Ui test changes for trybuild 1.0.49
2021-10-08 02:51:46 -04:00
David Tolnay
2cf5d1a24a
Add actions job to notice outdated dependencies
2021-10-08 01:57:40 -04:00
David Tolnay
b8dbdbb205
Declare minimum Rust version in Cargo metadata
2021-10-02 01:49:51 -04:00
David Tolnay
a5b48e6b29
Also run clippy with crate features enabled
2021-09-30 01:20:49 -04:00