mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Mark cxxbridge1$exception noexcept
This function is implemented in Rust using #[no_mangle] extern "C", and it cannot throw a C++ exception.
This commit is contained in:
parent
202a02917b
commit
5ab0a485cc
@ -407,7 +407,7 @@ pub(super) fn write(out: &mut OutFile) {
|
||||
out.begin_block(Block::ExternC);
|
||||
writeln!(
|
||||
out,
|
||||
"const char *cxxbridge1$exception(const char *, ::std::size_t);",
|
||||
"const char *cxxbridge1$exception(const char *, ::std::size_t) noexcept;",
|
||||
);
|
||||
out.end_block(Block::ExternC);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user