Skip to content

Commit

Permalink
Mark cxxbridge1$exception noexcept
Browse files Browse the repository at this point in the history
This function is implemented in Rust using #[no_mangle] extern "C", and
it cannot throw a C++ exception.
  • Loading branch information
dtolnay committed Oct 15, 2022
1 parent 202a029 commit 5ab0a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5ab0a48

Please sign in to comment.