Commit Graph

2943 Commits

Author SHA1 Message Date
David Tolnay
d49ab2265a
Resolve starlark linter warnings
$ buck2 starlark lint tools/buck
    tools/buck/buildscript.bzl:7:9-13: Unused argument `cfgs`
    tools/buck/buildscript.bzl:6:9-16: Unused argument `version`
    tools/buck/buildscript.bzl:8:9-17: Unused argument `features`
    tools/buck/buildscript.bzl:3:9-21: Unused argument `package_name`
2023-01-20 16:20:58 -08:00
David Tolnay
3aa71ecdd4
Release 1.0.87 2023-01-19 19:01:49 -08:00
David Tolnay
b3022bb6ba
Lockfile update 2023-01-19 19:01:15 -08:00
David Tolnay
e99c693d29
Merge pull request #1155 from dtolnay/singlequote
Improve formatting of single quote in Debug of CxxString
2023-01-19 18:59:41 -08:00
David Tolnay
0ca09b9b1a
Improve formatting of single quote in Debug of CxxString 2023-01-19 18:56:13 -08:00
David Tolnay
759a9dddda
Add test of CxxString Debug format 2023-01-19 18:55:48 -08:00
David Tolnay
913b6149c1
Raise minimum tested rustc to 1.64
Required by clap 4.1 / clap_lex 0.3.1:

    error: package `clap_lex v0.3.1` cannot be built because it requires rustc 1.64.0 or newer
2023-01-13 19:05:55 -08:00
David Tolnay
bfb56d2a80
Update ui test suite to nightly-2023-01-13 2023-01-12 20:29:19 -08:00
David Tolnay
fe16a5dea3
Raise minimum rustc to 1.60 2023-01-07 12:37:18 -08:00
David Tolnay
1f3627267a
Release 1.0.86 2023-01-07 12:18:32 -08:00
David Tolnay
2e4c57880d
Lockfile update 2023-01-07 12:15:08 -08:00
David Tolnay
a72a40902b
Merge pull request #1150 from dtolnay/cxxname
Support cxx_name containing name that is Rust keyword
2023-01-07 12:07:53 -08:00
David Tolnay
46040d0912
Support cxx_name containing name that is Rust keyword 2023-01-07 12:02:52 -08:00
David Tolnay
7d7c757e28
Add test of cxx_name which is Rust keyword
Currently fails with:

    error[cxxbridge]: expected identifier
       ┌─ lib.rs:46:22
       │
    46 │         #[cxx_name = "type"]
       │                      ^^^^^^ expected identifier
2023-01-07 12:02:38 -08:00
David Tolnay
13e7e10414
Update bazelbuild/rules_rust to 0.16.1 2023-01-06 14:05:39 -08:00
David Tolnay
3177ed5c45
Mark third-party/bazel BUILD files as generated code 2023-01-05 08:50:31 -08:00
David Tolnay
5768fc7ac4
Update bazelbuild/rules_rust to 0.16.0 2023-01-05 08:48:29 -08:00
David Tolnay
99eef7cc2a
Prevent actions duplication on noop merge commits 2022-12-31 12:45:32 -08:00
David Tolnay
6f745adf72
Sync license text with rust-lang repos 2022-12-30 12:00:47 -08:00
David Tolnay
5d5ac057a7
Fix warning about let_underscore_drop lint removal from clippy
warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
      --> gen/build/src/lib.rs:59:5
       |
    59 |     clippy::let_underscore_drop,
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
       |
       = note: `#[warn(renamed_and_removed_lints)]` on by default

    warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
     --> tests/ffi/lib.rs:5:5
      |
    5 |     clippy::let_underscore_drop,
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
      |
      = note: `#[warn(renamed_and_removed_lints)]` on by default

    warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
     --> tests/unique_ptr.rs:1:10
      |
    1 | #![allow(clippy::let_underscore_drop)]
      |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
      |
      = note: `#[warn(renamed_and_removed_lints)]` on by default
