Commit Graph

31 Commits

Author SHA1 Message Date
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