Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rejig typeconversionpolicy #1129

Closed
wants to merge 27 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix a test
adetaylor committed Jun 25, 2022
commit 4d7b64134e3c19549d09ebf768f69e432840d0c0
6 changes: 3 additions & 3 deletions integration-tests/tests/cpprefs_test.rs
Original file line number Diff line number Diff line change
@@ -53,9 +53,9 @@ fn test_method_call_mut() {
inline void Goat::add_a_horn() { horns++; }
"},
quote! {
let mut goat = ffi::Goat::new().within_box();
let mut goat = ffi::CppMutRef::from_box(&mut goat);
goat.add_a_horn();
let goat = ffi::Goat::new().within_unique_ptr();
let mut goat = ffi::CppUniquePtrPin::new(goat);
goat.as_cpp_mut_ref().add_a_horn();
},
&["Goat"],
&[],