David Tolnay
23fe7e437a
Release 1.0.28
2021-01-14 11:35:32 -08:00
David Tolnay
5c353d8024
Lockfile update
2021-01-14 11:35:17 -08:00
David Tolnay
db0a421450
Merge pull request #676 from dtolnay/cassert
...
Include <cassert> where needed in generated code
2021-01-14 11:32:58 -08:00
David Tolnay
ecb4dbff0e
Include <cassert> where needed in generated code
2021-01-14 11:22:34 -08:00
David Tolnay
8e2faa4991
Omit receiver type lifetimes from Rust method shim
...
For a receiver like `self: &mut RustType<'a>`, before:
RustType<'a>::methodname // invalid
after:
RustType::methodname // 👍
2021-01-05 21:46:58 -08:00
David Tolnay
aa619660c7
Trigger site rebuild on workflow changes
2021-01-05 00:15:43 -08:00
David Tolnay
abd52bc75b
Emit mdBook version into build log
...
Allows confirming that we've picked up the fix for https://blog.rust-lang.org/2021/01/04/mdbook-security-advisory.html
2021-01-05 00:13:31 -08:00
David Tolnay
26cd914e0c
Release 1.0.27
2021-01-04 12:22:15 -08:00
David Tolnay
851d2f71eb
Fill in some missing header dependencies related to array and uintptr_t
2021-01-04 12:20:50 -08:00
David Tolnay
a0b5fcb756
Update documentation to reflect opaque Rust types in slices and arrays
2021-01-04 12:18:24 -08:00
David Tolnay
7bc0ca362f
Preserve mod and brace token spans in macro output
2021-01-04 00:57:12 -08:00
David Tolnay
5b4b829f8a
Merge pull request #662 from dtolnay/vecstr
...
Implement Vec<&str>
2021-01-03 22:55:38 -08:00
David Tolnay
2d1fcc2d2e
Implement Vec<&str>
2021-01-03 22:47:35 -08:00
David Tolnay
efb4506102
Merge pull request #661 from dtolnay/elision
...
Implement lifetime elision inside of pins
2021-01-03 21:15:28 -08:00
David Tolnay
9bd65aa60c
Implement lifetime elision inside of pins
2021-01-03 21:04:55 -08:00
David Tolnay
5e8bb1ce79
Add test of lifetime elision on nonconst member
2021-01-03 21:04:55 -08:00
David Tolnay
a2bd047d68
Merge pull request #660 from dtolnay/elision
...
Implement lifetime elision for member function receivers
2021-01-03 21:04:40 -08:00
David Tolnay
774fd52939
Add test of lifetime elision on const member
2021-01-03 20:58:04 -08:00
David Tolnay
54bce274b6
Implement lifetime elision for member function receivers
2021-01-03 20:51:13 -08:00
David Tolnay
7c969ce953
Merge pull request #659 from dtolnay/externbody
...
Improve extern fn with body error message
2021-01-03 20:35:11 -08:00
David Tolnay
8c28af564f
Improve extern fn with body error message
2021-01-03 20:23:52 -08:00
David Tolnay
aea7a5869e
Extract extern verbatim type parsing to function
2021-01-03 20:14:08 -08:00
David Tolnay
a22b7decff
Add ui test of extern function with body
2021-01-03 20:08:37 -08:00
David Tolnay
fb5e1bad32
Add documentation about lifetimes to book
2021-01-03 20:05:43 -08:00
David Tolnay
a0df0974aa
Release 1.0.26
2021-01-03 12:04:39 -08:00
David Tolnay
4d04cf59d7
Merge pull request #654 from dtolnay/symbol-visibility-revisit
...
Force annotation on all functions in both source and header files
2021-01-03 00:05:58 -08:00
David Cattermole
b9bf5e7aec
Force annotation on all functions in both source and header files
...
Annotations for symbol visibility (such as `__declspec(dllexport)` and
`__attribute__((visibility("default")))`) is the primary use case.
Such annotations are expected to be needed on declarations (headers)
only, however forcing the annotations into the header file only
is causes missing symbols. Therefore the fix is to force the
annotations into both declaration (header files) and definition
(source files).
2021-01-03 00:00:06 -08:00
David Tolnay
967ec5e6b1
Merge pull request #653 from dtolnay/lifetimes
...
Enable lifetimes on opaque Rust types
2021-01-02 23:56:00 -08:00
David Tolnay
5b9bbdf861
Add test of extern Rust type with lifetime
2021-01-02 23:48:53 -08:00
David Tolnay
58183e2228
Enable support for extern Rust types containing lifetimes
2021-01-02 23:47:16 -08:00
David Tolnay
78c8ae037a
Emit lifetimes into extern Rust type's trait impls
2021-01-02 23:46:54 -08:00
David Tolnay
42883ac16b
Merge pull request #652 from dtolnay/lifetimes
...
Enable lifetimes on opaque C++ types
2021-01-02 23:40:46 -08:00
David Tolnay
e099157c8c
Add test with opaque C++ type containing lifetime
2021-01-02 23:35:18 -08:00
David Tolnay
06c60a32a7
Remove opaque C++ type lifetimes gates
2021-01-02 23:35:18 -08:00
David Tolnay
30d46731ef
Suppress needless_lifetimes lint in test suite
2021-01-02 23:34:51 -08:00
David Tolnay
3a48021f54
Include lifetimes in error reporting spans
2021-01-02 23:25:53 -08:00
David Tolnay
2e040531f3
Merge pull request #651 from dtolnay/slices
...
Enable slices and arrays containing str/slice
2021-01-02 23:24:26 -08:00
David Tolnay
bf9d6e815b
Enable slices and arrays containing str/slice
2021-01-02 23:11:01 -08:00
David Tolnay
10852ed506
Fix slice restriction to exclude slice of CxxString
2021-01-02 23:07:18 -08:00
David Tolnay
4d7e4aa3a8
Merge pull request #650 from dtolnay/lifetime
...
Support lifetimes on shared structs
2021-01-02 23:04:57 -08:00
David Tolnay
62da031965
Test a struct definition containing lifetimes and derives
2021-01-02 22:53:15 -08:00
David Tolnay
bc25f11e7b
Emit lifetimes into struct derived impls
2021-01-02 22:52:23 -08:00
David Tolnay
81b69558e4
Emit lifetimes into struct definition
2021-01-02 22:49:17 -08:00
David Tolnay
43d03b6737
Parse lifetimes on shared structs
2021-01-02 22:47:46 -08:00
David Tolnay
341f1a19d3
Merge pull request #649 from dtolnay/warnings
...
Build with -Werror in CI
2021-01-02 22:04:07 -08:00
David Tolnay
fc07064015
Revert "Trigger intentional warning in cxx.cc"
2021-01-02 21:30:43 -08:00
David Tolnay
0e84959b2a
Enable deny_warnings in CI
2021-01-02 21:30:43 -08:00
David Tolnay
970ed99049
Add an option to fail build on C++ compile warnings
2021-01-02 21:30:42 -08:00
David Tolnay
a9b3a77ba8
Trigger intentional warning in cxx.cc
2021-01-02 21:30:42 -08:00
David Tolnay
e5cd1489e3
Fix remaining "C-linkage specified, but returns UDT" warnings on macOS
2021-01-02 21:28:14 -08:00