Commit Graph

547 Commits

Author SHA1 Message Date
徐未来
a27120161a 1.0.23升级至1.0.35
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-02 17:14:42 +08:00
openharmony_ci
15cdde10b6
!4 回退 'Pull Request !3 : quote1.0.23升级至1.0.35'
Merge pull request !4 from openharmony_ci/revert-merge-3-master
2024-04-02 03:39:55 +00:00
openharmony_ci
fb0b667103
回退 'Pull Request !3 : quote1.0.23升级至1.0.35' 2024-04-02 03:33:02 +00:00
openharmony_ci
db198d0fb5
!3 quote1.0.23升级至1.0.35
Merge pull request !3 from Future/master
2024-04-02 01:45:05 +00:00
徐未来
27c12e83f4 1.0.23升级至1.0.35
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-03-11 18:55:48 +08:00
openharmony_ci
b8565e7abf
!2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
2023-04-14 08:11:25 +00:00
fangting
d1974293d0 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:15:20 +08:00
openharmony_ci
68b146a698
!1 [quote]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:33:41 +00:00
lubinglun
1fa5107779 Add GN Build Files and Custom Modifications
Issue:https://gitee.com/openharmony/build/issues/I6UFTP
Signed-off-by: lubinglun <lubinglun@huawei.com>
2023-04-12 17:26:45 +08:00
David Tolnay
550af67f9e
Release 1.0.23 2022-12-18 09:27:50 -08:00
David Tolnay
b0337d0c55
Opt out -Zrustdoc-scrape-examples on docs.rs
I'd like a chance to audit all the code that rustdoc is inserting into
the docs. Currently I am skeptical that showing quote's internal usages
of APIs is a net benefit to the public documentation. I am also
skeptical that quite so many examples are needed, and that they should
be featured so prominently in comparison to handwritten docs. Lastly I
wish there were a way to turn this behavior off on a more granular
basis.
2022-12-18 09:27:08 -08:00
David Tolnay
2386c5a11e
Release 1.0.22 2022-12-17 11:32:41 -08:00
David Tolnay
ead304a8b5
Update build status badge 2022-12-15 17:52:42 -08:00
David Tolnay
51d3bd2fa2
Update ui test suite to nightly-2022-12-15 2022-12-14 19:09:18 -08:00
David Tolnay
2922a8ec2f
Time out workflows after 45 minutes
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It apepars to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
2022-11-25 18:56:18 -08:00
David Tolnay
6f42f3cac4
Fix renamed let_underscore_drop lint
warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
     --> tests/test.rs:3:5
      |
    3 |     clippy::let_underscore_drop,
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
      |
      = note: `#[warn(renamed_and_removed_lints)]` on by default
2022-11-22 19:19:40 -08:00
David Tolnay
b2e30cc11d
MIT copyright line
Delete the first paragraph of LICENSE-MIT (an inaccurate
pseudo-copyright line), leaving only the text of the MIT license.

Nothing about the license of quote has changed, only our understanding
of how to correctly communicate that license has changed.

This mirrors an equivalent chagne applied in the rust-lang/rust
repository years ago.
2022-10-18 01:52:32 -07:00
David Tolnay
efc9b69178
Ui test changes for trybuild 1.0.66 2022-10-04 22:26:34 -07:00
David Tolnay
1e2b19847e
Raise minimum tested toolchain to rust 1.56
Required by the transitive dev-dependency on once_cell.

    error: failed to parse manifest at github.com-1ecc6299db9ec823/once_cell-1.15.0/Cargo.toml

    Caused by:
      feature `edition2021` is required

      The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
      Consider trying a newer version of Cargo (this may require the nightly release).
      See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information about the status of this feature.
2022-09-20 22:26:55 -07:00
David Tolnay
30daa57f45
Remove default package.readme metadata from Cargo.toml
Since cargo 1.46.0, README.md is recognized by default.
2022-09-14 09:16:00 -07:00
David Tolnay
2f18cb379b
GitHub Workflows security hardening 2022-09-02 15:09:30 -07:00
David Tolnay
1cafe1cad2
Ignore using destructuring assignment to wildcard pattern 2022-08-31 00:29:08 -07:00
David Tolnay
231b861a63
Update ui test suite to nightly-2022-08-23 2022-08-22 23:05:12 -07:00
David Tolnay
75a3c3cd65
Update ui test suite to nightly-2022-08-20 2022-08-19 21:38:42 -07:00
David Tolnay
c6e5ed54c4
Resolve renamed_and_removed_lints warning on blacklisted_name
warning: lint `clippy::blacklisted_name` has been renamed to `clippy::disallowed_names`
     --> tests/test.rs:2:5
      |
    2 |     clippy::blacklisted_name,
      |     ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::disallowed_names`
      |
      = note: `#[warn(renamed_and_removed_lints)]` on by default
