Skip to content

Commit 264e5cb

Browse files
committed
fixing build
1 parent 0335ebf commit 264e5cb

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
CXX — safe FFI between Rust and C++
23
=========================================
34

gen/src/write.rs

+2
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,8 @@ fn write_cxx_function_shim<'a>(out: &mut OutFile<'a>, efn: &'a ExternFn) {
706706
out.next_section();
707707
out.set_namespace(&efn.name.namespace);
708708
out.begin_block(Block::ExternC);
709+
write!(out, "/* write_cxx_function_shim */");
710+
709711
begin_function_definition(out);
710712
if efn.throws {
711713
out.builtin.ptr_len = true;

tests/ffi/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99
path = "lib.rs"
1010

1111
[dependencies]
12-
cxx = { path = "../..", default-features = false }
12+
cxx = { path = "../.." }
1313

1414
[build-dependencies]
1515
cxx-build = { path = "../../gen/build" }

tests/ui/ptr_unsupported.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: C++ does not allow pointer to reference as a type
2-
--> tests/ui/ptr_unsupported.rs:6:38
2+
--> tests/ui/ptr_unsupported.rs:6:42
33
|
44
6 | fn get_ptr_to_reference<'a>() -> *mut &'a C;
55
| ^^^^^^^^^^

0 commit comments

Comments
 (0)