David Tolnay
ff3205444f
Suppress wrong_self_convention clippy false positive
...
https://github.com/rust-lang/rust-clippy/issues/6983
warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
--> macro/src/syntax/discriminant.rs:194:18
|
194 | fn to_tokens(&self, tokens: &mut TokenStream) {
| ^^^^^
|
= note: `#[warn(clippy::wrong_self_convention)]` on by default
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
2021-03-26 23:56:01 -04:00
David Tolnay
42b565b1d5
Merge pull request #784 from dtolnay/refresult
...
Support reference return type from fallible Rust function
2021-03-26 19:38:22 -04:00
David Tolnay
201cb747af
Make reference type into pointer inside of MaybeUninit
2021-03-26 19:29:54 -04:00
David Tolnay
5d6429d212
Factor out ptr/reference target type write
2021-03-26 19:20:11 -04:00
David Tolnay
04955f4f0c
Release 1.0.37
2021-03-26 18:20:43 -04:00
David Tolnay
f014a358e1
Merge pull request #781 from dtolnay/aliascast
...
Add a void ptr cast for extern type aliases containing Rust-native types
2021-03-26 18:20:01 -04:00
David Tolnay
6edd2d2a59
Add a void ptr cast for extern type aliases containing Rust-native types
2021-03-26 18:13:41 -04:00
David Tolnay
3d656f87aa
Merge pull request #780 from dtolnay/argref
...
Remove multiple arg lifetimes check
2021-03-26 18:10:54 -04:00
David Tolnay
47b820940c
Remove multiple arg lifetimes check
...
This was made obsolete by support for explicit lifetime annotations
in cxx 1.0.26.
2021-03-26 18:05:28 -04:00
David Tolnay
5b97fc4e06
Merge pull request #779 from dtolnay/mut
...
Allow mutable return reference on signatures with any lifetime in argument
2021-03-26 18:05:21 -04:00
David Tolnay
b55bd6392b
Allow mutable return reference on signatures with any lifetime in argument
2021-03-26 17:59:14 -04:00
David Tolnay
944521ad0f
Add some more mut return ui tests
2021-03-26 17:58:38 -04:00
David Tolnay
7eee043035
Merge pull request #777 from dtolnay/visit
...
Factor out Type traversal to a Visit trait
2021-03-26 17:46:57 -04:00
David Tolnay
a17230db8c
Factor out Type traversal to a Visit trait
2021-03-26 17:36:51 -04:00
David Tolnay
ee8aa278fa
Merge pull request #776 from dtolnay/vecelement
...
Fix wording of unsupported vector element type error
2021-03-26 17:20:29 -04:00
David Tolnay
4a024613f1
Fix wording of unsupported vector element type error
...
Vectors have elements, not targets. (Pointers, like unique_ptr and
shared_ptr, have targets -- matching the terminology of Target in the
std::ops::Deref trait.)
2021-03-26 17:14:24 -04:00
David Tolnay
b226ad1c6b
Merge pull request #775 from dtolnay/mutfromref
...
Permit mut from ref in unsafe-to-call signatures
2021-03-26 17:14:17 -04:00
David Tolnay
04376c7d94
Permit mut from ref in unsafe-to-call signatures
2021-03-26 17:08:48 -04:00
David Tolnay
2dec4215e3
Include unsafe token in notional span of extern fn signatures
2021-03-26 17:07:54 -04:00
David Tolnay
ddfb7cdb39
Add ui test of checking mutable return from a shared reference argument
2021-03-26 17:07:05 -04:00
David Tolnay
0789253127
Merge pull request #773 from dtolnay/bitcopy
...
Fix warning on unused unsafe_bitcopy variable
2021-03-26 16:49:38 -04:00
David Tolnay
a9449375d0
Fix warning on unused unsafe_bitcopy variable
2021-03-26 16:42:46 -04:00
David Tolnay
ceb1ca9213
Release 1.0.36
2021-03-26 13:41:14 -04:00
David Tolnay
c5b42c57ab
Lockfile update
2021-03-26 13:40:15 -04:00
David Tolnay
fbcd8fd932
Merge pull request #769 from dtolnay/include
...
Omit most builtins if bridge explicitly includes "rust/cxx.h"
2021-03-26 00:36:13 -04:00
David Tolnay
06d3220ed6
Reduce several standard library includes if cxx.h is included
2021-03-26 00:24:22 -04:00
David Tolnay
5e14b10b0c
Move cxx header search to method of Includes
2021-03-26 00:17:10 -04:00
David Tolnay
ccd269d95c
Omit most builtins if bridge explicitly includes "rust/cxx.h"
2021-03-25 23:58:41 -04:00
David Tolnay
b2a799a8d9
Release 1.0.35
2021-03-25 02:19:23 -04:00
David Tolnay
b90097b557
Merge pull request #762 from dtolnay/traits
...
Make memory and vector trait bounds publicly nameable
2021-03-24 23:17:30 -07:00
David Tolnay
453da7ff7d
Update ui test with public path of UniquePtrTarget
2021-03-25 02:09:16 -04:00
David Tolnay
b99359bbf3
Hide all private trait methods from rustdoc
2021-03-25 02:05:22 -04:00
David Tolnay
9291d52a37
Document SharedPtrTarget trait
2021-03-25 02:04:44 -04:00
David Tolnay
cccf068b20
Document UniquePtrTarget trait
2021-03-25 02:04:03 -04:00
David Tolnay
71b8d38f21
Document VectorElement trait
2021-03-25 02:03:48 -04:00
David Tolnay
751ee02ffb
Tweak cxx::vector and cxx::memory module-level doc
2021-03-25 02:02:20 -04:00
David Tolnay
3690e65e41
Make memory and vector trait bounds publicly nameable
2021-03-25 02:01:07 -04:00
David Tolnay
906b68dbcb
Add cxx::memory module re-exporting Shared/UniquePtr
2021-03-25 02:00:07 -04:00
David Tolnay
d83dfe15de
Merge pull request #761 from dtolnay/vecdoc
...
No-inline documentation of CxxVector within cxx::vector module
2021-03-24 22:11:39 -07:00
David Tolnay
676bb46384
Make rustdoc Re-exports section show external-facing type name
2021-03-25 01:05:01 -04:00
David Tolnay
c2c1e3bc25
No-inline documentation of CxxVector within cxx::vector module
2021-03-25 00:55:24 -04:00
David Tolnay
c27a656c98
Merge pull request #760 from dtolnay/vecnonstatic
...
Support non-static vector element types inside of unique ptr
2021-03-24 21:39:35 -07:00
David Tolnay
3def522a2f
Support non-static vector element types inside of unique ptr
2021-03-25 00:31:43 -04:00
David Tolnay
ac5af50ab3
Replace 'static dyn Display with a formatter fn in printing type names
2021-03-25 00:30:15 -04:00
David Tolnay
3090721172
Merge pull request #758 from dtolnay/clang-tidy-11
...
Update to clang-tidy 11
2021-03-24 13:00:11 -07:00
David Tolnay
395e20f64c
Suppress cppcoreguidelines-pro-type-varargs lint from clang-tidy
...
I don't understand why this specific lint is triggering in the two cases below
but the code seems fine.
include/cxx.h:882:3: error: do not declare variables of type va_list; use variadic templates instead [cppcoreguidelines-pro-type-vararg,-warnings-as-errors]
auto data = reinterpret_cast<char *>(this->data());
^
src/cxx.cc:355:3: error: do not declare variables of type va_list; use variadic templates instead [cppcoreguidelines-pro-type-vararg,-warnings-as-errors]
char *copy = new char[len];
^
2021-03-24 15:48:47 -04:00
David Tolnay
dda0c77b15
Update bazel build to rustc 1.50.0
2021-03-24 15:48:06 -04:00
David Tolnay
35c6c4b25c
Update to clang-tidy 11
2021-03-24 15:48:06 -04:00
David Tolnay
4be66f9ec8
Remove .clang-tidy link to issue #500
...
The issue has been closed and we are probably keeping the remaining set
of suppressions.
2021-03-24 15:47:29 -04:00
David Tolnay
c37a665e04
Release 1.0.34
2021-03-22 20:19:09 -07:00