Commit Graph

47 Commits

Author SHA1 Message Date
徐未来
76b407eb79 syn 1.0.107升级至2.0.48
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-02 16:51:27 +08:00
openharmony_ci
e4c68997d9
回退 'Pull Request !6 : syn 1.0.107升级至2.0.48' 2024-04-02 03:27:54 +00:00
徐未来
20f0300a69 syn 1.0.107升级至2.0.48
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-01 20:47:12 +08:00
openharmony_ci
cf68197ecf
回退 'Pull Request !4 : syn 1.0.107升级至2.0.48' 2024-04-01 12:11:54 +00:00
徐未来
f138b90acb syn 1.0.107升级至2.0.48
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-03-08 17:26:00 +08:00
David Tolnay
ac1dbf5d85
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:19 -08:00
David Tolnay
f199b225f0
Check for outdated deps in fuzz target 2022-09-28 13:55:48 -07:00
David Tolnay
93497ba9e2
Add CI build to cover fuzz target 2022-09-28 13:55:48 -07:00
David Tolnay
1944b67cff
GitHub Workflows security hardening 2022-09-02 15:09:32 -07:00
David Tolnay
e9faaef601
Directly install wasm32 target support 2022-07-20 15:03:53 -07:00
David Tolnay
6f518112c8
Check all crates in workspace for outdated deps 2022-06-06 14:39:25 -07:00
David Tolnay
63f6c9f768
Run miri in stricter miri-strict-provenance mode 2022-05-06 04:01:35 -07:00
David Tolnay
a0cd03c41b
Drop unneeded quoting from env variable in workflows yaml 2022-04-28 19:29:12 -07:00
Ben Kimock
95f242c525 Avoid Box invalidation, for tag-raw-pointers
It looks like the only outstanding issue aliasing issue in this repo
(with raw pointer tagging) was this one move of a Box after saving a
pointer to the allocation that the Box guards. This is UB according to
the Stacked Borrows with raw pointer tagging in combination with the way
rustc applies noalias to Box. As is often the case, the resolution here
is to convert the Box down to a raw pointer before a pointer into the
allocation is created.
2022-04-28 20:32:01 -04:00
David Tolnay
ff84ce09ac
Update workflows to actions/checkout@v3 2022-04-24 19:04:49 -07:00
David Tolnay
ce0335b5fb
Pull miri from miri branch of dtolnay/rust-toolchain 2022-04-24 15:45:43 -07:00
David Tolnay
76a4d857d7
Replace rustfmt with prettyplease crate 2022-01-12 10:01:19 -08:00
David Tolnay
7ab5312db6
Update rustfmt for generated code to 1.4.38 2022-01-12 10:00:02 -08:00
David Tolnay
b45f2da158
Detect warnings in CI 2021-12-31 22:11:56 -08:00
David Tolnay
22b36c31c3
Run clippy on benches as well 2021-12-12 13:54:33 -08:00
David Tolnay
5ccc98edc8
Add a miri test job in CI 2021-12-11 12:57:22 -08:00
David Tolnay
c859588bdb
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:35:08 -08:00
David Tolnay
317e6fee6a
Add actions job to notice outdated dependencies 2021-10-08 01:46:42 -04:00
David Tolnay
fc28611f95
Clippy component also needs to be installed 2021-09-30 02:43:35 -04:00
David Tolnay
2ec6afb6d8
Install rustc_ast crate for the clippy CI job
error[E0463]: can't find crate for `rustc_ast`
     --> tests/test_round_trip.rs:6:1
      |
    6 | extern crate rustc_ast;
      | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
      |
      = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
