diff options
author | 2015-11-26 19:01:50 +0100 | |
---|---|---|
committer | 2015-11-26 19:01:50 +0100 | |
commit | 4cc4117c11ea53b9d6996fed03c5632a894eb59c (patch) | |
tree | 33422c1d54e624ecb7507edaa3477432ed041e22 | |
parent | 5fac29c26378b7c51b563535bbe5ba39186171d5 (diff) | |
download | rust-x86-4cc4117c11ea53b9d6996fed03c5632a894eb59c.tar.gz rust-x86-4cc4117c11ea53b9d6996fed03c5632a894eb59c.tar.zst rust-x86-4cc4117c11ea53b9d6996fed03c5632a894eb59c.zip |
Update comment.
-rw-r--r-- | build.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -16,9 +16,8 @@ use serde_json::Value; include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/perfcnt/intel/description.rs")); -/// We need to convert parsed strings to static because we're reusing -/// the struct definition which declare strings (rightfully) as -/// static in the generated code. +/// HACK: We need to convert parsed strings to static because we're reusing +/// the struct definition which declare strings as static in the generated code. fn string_to_static_str<'a>(s: &'a str) -> &'static str { unsafe { let ret = mem::transmute(&s as &str); |