I'm currently looking at #61963. I'm able to reproduce with the repository using the commit that was reported but I've been unable to produce a smaller reproduction based on what I'm observing the code do (I've looked at what the macro expands to, and can see the code that the lint would trigger for, but any macros that I write aren't doing it). I'm now trying to use a local build of the compiler so I can debug what's triggering it and work back from that to make a test case. However, if I use
rustup toolchain link rust1-stage1 /path/to/stage1/folder and then change the
rust-toolchain file, eventually I get an error like this:
error: librustc_plugin-4f4ec7f541bc84cb.so: cannot open shared object file: No such file or directory --> components/script/lib.rs:15:11 | 15 | #![plugin(script_plugins)] | ^^^^^^^^^^^^^^
I can work around it by adding
/path/to/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib (where this file lives) to
LD_PRELOAD_PATH, but then I immediately hit
cannot access a scoped thread local variable without calling `set` first. Anyone got any ideas on what to try?
Legacy plugins require a
(Not so long ago even stable proc macros required it.)
Ah, thanks! I’ll give that a go.