mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00

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.
7 lines
247 B
Rust
7 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);
|