Previously the [src] link on types defined by a macro pointed to the macro definition. This commit makes the Clean-Implementation for Spans aware of macro defined types, so that the link points to the invocation instead.
6 lines
247 B
Rust
6 lines
247 B
Rust
#![crate_name = "foo"]
|
|
|
|
// @has foo/index.html '//a[@href="../src/foo/thread-local-src.rs.html#1-6"]' '[src]'
|
|
|
|
// @has foo/constant.FOO.html '//a[@href="../src/foo/thread-local-src.rs.html#6"]' '[src]'
|
|
thread_local!(pub static FOO: bool = false);
|