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.
12 lines
312 B
Rust
12 lines
312 B
Rust
// aux-build:external-macro-src.rs
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
#[macro_use]
|
|
extern crate external_macro_src;
|
|
|
|
// @has foo/index.html '//a[@href="../src/foo/external-macro-src.rs.html#3-12"]' '[src]'
|
|
|
|
// @has foo/struct.Foo.html
|
|
// @has - '//a[@href="../src/foo/external-macro-src.rs.html#12"]' '[src]'
|
|
make_foo!();
|