Closed
Description
The unstable book suggest compiling a crate that uses proc-macro's with address sanitizer is possible:
rust/src/doc/unstable-book/src/compiler-flags/sanitizer.md
Lines 896 to 897 in 0a39445
But issues like rust-lang/cargo#10666 and the cross-referenced ones run into linker issues and the "fix" was adding --target
so the proc-macro wasn't compiled with ASAN.
While a better error would be nice, I am wondering how to resolve linking errors and compile all code under ASAN. I suspect that not doing so is causing a false positive in ASAN when its memory tracking isn't in the proc-macro as well, but maybe my suspicion is misplaced.