Skip to content

Commit 8b7643b

Browse files
committed
Mark rust::detail::Fail constructor noexcept
1 parent 97a46f9 commit 8b7643b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gen/src/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub(super) fn write(out: &mut OutFile) {
262262
writeln!(out, "public:");
263263
writeln!(
264264
out,
265-
" Fail(::rust::repr::PtrLen &throw$) : throw$(throw$) {{}}"
265+
" Fail(::rust::repr::PtrLen &throw$) noexcept : throw$(throw$) {{}}",
266266
);
267267
writeln!(out, " void operator()(const char *) noexcept;");
268268
writeln!(out, " void operator()(const std::string &) noexcept;");

src/cxx.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ class Fail final {
535535
repr::PtrLen &throw$;
536536

537537
public:
538-
Fail(repr::PtrLen &throw$) : throw$(throw$) {}
538+
Fail(repr::PtrLen &throw$) noexcept : throw$(throw$) {}
539539
void operator()(const char *) noexcept;
540540
void operator()(const std::string &) noexcept;
541541
};

0 commit comments

Comments
 (0)