aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/analysis
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-03 16:45:42 +0000
committerGitHub <noreply@github.com>2021-06-03 16:45:42 +0000
commit432c5f9c650f81500007a51480ae13bfc68f77b1 (patch)
tree8c3b13195bc095b723148da6e6c040839aa3c6ef /gcc/rust/analysis
parent4414e8a4c21779f4e7a236532f696cf32cb2e1f3 (diff)
parent665df329a2ad60580ab593f6cbd646aa55927a37 (diff)
downloadgcc-432c5f9c650f81500007a51480ae13bfc68f77b1.zip
gcc-432c5f9c650f81500007a51480ae13bfc68f77b1.tar.gz
gcc-432c5f9c650f81500007a51480ae13bfc68f77b1.tar.bz2
Merge #466
466: Expose rust debug and use it r=tschwinge a=CohenArthur Fixes #464 @philberty I've checked and rust_debug does output on stderr correctly :) This PR exposes the rust_debug prototype and replaces debug printfs (`fprintf (stderr, ...)`) with calls to rust_debug. This also removes the extra newlines that were added at the end of the fprintf format strings, since calling rust_debug already adds one. Without this, the tests fail due to blank lines in the output. I have used a template to overload the rust_debug function and pass variadic arguments to the complete version. While the code looks cleaner than using `va_args`, it's also heavier C++. I'm open to changing it and definitely not attached to this implementation. Most of the PR was made using sed and then clang-format Co-authored-by: CohenArthur <arthur.cohen@epita.fr>
Diffstat (limited to 'gcc/rust/analysis')
0 files changed, 0 insertions, 0 deletions