diff options
author | chrysn <chrysn@fsfe.org> | 2018-08-24 15:05:13 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-08-28 12:47:44 +0200 |
commit | b3fca4df2eda2f2bfe8861ab88b05a2573a7b502 (patch) | |
tree | 03feb5d01949a3cf616603019a530b0c0678da2c /src/codegen/helpers.rs | |
parent | 6084b394b3794b29b0751e90fe278f86bf133666 (diff) |
Debug implementation: Don't use format! or String when core is enabled
As --use-core is typically given when the wrapped library is to be used
in a no_std environment, format! and String can not be used.
This is a quick fix that will cause regressions in the quality of the
debug output to users that use core but are not no_std, but enables the
use of bindgen with implemented Debug traits to no_std users.
Closes: https://github.com/rust-lang-nursery/rust-bindgen/issues/1100
Diffstat (limited to 'src/codegen/helpers.rs')
0 files changed, 0 insertions, 0 deletions