2021-09-30 02:25:44 -04:00
David Tolnay
63f1d81840
Run clippy on test suite too 2021-09-30 02:03:11 -04:00
David Tolnay
320fbc6aae
Skip clippy job on pull requests 2021-09-18 16:50:15 -07:00
David Tolnay
d1028a2ef2
Bump codegen to rustfmt built with nightly-2021-04-26
The previously used rustfmt commit only builds with an old version of
1.52-dev, and that one is missing trait bounds on const fn.

    error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.4/src/mutex.rs:143:6
        |
    143 | impl<R: RawMutex, T> Mutex<R, T> {
        |      ^
        = help: add `#![feature(const_fn)]` to the crate attributes to enable

    error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.4/src/remutex.rs:224:6
        |
    224 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
        |      ^
        = help: add `#![feature(const_fn)]` to the crate attributes to enable

    error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.4/src/remutex.rs:224:19
        |
    224 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
        |                   ^
        = help: add `#![feature(const_fn)]` to the crate attributes to enable

    error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.4/src/rwlock.rs:348:6
        |
    348 | impl<R: RawRwLock, T> RwLock<R, T> {
        |      ^
        = help: add `#![feature(const_fn)]` to the crate attributes to enable
2021-04-30 19:35:28 -07:00
David Tolnay
305872d4fa
It turns out CFG_RELEASE is meaningless 2021-04-30 19:35:28 -07:00
David Tolnay
17332d952a
Bump codegen build to newer rustfmt commit
The previously used rustfmt commit only builds with an early version of
1.51-dev, and that one is missing addr_of.

    error[E0433]: failed to resolve: could not find `addr_of` in `ptr`
       --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.40/src/error.rs:606:14
        |
    606 |         ptr::addr_of!((*unerased.as_ptr())._object) as *mut E,
        |              ^^^^^^^ could not find `addr_of` in `ptr`

    error[E0433]: failed to resolve: could not find `addr_of` in `ptr`
       --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.40/src/error.rs:647:22
        |
    647 |                 ptr::addr_of!((*unerased.as_ptr())._object) as *mut E,
        |                      ^^^^^^^ could not find `addr_of` in `ptr`
2021-03-26 13:52:16 -04:00
David Tolnay
000cbd6bea
Move documentation testing to doc CI job 2021-03-26 02:34:23 -04:00
David Tolnay
5e23a9b9ac
Fix catching clippy warnings as CI failures 2021-01-04 23:52:10 -08:00
David Tolnay
a632de1ad9
Update internal code generator to rustfmt 2.0.0-rc.2
The previously pinned rustfmt commit + toolchain have no longer been
compiling as of servo/rust-smallvec#248.

    error[E0658]: unions with non-`Copy` fields are unstable
       --> /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.6.0/src/lib.rs:353:1
        |
    353 | / union SmallVecData<A: Array> {
    354 | |     inline: core::mem::ManuallyDrop<MaybeUninit<A>>,
    355 | |     heap: (*mut A::Item, usize),
    356 | | }
        | |_^
        |
        = note: see issue #55149 <https://github.com/rust-lang/rust/issues/55149> for more information
        = help: add `#![feature(untagged_unions)]` to the crate attributes to enable
2020-12-31 21:39:29 -08:00
David Tolnay
5f575b979b
Move clippy lint level to CI job 2020-12-29 17:16:40 -08:00
David Tolnay
824453c5e1
Add a rustdoc job to CI 2020-12-06 19:46:44 -08:00
David Tolnay
cfc7c8a42d
Revert "Pin CI to nightly-2020-07-21 to avoid rust-lang/rust#74614"
This reverts commit 2fa9c2562b.
2020-07-26 20:41:11 -07:00
David Tolnay
2fa9c2562b
Pin CI to nightly-2020-07-21 to avoid rust-lang/rust#74614 2020-07-21 19:54:01 -07:00
David Tolnay
66116435ca
Update rustc used for codegen build 2020-05-26 15:56:55 -07:00
David Tolnay
ee81d0641e
Add a sponsors link 2020-05-26 11:25:57 -07:00
David Tolnay
3c5079f6cf
Install rustc-dev component for checking benches 2020-05-25 02:10:02 -07:00
David Tolnay
73384a2ba3
Compile benches in CI 2020-05-25 02:03:51 -07:00
David Tolnay
74aa4e111f
Replace cargo build with check in CI 2020-05-25 02:01:00 -07:00
David Tolnay
562ce7b77e
Remove Travis configuration 2020-05-05 11:34:25 -07:00
David Tolnay
3e1ba8390c
Abbreviate clippy toolchain installation 2020-05-02 21:53:03 -07:00
David Tolnay
0bc5df7efe
Tweak os declaration in ci.yml 2020-05-02 21:21:58 -07:00
David Tolnay
8f3888c871
Add Windows build in GitHub Actions 2020-05-02 17:33:14 -07:00
David Tolnay
4504ce6334
Enable GitHub Actions 2020-05-02 17:01:43 -07:00