2935 Commits

Author SHA1 Message Date
David Tolnay
dc5a920deb
Add raw identifier ui test 2022-11-08 00:47:38 -08:00
David Tolnay
9f47a6218f
Allow raw identifier outside of quotes only 2022-11-08 00:40:51 -08:00
David Tolnay
8a029059c1
Support raw identifiers in namespace attribute
As in: #[namespace = ::my::company::r#box::implementation]
2022-11-08 00:35:10 -08:00
David Tolnay
3e065f76a4
Update ui test suite to nightly-2022-11-05 2022-11-04 23:28:26 -07:00
David Tolnay
c7060d4036
Release 1.0.80 2022-10-21 09:33:41 -07:00
David Tolnay
5e1511ed8a
Lockfile update 2022-10-21 09:32:42 -07:00
David Tolnay
b4bb549e08
Merge pull request #1116 from dtolnay/nostdpath
No-std fixes for Box, String, Pin, c_char
2022-10-21 09:31:33 -07:00
David Tolnay
152b89b08b
No-std fixes for Box, String, Pin, c_char 2022-10-21 09:18:48 -07:00
David Tolnay
8b7643b933
Mark rust::detail::Fail constructor noexcept 2022-10-15 15:32:04 -07:00
David Tolnay
97a46f93b6
Release 1.0.79 2022-10-15 15:15:47 -07:00
David Tolnay
82420d5538
Lockfile update 2022-10-15 15:14:34 -07:00
David Tolnay
affcc4e8e9
Merge pull request #1114 from dtolnay/failstring
Allow trycatch to call Fail using std::string
2022-10-15 15:08:28 -07:00
David Tolnay
6f257d81f4
Allow trycatch to call Fail using std::string 2022-10-15 15:00:44 -07:00
David Tolnay
031723f9cb
Merge pull request #1113 from dtolnay/exception
Fix incorrect string len if an exception's message is invalid UTF-8
2022-10-15 15:00:36 -07:00
David Tolnay
438621c641
Fix incorrect string len if an exception's message is invalid UTF-8 2022-10-15 14:53:07 -07:00
David Tolnay
a39652409c
Merge pull request #1112 from dtolnay/fail
Factor out the Fail lambda from all trycatch calls
2022-10-15 14:27:24 -07:00
David Tolnay
d1afb26f4b
Factor out the Fail lambda from all trycatch calls 2022-10-15 14:17:26 -07:00
David Tolnay
5ab0a485cc
Mark cxxbridge1$exception noexcept
This function is implemented in Rust using #[no_mangle] extern "C", and
it cannot throw a C++ exception.
2022-10-15 14:14:12 -07:00
David Tolnay
202a02917b
Move namespace rust::repr above namespace rust::detail
I'd like to use rust::repr::PtrLen in the implementation of a
rust::detail::Fail functor.
2022-10-15 13:57:49 -07:00
David Tolnay
41f662f02e
Deduplicate rust::repr namespace begin/end 2022-10-15 13:57:00 -07:00
David Tolnay
1b33345a6e
Move rust::repr out of anonymous namespace
This will be needed to use PtrLen in the implementation of a Fail
functor in cxx.cc.
2022-10-15 13:54:08 -07:00
David Tolnay
eae0477484
Format C++ with clang-format 14.0.0 2022-10-15 13:10:54 -07:00
David Tolnay
746a369c6b
Merge pull request #1111 from lopopolo/patch-1
Update codespan-reporting to build with -Zminimal-versions
2022-10-13 21:44:10 -07:00
Ryan Lopopolo
845f66a245
Update codespan-reporting to build with -Zminimal-versions
`codespan-reporting` 0.11.0 does not build with `-Zminimal-versions` because it has a constraint
 on `termcolor = 1` whereas it depends on the `Copy` trait being implemented on types in `termcolor`
which were not added until 1.0.4.

See:

