[cr136] Fix print_rust_log override args using cxx now
This is a simple change to the function signature itself to once again be matching with the one in the override. The type changes are pretty much analogous to what was there before. Chromium change: https://chromium.googlesource.com/chromium/src/+/7cbc0d17f2eceb8ef0eb928fe8f8dd6d0163d3d0 commit 7cbc0d17f2eceb8ef0eb928fe8f8dd6d0163d3d0 Author: Collin Baker <collinbaker@chromium.org> Date: Wed Mar 19 14:02:01 2025 -0700 Use cxx for FFI between Rust and C++ logging code Instead of bindgen, use cxx to generate binding for the C++ print_rust_log fn called from Rust. This will make it possible to use cxx types such as rust::Str. Bindgen is still used to generate LogSeverity bindings, since that is the only way to have non-opaque bindings while keeping C++ as the source of truth. Bug: 371112531
This commit is contained in:
@@ -12,10 +12,10 @@
|
||||
namespace logging {
|
||||
namespace internal {
|
||||
|
||||
void print_rust_log(const char* msg,
|
||||
void print_rust_log(const RustFmtArguments& msg,
|
||||
const char* file,
|
||||
int line,
|
||||
LogSeverity severity,
|
||||
int32_t line,
|
||||
int32_t severity,
|
||||
bool verbose) {
|
||||
switch (severity) {
|
||||
// Trace and debug logs are set as `LOGGING_INFO`. Trace is also set as
|
||||
|
||||
Reference in New Issue
Block a user