This repository was archived by the owner on Jul 6, 2019. It is now read-only.
This repository was archived by the owner on Jul 6, 2019. It is now read-only.
Doc comments macro expansion broken? #173
Closed
Description
% rustc --opt-level 0 -Z no-landing-pads --cfg cfg_mcu_has_spi --cfg mcu_lpc17xx --cfg arch_cortex_m3 --test -g -L /Users/farcaller/src/zinc/build -o /Users/farcaller/src/zinc/build/ioreg_test /Users/farcaller/src/zinc/src/ioreg/test.rs --pretty expanded
<quote expansion>:1:1: 1:2 error: unexpected token: `#`
<quote expansion>:1 #[doc = "Set value of `field1` field: no documentation"]
^
however
% rustc --opt-level 0 -Z no-landing-pads --cfg cfg_mcu_has_spi --cfg mcu_lpc17xx --cfg arch_cortex_m3 -g -L /Users/farcaller/src/zinc/build -o a.rs /Users/farcaller/src/zinc/src/ioreg/test.rs --pretty expanded
% rustc --opt-level 0 -Z no-landing-pads --cfg cfg_mcu_has_spi --cfg mcu_lpc17xx --cfg arch_cortex_m3 --test -g -L /Users/farcaller/src/zinc/build -o /Users/farcaller/src/zinc/build/ioreg_test a.rs
compiles fine.