- https://github.com/brendanzab/codespan/issues/322
- e99c867339
2022-10-13 21:24:43 -07:00
David Tolnay
1171d3592b
Merge pull request #1109 from dtolnay/output
Switch from set-output to $GITHUB_OUTPUT
2022-10-13 09:46:40 -07:00
David Tolnay
5b38fbf0c6
Switch from set-output to $GITHUB_OUTPUT 2022-10-13 09:38:11 -07:00
David Tolnay
5af33efc41
Ui test changes for trybuild 1.0.66 2022-10-04 22:21:07 -07:00
David Tolnay
b43a2341a9
Lockfile update 2022-10-04 22:20:54 -07:00
David Tolnay
5782254472
Update ui test suite to nightly-2022-10-05 2022-10-04 21:28:00 -07:00
David Tolnay
2b154a4233
Update ui test suite to nightly-2022-09-29 2022-09-28 21:36:28 -07:00
David Tolnay
d2a7e0b244
Release 1.0.78 2022-09-28 16:45:12 -07:00
David Tolnay
49df9e3572
Merge pull request #1105 from dtolnay/clap
Update argument parser to clap 4
2022-09-28 16:44:25 -07:00
David Tolnay
fae939d974
Update argument parser to clap 4 2022-09-28 16:38:15 -07:00
David Tolnay
00406ecc3a
Raise minimum tested toolchain to rust 1.60 2022-09-28 16:31:59 -07:00
David Tolnay
554032aa11
Lockfile update 2022-09-28 16:03:31 -07:00
David Tolnay
3e3c664c84
Sort cxxbridge flags in alphabetical order 2022-09-28 16:03:09 -07:00
David Tolnay
be7090ab22
Release 1.0.77 2022-09-27 17:53:26 -07:00
David Tolnay
ad19ee0963
Lockfile update 2022-09-27 17:52:13 -07:00
David Tolnay
c2179d3eb5
Merge pull request #1104 from dtolnay/vecbool
Allow Vec<bool>
2022-09-27 17:50:51 -07:00
David Tolnay
f142a6e330
Test return value of vec return functions 2022-09-27 17:41:34 -07:00
David Tolnay
b122cff91d
Allow Vec<bool> to pass syntax check 2022-09-27 17:38:47 -07:00
David Tolnay
f24ccb0dce
Add test of C++ returning Rust Vec
This is currently rejected.

    error[cxxbridge]: unsupported element type of Vec
        ┌─ lib.rs:121:40
        │
    121 │         fn c_return_rust_vec_bool() -> Vec<bool>;
        │                                        ^^^^^^^^^ unsupported element type of Vec
2022-09-27 17:38:27 -07:00
David Tolnay
35f4b680f2
Update ui test suite to nightly-2022-09-27 2022-09-26 22:00:21 -07:00
David Tolnay
f014282770
Exclude buck-out from being watched by watchman 2022-09-21 09:01:49 -07:00
David Tolnay
8931be52a0
Raise minimum tested toolchain to rust 1.56.1
Required by the transitive dev-dependency on once_cell.

    error: failed to parse manifest at github.com-1ecc6299db9ec823/once_cell-1.15.0/Cargo.toml

    Caused by:
      feature `edition2021` is required

      The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
      Consider trying a newer version of Cargo (this may require the nightly release).
      See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information about the status of this feature.
2022-09-20 22:38:04 -07:00
David Tolnay
4e96c36aac
Release 1.0.76 2022-09-19 10:36:53 -07:00
David Tolnay
6e25fbc313
Lockfile update 2022-09-19 10:35:59 -07:00
David Tolnay
f2aecb0ae5
Merge pull request #1099 from dtolnay/vecarray
Allow Rust vector of array of trivially relocatable type
2022-09-19 10:33:54 -07:00
David Tolnay
072fd4f0a3
Allow Rust vector of array of trivially relocatable type 2022-09-19 10:25:31 -07:00
David Tolnay
83075824a4
Remove default package.readme metadata from Cargo.toml
Since cargo 1.46.0, README.md is recognized by default.
2022-09-14 09:15:58 -07:00