Commit Graph

2136 Commits

Author SHA1 Message Date
David Tolnay
9fc8138823
Merge pull request #689 from adetaylor/pointers
Support raw pointers in cxx::bridge.
2021-03-22 19:04:37 -07:00
David Tolnay
de01edf706
Update C++ formatting to clang-format 11 2021-03-22 15:00:59 -07:00
David Tolnay
5d12f1d4c5
Format PR 714 with clang-format 10
This change in formatting seems to be due to https://reviews.llvm.org/D68695.
2021-03-22 14:59:33 -07:00
David Tolnay
516bb068e4
Release 1.0.33 2021-03-18 14:11:25 -07:00
David Tolnay
b11e8dd6d5
Lockfile update 2021-03-18 14:09:44 -07:00
David Tolnay
2e43b51227
Consistently use 'other: &Self' in homogeneous comparison impls 2021-03-18 13:35:38 -07:00
David Tolnay
94e205403d
Delete CxxString heterogeneous PartialOrd impls 2021-03-18 13:33:57 -07:00
David Tolnay
05db2fbc9f
Touch up PR 743 2021-03-18 13:33:27 -07:00
David Tolnay
389887843c
Merge pull request 743 from b05902132/cxx_string_traits 2021-03-18 13:27:59 -07:00
b05902132
7b783f92de implment Ord, PartialOrd and Hash for CxxString. 2021-03-19 02:27:45 +08:00
David Tolnay
3dafaede93
Resolve inconsistent_struct_constructor style lint
error: inconsistent struct constructor
       --> gen/cmd/src/app.rs:95:5
        |
    95  | /     Opt {
    96  | |         input,
    97  | |         cxx_impl_annotations,
    98  | |         header,
    99  | |         include,
    100 | |         outputs,
    101 | |     }
        | |_____^ help: try: `Opt { input, header, cxx_impl_annotations, include, outputs }`
        |
        = note: `-D clippy::inconsistent-struct-constructor` implied by `-D clippy::all`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
