Commit Graph

2919 Commits

Author SHA1 Message Date
David Tolnay
473f24ab1a
Release 1.0.91 2023-02-15 09:29:18 -08:00
David Tolnay
580f29a57c
Exclude buck2 prelude submodule from published crate 2023-02-15 09:25:32 -08:00
David Tolnay
33b5c9eec5
Release 1.0.90 2023-02-10 19:36:09 -08:00
David Tolnay
11c74724ef
Lockfile update 2023-02-10 19:35:29 -08:00
David Tolnay
8ca5686a2f
Regenerate Bazel build targets using rules_rust 0.18.0 2023-02-10 19:34:23 -08:00
David Tolnay
b3bdffce04
Ignore extra_unused_type_parameters clippy lint in generated code
error: type parameter goes unused in function definition
      --> demo/src/main.rs:11:14
       |
    11 |         type MultiBuf;
       |              ^^^^^^^^
       |
       = help: consider removing the parameter
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
       = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all`

    error: type parameter goes unused in function definition
      --> src/cxx_string.rs:94:15
       |
    94 |     pub fn new<T: Private>() -> Self {
       |               ^^^^^^^^^^^^
       |
       = help: consider removing the parameter
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters

    error: type parameter goes unused in function definition
       --> src/extern_type.rs:184:27
        |
    184 | pub fn verify_extern_type<T: ExternType<Id = Id>, Id>() {}
        |                           ^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: consider removing the parameter
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
        = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all`

    error: type parameter goes unused in function definition
       --> src/extern_type.rs:187:27
        |
    187 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
        |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: consider removing the parameter
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters

    error: type parameter goes unused in function definition
       --> tests/ffi/lib.rs:230:14
        |
    230 |         type Reference<'a>;
        |              ^^^^^^^^^
        |
        = help: consider removing the parameter
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
        = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all`

    error: type parameter goes unused in function definition
       --> tests/ffi/lib.rs:259:14
        |
    259 |         type R;
        |              ^
        |
        = help: consider removing the parameter
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
2023-02-10 19:21:36 -08:00
David Tolnay
a2f3ccc6ed
Update ui test suite to nightly-2023-02-11 2023-02-10 19:19:47 -08:00
David Tolnay
7f068926e3
Bazel rules_rust 0.18.0 2023-02-09 17:47:35 -08:00
David Tolnay
1bda14d3dd
Add remark on build systems
Closes #1173.
2023-02-01 18:59:38 -08:00
David Tolnay
1fdbb96b62
Release 1.0.89 2023-02-01 12:52:54 -08:00
David Tolnay
0ee707c355
Lockfile update 2023-02-01 12:52:22 -08:00
David Tolnay
4881632352
Merge pull request #1172 from dtolnay/pedanticclippy
Suppress various pedantic clippy lints
2023-02-01 12:48:30 -08:00
David Tolnay
69f0380c3d
Suppress various pedantic clippy lints 2023-02-01 12:44:48 -08:00
David Tolnay
19f1bb6eb8
Merge pull request #1171 from dtolnay/deadenum
Suppress dead_code on generated enum variants
2023-02-01 12:43:29 -08:00
David Tolnay
721bfc4eb3
Suppress dead_code on generated enum variants 2023-02-01 12:38:18 -08:00
David Tolnay
036bb92ff3
Merge pull request #1169 from Enyium/patch-1
Add docs.rs documentation link to `cxx-build`'s `Cargo.toml`
2023-01-31 19:22:24 -08:00
David Tolnay
1f13e312b5
Update ui test suite to nightly-2023-02-01 2023-01-31 19:19:27 -08:00
Enyium
e59b4db200
Add docs.rs documentation link to cxx-build's Cargo.toml 2023-02-01 04:18:53 +01:00
David Tolnay
9610dd5a7a
Bazel rules_rust 0.17.0 2023-01-27 14:59:56 -08:00
David Tolnay
8654de605d
Bump Bazel build to rustc 1.67.0 2023-01-27 14:58:07 -08:00
David Tolnay
86e408972b
Merge pull request #1168 from kud1ing/patch-1
Example code for `#[cxx::bridge]`: `struct MyType;`=> `type MyType;`
2023-01-27 11:50:15 -08:00
kud1ing
9e7a622ca9
Example code for #[cxx::bridge]: struct MyType;=> type MyType; 2023-01-27 19:40:48 +01:00
David Tolnay
f33abb9ca8
Release 1.0.88 2023-01-26 20:48:38 -08:00
David Tolnay
e5b79adc2c
Lockfile update 2023-01-26 20:47:52 -08:00
David Tolnay
320b7af3eb
Merge pull request #1167 from umogSlayer/fix-move-assignment-memory-leak
Fix memory leak inside the move assignment operator of rust::Error class
2023-01-26 20:45:48 -08:00
Vladimir Bayrashevskiy
2f8918f5d0 Fix memory leak inside the move assignment operator of rust::Error class 2023-01-26 14:14:15 +07:00
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