2022-08-12 21:37:38 -07:00
David Tolnay
34d94b4980
Release 1.0.21 2022-08-02 20:58:15 -07:00
David Tolnay
20a59fd44e
Update keywords in crates.io metadata 2022-08-02 10:38:56 -07:00
David Tolnay
ae25ab6a5b
Change std imports to core where possible
Useful for seeing what are the gaps toward being compatible with
no-std. Useful for copying chunks of code into a no-std crate.
2022-07-31 23:05:17 -07:00
David Tolnay
fa923c4618
Sort package entries in Cargo.toml 2022-07-31 19:19:04 -07:00
David Tolnay
d196f9563e
Update ui test suite to nightly-2022-07-28 2022-07-27 21:03:20 -07:00
David Tolnay
29cc169edb
Update ui test suite to nightly-2022-07-20 2022-07-19 21:21:18 -07:00
David Tolnay
164493f788
Update ui test suite to nightly-2022-07-10 2022-07-09 19:50:03 -07:00
David Tolnay
d84bcc3f01
Update ui test suite to nightly-2022-07-02 2022-07-01 20:02:56 -07:00
David Tolnay
8cf6d7b565
Use dtolnay/rust-toolchain's miri toolchain
This defaults to components miri + rust-src.
2022-06-29 10:56:00 -07:00
David Tolnay
2a6da9b8c6
Update ui test suite to nightly-2022-06-26 2022-06-25 22:54:51 -07:00
David Tolnay
5801746407
Release 1.0.20 2022-06-19 19:14:08 -07:00
David Tolnay
95bb29c8e7
Hygienic path for ::std::option::Option 2022-06-19 19:13:42 -07:00
David Tolnay
72863076c2
Merge pull request #226 from dtolnay/format
Call `format!` through an unambiguous path
2022-06-19 19:12:11 -07:00
David Tolnay
a2389eeaa8
Call 'format!' through an unambiguous path
Repro:

    use quote::format_ident;

    macro_rules! format {
        () => {};
    }

    fn main() {
        let _ = format_ident!("foo");
    }

Previously:

    error: no rules expected the token `"foo"`
     --> src/main.rs:8:13
      |
    3 | macro_rules! format {
      | ------------------- when calling this macro
    ...
    8 |     let _ = format_ident!("foo");
      |             ^^^^^^^^^^^^^^^^^^^^ no rules expected this token in macro call
      |
      = note: this error originates in the macro `format_ident` (in Nightly builds, run with -Z macro-backtrace for more info)
2022-06-19 19:06:18 -07:00
David Tolnay
cb2ba9fff5
Rearrange push_ident internals 2022-06-19 19:01:58 -07:00
David Tolnay
1e89973334
Merge pull request #225 from mystor/ident_new_raw
Use Ident::new_raw to quote raw identifiers
2022-06-19 18:59:09 -07:00
Nika Layzell
ca2b2ed3db
Use Ident::new_raw to quote raw identifiers
This requires the changes in
https://github.com/dtolnay/proc-macro2/pull/331 which expose
Ident::new_raw from proc-macro2, along with providing a fallback for
earlier versions of Rust.

Fixes #223
2022-06-19 18:55:26 -07:00
David Tolnay
46637832af
Link to explain why an invalid span workaround is needed 2022-06-19 18:54:52 -07:00
David Tolnay
3f694ca9f6
Merge pull request #224 from mystor/rm_invalid_span_workaround
Disable the invalid span workaround in spanned.rs on patched versions of rustc
2022-06-19 18:53:43 -07:00
Nika Layzell
00052ccc54 Disable the invalid span workaround in spanned.rs on patched versions of rustc
Fixes #222
2022-06-19 20:38:03 -04:00
David Tolnay
eeabf0d42e
Release 1.0.19 2022-06-18 16:43:52 -07:00
David Tolnay
75d195e1f2
Merge pull request #221 from dtolnay/semicolon
Eliminate piles of extra semicolons from expanded code
2022-06-18 16:43:30 -07:00
David Tolnay
541878c483
Eliminate piles of extra semicolons from expanded code
Look at `cargo rustc --profile=check -- -Zunpretty=expanded` of the
following program:

    use quote::quote;
    fn main() {
        let _ = quote!(1 + 1);
    }

Before:

    use quote::quote;
    fn main() {
        let _ =
            {
                let mut _s = ::quote::__private::TokenStream::new();
                ;
                ;
                ;
                ::quote::__private::parse(&mut _s, "1");
                ;
                ::quote::__private::push_add(&mut _s);
                ;
                ::quote::__private::parse(&mut _s, "1");
                ;
                ;
                ;
                ;
                _s
            };
    }

After:

    use quote::quote;
    fn main() {
        let _ =
            {
                let mut _s = ::quote::__private::TokenStream::new();
                ::quote::__private::parse(&mut _s, "1");
                ::quote::__private::push_add(&mut _s);
                ::quote::__private::parse(&mut _s, "1");
                _s
            };
    }
2022-06-18 16:38:49 -07:00
David Tolnay
81baf01f5a
Format with rustfmt 1.5.0 2022-06-18 16:31:32 -07:00
David Tolnay
c488922051
Use upstreamed docs.rs icon in docs.rs badge 2022-06-11 10:15:58 -07:00