aboutsummaryrefslogtreecommitdiff
path: root/syntax/error.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2020-12-01 15:27:43 -0800
committerDavid Tolnay <dtolnay@gmail.com>2020-12-01 20:49:04 -0800
commitb3b24a1fe00d31c7e10e052fa47d6856cfc7340e (patch)
treec887390ee4959a54dbaa0eec0a16f754219c32b4 /syntax/error.rs
parent9bbbe5fa89ef4753bdc36deee6465a3ffffe7eb7 (diff)
downloadcxx-b3b24a1fe00d31c7e10e052fa47d6856cfc7340e.tar.gz
Add Rust std::shared_ptr binding
Diffstat (limited to 'syntax/error.rs')
-rw-r--r--syntax/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/error.rs b/syntax/error.rs
index d0ae0210..a6723293 100644
--- a/syntax/error.rs
+++ b/syntax/error.rs
@@ -29,7 +29,7 @@ pub static ERRORS: &[Error] = &[
pub static BOX_CXX_TYPE: Error = Error {
msg: "Box of a C++ type is not supported yet",
label: None,
- note: Some("hint: use UniquePtr<>"),
+ note: Some("hint: use UniquePtr<> or SharedPtr<>"),
};
pub static CXXBRIDGE_RESERVED: Error = Error {
@@ -47,7 +47,7 @@ pub static CXX_STRING_BY_VALUE: Error = Error {
pub static CXX_TYPE_BY_VALUE: Error = Error {
msg: "C++ type by value is not supported",
label: None,
- note: Some("hint: wrap it in a UniquePtr<>"),
+ note: Some("hint: wrap it in a UniquePtr<> or SharedPtr<>"),
};
pub static DISCRIMINANT_OVERFLOW: Error = Error {