aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-19Update cxx to latest masterHEADmastermainMatthew Maurer
* Update build to match upstream's use of edition 2021 Test: mmm Change-Id: Iad58f8bb416050de4fb3f3087c051d680a2180e7
2024-03-16Raise minimum tested compiler to 1.70David Tolnay
Required by the `toml` crate.
2024-03-06Release 1.0.119David Tolnay
2024-03-06Bazel rules_rust 0.40.0David Tolnay
2024-03-06Lockfile updateDavid Tolnay
2024-03-06Merge pull request #1322 from dtolnay/stdDavid Tolnay
Set C++ standard version using cc::Build::std
2024-03-06Ignore let_and_return clippy lintDavid Tolnay
warning: returning the result of a `let` binding from a block --> flags/src/impl.rs:14:5 | 3 | let mut flag = "c++11"; | ----------------------- unnecessary `let` binding ... 14 | flag | ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `-W clippy::let-and-return` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::let_and_return)]` help: return the expression directly | 3 ~ 4 | ... 13 | 14 ~ ("c++11") as _ |
2024-03-05Set C++ standard version using cc::Build::stdDavid Tolnay
2024-03-05Wrap PR 1321 to 80 columnsDavid Tolnay
2024-03-05Merge pull request #1321 from dcoles/docs-use-builder-stdDavid Tolnay
Documentation: Use `builder.std` rather than explicit compiler flags
2024-03-02Documentation: Use `builder.std` rather than explicit compiler flagsDavid Coles
The `-std=c++11` flag only works with GNU-style compiler frontends for MSVC this should be `/std:c++11`. Even better is to use the builder's explicit C/C++ standard setter.
2024-02-28Release 1.0.118David Tolnay
2024-02-28Lockfile updateDavid Tolnay
2024-02-28Merge pull request #1320 from phil-opp/use-correct-methodsDavid Tolnay
Fix: Use correct methods when writing toposorted structs
2024-02-28Fix: Use correct methods when writing toposorted structsPhilipp Oppermann
If there are other structs in `toposorted_structs` before `strct`, they were written with the methods of `strct` instead of their own. This commit fixes that. This commit also fixes the check against `out.types.cxx` that should prevent duplicate definitions. I didn't encounter any such issues, but I still think that it makes sense to fix it. Both issues were introduced in commit 5439fa195bbece443d261d40bf08d77012d44e58.
2024-02-19Release 1.0.117David Tolnay
2024-02-19Lockfile updateDavid Tolnay
2024-02-18Bazel rules_rust 0.39.0David Tolnay
2024-02-18Resolve redundant import warningDavid Tolnay
warning: the item `Trait` is imported redundantly --> macro/src/derive.rs:1:43 | 1 | use crate::syntax::{derive, Enum, Struct, Trait}; | ^^^^^ ... 5 | pub(crate) use crate::syntax::derive::*; | ------------------------ the item `Trait` is already imported here | = note: `#[warn(unused_imports)]` on by default
2024-02-09Release 1.0.116David Tolnay
2024-02-09Lockfile updateDavid Tolnay
2024-02-09Ignore incompatible_msrv clippy false positive in testDavid Tolnay
https://github.com/rust-lang/rust-clippy/issues/12257 warning: current MSRV (Minimum Supported Rust Version) is `1.60.0` but this item is stable since `1.64.0` --> tests/cxx_string.rs:16:15 | 16 | g(&s).await; | ^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv = note: `-W clippy::incompatible-msrv` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::incompatible_msrv)]`
2024-02-09Ignore ref_as_ptr clippy pedantic lint in generated codeDavid Tolnay
warning: reference as raw pointer --> tests/ffi/module.rs:34:31 | 34 | fn c_take_trivial_ref(d: &D); | ^^^^^ help: try: `std::ptr::from_ref::<D>(d)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr = note: `-W clippy::ref-as-ptr` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::ref_as_ptr)]` warning: reference as raw pointer --> tests/ffi/module.rs:35:35 | 35 | fn c_take_trivial_mut_ref(d: &mut D); | ^^^^^^^^^ help: try: `std::ptr::from_mut::<D>(d)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:36:35 | 36 | fn c_take_trivial_pin_ref(d: Pin<&D>); | ^^^^^^^^^ help: try: `std::ptr::from_ref::<D>(d)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:37:39 | 37 | fn c_take_trivial_pin_mut_ref(d: Pin<&mut D>); | ^^^^^^^^^^^^^ help: try: `std::ptr::from_mut::<D>(d)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:42:34 | 42 | fn c_take_trivial_ns_ref(g: &G); | ^^^^^ help: try: `std::ptr::from_ref::<G>(g)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:45:30 | 45 | fn c_take_opaque_ref(e: &E); | ^^^^^ help: try: `std::ptr::from_ref::<E>(e)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:49:33 | 49 | fn c_take_opaque_ns_ref(e: &F); | ^^^^^ help: try: `std::ptr::from_ref::<F>(e)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:55:36 | 55 | fn c_return_opaque_mut_pin(e: Pin<&mut E>) -> Pin<&mut E>; | ^^^^^^^^^^^^^ help: try: `std::ptr::from_mut::<E>(e)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/lib.rs:138:25 | 138 | fn c_take_ref_r(r: &R); | ^^^^^ help: try: `std::ptr::from_ref::<R>(r)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/lib.rs:167:37 | 167 | fn c_take_ref_shared_string(s: &SharedString) -> &SharedString; | ^^^^^^^^^^^^^^^^ help: try: `std::ptr::from_ref::<SharedString>(s)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/lib.rs:342:34 | 342 | impl CxxVector<SharedString> {} | ^^ help: try: `std::ptr::from_mut::<{}>({})` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/lib.rs:116:77 | 116 | fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>; | ^ help: try: `std::ptr::from_mut::<>>(>)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr
2024-02-08Bump Bazel build to rustc 1.76.0David Tolnay
2024-02-08Update ui test suite to nightly-2024-02-09David Tolnay
2024-02-08Raise minimum tested compiler to 1.74David Tolnay
Required by newest version of clap. error: package `clap v4.5.0` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.70.0 Either upgrade to rustc 1.74 or newer, or use cargo update -p clap@4.5.0 --precise ver where `ver` is the latest version of `clap` supporting rustc 1.70.0
2024-01-31Update ui test suite to nightly-2024-02-01David Tolnay
2024-01-24Straggling Bazel-generated lockfile changesDavid Tolnay
Unclear what changed since the lockfile change generated by the rules_rust 0.38.0 update to cause this.
2024-01-24Have install-buck2 action check out correct prelude commitDavid Tolnay
2024-01-23Bazel rules_rust 0.38.0David Tolnay
2024-01-20Merge pull request #1309 from dtolnay/fallbackDavid Tolnay
Remove pre-1.57 proc_macro2::fallback::force()
2024-01-20Remove pre-1.57 proc_macro2::fallback::force()David Tolnay
2024-01-11Turn on wrong_self_convention clippy lint after false positive fixDavid Tolnay
2024-01-11Ignore unconditional_recursion clippy lint due to false positiveDavid Tolnay
https://github.com/rust-lang/rust-clippy/issues/12133 warning: function cannot return without recursing --> gen/build/src/cargo.rs:91:5 | 91 | / fn eq(&self, rhs: &Self) -> bool { 92 | | Lookup::new(&self.0).eq(Lookup::new(&rhs.0)) 93 | | } | |_____^ | note: recursive call site --> gen/build/src/cargo.rs:92:9 | 92 | Lookup::new(&self.0).eq(Lookup::new(&rhs.0)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unconditional_recursion = note: `-W clippy::unconditional-recursion` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::unconditional_recursion)]`
2024-01-11Format clippy bug comments on the same line as the lintDavid Tolnay
2024-01-11Ignore map_clone clippy lintDavid Tolnay
warning: you are explicitly cloning with `.map()` --> gen/cmd/src/app.rs:72:32 | 72 | let cxx_impl_annotations = matches | ________________________________^ 73 | | .get_one::<String>(CXX_IMPL_ANNOTATIONS) 74 | | .map(String::clone); | |___________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone = note: `-W clippy::map-clone` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::map_clone)]` help: consider calling the dedicated `cloned` method | 72 ~ let cxx_impl_annotations = matches 73 ~ .get_one::<String>(CXX_IMPL_ANNOTATIONS).cloned(); |
2024-01-11Resolve thread_local_initializer_can_be_made_const clippy lintDavid Tolnay
warning: initializer for `thread_local` value can be made `const` --> tests/test.rs:20:34 | 20 | static CORRECT: Cell<bool> = Cell::new(false); | ^^^^^^^^^^^^^^^^ help: replace with: `const { Cell::new(false) }` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#thread_local_initializer_can_be_made_const = note: `-W clippy::thread-local-initializer-can-be-made-const` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::thread_local_initializer_can_be_made_const)]`
2024-01-05Release 1.0.115David Tolnay
2024-01-05Lockfile updateDavid Tolnay
2024-01-05Merge pull request #1303 from dtolnay/deadcodeDavid Tolnay
Work around new dead_code warnings
2024-01-05Update ui test suite to nightly-2024-01-06David Tolnay
2024-01-05Work around new dead_code warningsDavid Tolnay
warning: field `0` is never read --> macro/src/syntax/mod.rs:52:13 | 52 | Include(Include), | ------- ^^^^^^^ | | | field in this variant | = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 52 | Include(()), | ~~ warning: fields `0` and `1` are never read --> macro/src/syntax/cfg.rs:9:8 | 9 | Eq(Ident, Option<LitStr>), | -- ^^^^^ ^^^^^^^^^^^^^^ | | | fields in this variant | help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields | 9 | Eq((), ()), | ~~ ~~ warning: field `0` is never read --> macro/src/syntax/cfg.rs:11:9 | 11 | Any(Vec<CfgExpr>), | --- ^^^^^^^^^^^^ | | | field in this variant | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 11 | Any(()), | ~~ warning: field `0` is never read --> macro/src/syntax/cfg.rs:12:9 | 12 | Not(Box<CfgExpr>), | --- ^^^^^^^^^^^^ | | | field in this variant | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 12 | Not(()), | ~~ warning: field `0` is never read --> src/lib.rs:551:13 | 551 | struct void(core::ffi::c_void); | ---- ^^^^^^^^^^^^^^^^^ | | | field in this struct | = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 551 | struct void(()); | ~~ warning: field `0` is never read --> tests/ffi/lib.rs:411:26 | 411 | pub struct Reference<'a>(&'a String); | --------- ^^^^^^^^^^ | | | field in this struct | = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 411 | pub struct Reference<'a>(()); | ~~
2024-01-05Merge pull request #1302 from dennisschagt/tutorial-add-rerun-if-changedDavid Tolnay
Include printing of "cargo:rerun-if-changed" in tutorial
2024-01-05Include printing of "cargo:rerun-if-changed" in tutorialDennis van der Schagt
2024-01-04Use released version of rules_rust through Bazel Central RegistryDavid Tolnay
2024-01-02Release 1.0.114David Tolnay
2024-01-02Wrap PR 1298 to 80 columnsDavid Tolnay
2024-01-02Merge pull request #1298 from ↵David Tolnay
adamchalmers/achalmers/document-how-to-implement-vectorelement Document how to implement VectorElement
2024-01-02Merge pull request #1294 from dtolnay/bzlmodDavid Tolnay
Switch to bzlmod
2024-01-02Switch to bzlmodDavid Tolnay