Review report

core: PR #35911

Design and approach

Preserve the noreturn contract in generated IPC clients (src/interfaces/mining.h:81, head)

These virtual interfaces are used by generated IPC proxies, but the generic ProxyClient generation in src/ipc/libmultiprocess/src/mp/gen.cpp calls clientInvoke and then returns the result for result-bearing methods. The void makeMiningOld2 proxy also completes normally after a successful call, and the Cap’n Proto schemas permit successful responses. If an IPC endpoint returns success, a call through the newly noreturn interface can therefore return contrary to its contract. The in-tree defaults currently throw, so decide whether the guarantee must also cover successful IPC responses. If it must, make the proxy convert success into an exception; the deprecated methods have no supported success behavior. Otherwise, keep noreturn local to the throwing implementation or helper rather than promising it on the virtual interface.

Use the C++20 lambda-attribute position instead of suppressing the warning project-wide (CMakeLists.txt:509, head)

The changed lambdas place [[noreturn]] between the capture list and parameter list, a C++23 extension detected by the project warning. The -Wno counterpart is applied through warn_interface, which is linked to core_interface, suppressing the warning beyond these lambdas. Place the attributes after each lambda’s parameter list, for example []() [[noreturn]] { ... }, and remove the suppression. This preserves the annotations while keeping C++20 extension diagnostics available elsewhere.

🟡 Minor

Ensure mock assignment operators cannot return (src/test/util/net.h:204, head)

The new noreturn declarations cover ZeroSock, StaticContentsSock, DynSock, and FuzzedSock, whose changed definitions now contain only assert(false) after their return statements were removed. With NDEBUG, those assertions do nothing, so calling these functions through the public virtual Sock::operator= can reach the end of a non-void function, violating the noreturn contract and invoking undefined behavior. Make the failure path terminate or throw unconditionally, or retain a valid return path without noreturn.

Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review did not complete. The design review had incomplete evidence.