2022-12-29 18:35:56 -08:00
David Tolnay
40bb0d3779
Resolve needless_borrow clippy lint
error: the borrowed expression implements the required traits
      --> syntax/check.rs:91:25
       |
    91 |         cx.error(ident, &msg);
       |                         ^^^^ help: change this to: `msg`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
       = note: `-D clippy::needless-borrow` implied by `-D clippy::all`
2022-12-29 18:34:05 -08:00
David Tolnay
6a098de8e9
Update ui test suite to nightly-2022-12-30 2022-12-29 18:28:28 -08:00
David Tolnay
bf521e51b9
Reindeer vendor -> reindeer buckify only
This is significantly faster; <1 second instead of 26 seconds. Vendor
used to check out a whole new crates.io index using third-party/.cargo
as the CARGO_HOME.
2022-12-21 21:13:30 -08:00
David Tolnay
a1bdaa799b
Don't get what crates_vendor_remote_repository adds to workspace 2022-12-20 21:19:09 -08:00
David Tolnay
1d9d583cbc
Third-party lockfile update 2022-12-20 19:16:13 -08:00
David Tolnay
173ec012c1
Experiment with @rules_rust//crate_universe 2022-12-20 18:46:44 -08:00
David Tolnay
f5088edac4
Reindeer update 2022-12-20 14:38:26 -08:00
David Tolnay
7b581cafa3
Merge pull request #1145 from dtolnay/bazel
Update to use released version of Bazel rules_rust
2022-12-20 10:04:51 -08:00
David Tolnay
8d7f0465ef
Bazel 6.0.0 2022-12-20 09:56:17 -08:00
David Tolnay
c1479208c0
Bazel rules_rust 0.15.0 2022-12-20 09:33:04 -08:00
David Tolnay
083b019c67
Bazel rules_rust 0.14.0 2022-12-20 09:32:54 -08:00
David Tolnay
ff584c5c3a
Bazel rules_rust 0.13.0 2022-12-20 09:32:45 -08:00
David Tolnay
0f738119f2
Bazel rules_rust 0.12.0 2022-12-20 09:32:33 -08:00
David Tolnay
6aa988e4fc
Bazel rules_rust 0.11.0 2022-12-20 09:32:25 -08:00
David Tolnay
83a568993c
Bazel rules_rust 0.10.0 2022-12-20 09:32:15 -08:00
David Tolnay
9fd3ea8fa9
Bazel rules_rust 0.9.0 2022-12-20 09:32:06 -08:00
David Tolnay
1b0610d0b9
Bazel rules_rust 0.8.1 2022-12-20 09:31:53 -08:00
David Tolnay
c0ee2abfed
Bazel rules_rust 0.7.0 2022-12-20 09:31:42 -08:00
David Tolnay
b8d56ad7e1
Bazel rules_rust 0.6.0 2022-12-20 09:30:14 -08:00
David Tolnay
b912f6c973
Bazel rules_rust 0.5.0 2022-12-20 09:29:59 -08:00
David Tolnay
1596ee4c37
Bazel rules_rust 0.4.0 2022-12-20 09:25:44 -08:00
David Tolnay
8e49561ea1
Bump Bazel build to rustc 1.66.0 2022-12-20 09:17:11 -08:00
David Tolnay
3f5a4605c6
Pull in buck2 support for non-nightly rustdoc 2022-12-19 15:19:24 -08:00
David Tolnay
5b864b789e
No longer need separate linker flags for the Rust toolchain 2022-12-19 15:19:08 -08:00
David Tolnay
d5399f19aa
Fill in type annotations on Buck bzl files 2022-12-19 11:05:52 -08:00
David Tolnay
09ae2ee7b5
Release 1.0.85 2022-12-18 09:42:05 -08:00
David Tolnay
c3e17908f6
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 cxx'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:34:19 -08:00
David Tolnay
1ac3311fa9
Release 1.0.84 2022-12-17 10:52:16 -08:00
David Tolnay
8da631208d
Explicitly no default_edition for system Rust toolchain 2022-12-16 13:47:42 -08:00
David Tolnay
a45c4cd86d
Update build status badge 2022-12-15 17:52:39 -08:00