2021-02-25 20:42:30 -08:00
David Tolnay
e5bb345e8c
Merge pull request #723 from dtolnay/mangle
Document the possible arrangements of mangled symbols
2021-02-17 16:20:08 -08:00
Adrian Taylor
57832124b4 Merge fix. 2021-02-17 16:11:08 -08:00
David Tolnay
6c39d4b9c8
Document the arrangements of preprocessor variables 2021-02-17 15:56:07 -08:00
David Tolnay
415f23255e
Document the possible arrangements of mangled symbols 2021-02-17 15:49:39 -08:00
adetaylor
f67287db6f
Merge branch 'master' into pointers 2021-02-17 15:32:06 -08:00
David Tolnay
72d47c95a0
Release 1.0.32 2021-02-16 13:31:41 -08:00
David Tolnay
f9b5fe4740
Lockfile update 2021-02-16 13:26:18 -08:00
David Tolnay
6e3a8639fd
Hide Id associated types from ExternType impl rustdocs
This eliminates a quite large amount of unhelpful noise from https://docs.rs/cxx/1/cxx/trait.ExternType.html.
2021-02-16 13:21:50 -08:00
David Tolnay
efd852d915
Merge pull request #717 from khardix/master
Include license files in flags crate
2021-02-15 09:24:03 -08:00
Jan Staněk
de4e10cc7a
Include license files in flags crate
Other crates in this repo already include them,
and it is a requirement (or at least a strong suggestion)
for packaging it into Fedora.
2021-02-15 11:30:55 +01:00
David Tolnay
d3cb1148da
Merge pull request #714 from dtolnay/rvalue-assign
Disallow assignment to rvalue
2021-02-11 23:24:27 -08:00
David Tolnay
63bec40599
Disallow assignment to rvalue 2021-02-11 23:19:16 -08:00
David Tolnay
19b488c286
Merge pull request #713 from dtolnay/selfmove
Remove self assignment checks from move assignment operators
2021-02-11 23:16:43 -08:00
David Tolnay
7bc397cac0
Remove this != &other checks from move assignment operators 2021-02-11 23:07:58 -08:00
David Tolnay
87ed59475d
Merge pull request #712 from dtolnay/crate
Enable expanding type_id macro in a crate with cxx renamed
2021-02-11 22:46:25 -08:00
David Tolnay
12fced438b
Hide underlying type_id proc macro from rustdoc 2021-02-11 22:40:04 -08:00
David Tolnay
c28f77e2e4
Insert $crate into type_id macro expansion 2021-02-11 22:37:15 -08:00
David Tolnay
3403ae8500
Generalize $crate parse to Crate enum 2021-02-11 22:34:50 -08:00
David Tolnay
cedd85595e
Pass and parse $crate in type_id impl 2021-02-11 22:29:07 -08:00
David Tolnay
b06ce54490
Move type_id re-export to wrapper macro_rules 2021-02-11 22:25:57 -08:00
David Tolnay
997e874a89
Merge pull request #711 from dtolnay/drop
Disallow misleading Drop impl on shared types
2021-02-11 22:17:34 -08:00
David Tolnay
da9f1b9471
Improve span of shared struct Drop error 2021-02-11 22:11:13 -08:00
David Tolnay
894ad11042
Update shared type drop test stderr file 2021-02-11 22:11:13 -08:00
David Tolnay
79ae1fa572
Prevent handwritten Drop impl for shared struct on the Rust side 2021-02-11 22:11:13 -08:00
David Tolnay
a910126402
Add ui test of handwritten Drop for shared struct 2021-02-11 22:11:13 -08:00
David Tolnay
47cb2bbccd
Merge pull request #710 from dtolnay/inherited
Move span of inherited pub to next consecutive token
2021-02-11 22:11:06 -08:00
David Tolnay
dfafc8b210
Move span of inherited pub to next consecutive token 2021-02-11 22:03:48 -08:00
David Tolnay
f6e4420812
Release 1.0.31 2021-02-08 23:49:20 -08:00
David Tolnay
29710fe93b
Update bazel CI to use stable 1.49.0 compiler 2021-02-08 23:45:12 -08:00
David Tolnay
fb069b9309
Lockfile update 2021-02-08 23:41:29 -08:00
David Tolnay
6024b5e5cf
Merge pull request #707 from dtolnay/vecsizet
Support for Vec<usize> and Vec<isize> on macOS
2021-02-08 23:40:48 -08:00
David Tolnay
60f83590d7
Add a specialization of Vec methods for macOS 2021-02-08 23:25:12 -08:00
David Tolnay
624bab9123
Test Vec<usize> and Vec<isize> instantiation 2021-02-08 22:45:31 -08:00
David Tolnay
1cb7e724c0
Expand type_id in same step as bridge expansion 2021-02-07 14:44:54 -08:00
David Tolnay
35f07dbdf8
Avoid wrapping error message across source lines
This makes the source of the message easier to locate for someone using
grep with the full message.

The Linux kernel coding style follows the same approach:
https://www.kernel.org/doc/html/v5.10/process/coding-style.html#breaking-long-lines-and-strings

> never break user-visible strings such as printk messages because that
> breaks the ability to grep for them.
2021-02-07 13:38:01 -08:00
David Tolnay
d15608434d
Touch up error message from PR 688 2021-02-07 13:36:35 -08:00
David Tolnay
14113b1c22
Merge pull request #688 from fletcherw/enum_receiver
Clarify error for using enum as method receiver
2021-02-07 13:34:56 -08:00
David Tolnay
91a2d4a822
Release 1.0.30 2021-02-07 12:48:19 -08:00
David Tolnay
f545326fe8
Update lockfile for jobserver dependency from PR 704 2021-02-07 12:42:42 -08:00