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:
David Tolnay 2022-10-15 14:13:33 -07:00
parent 202a02917b
commit 5ab0a485cc
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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);
}