Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-def-assoc-items.rs.html'
//@ has 'src/foo/assoc-items.rs.html'

pub trait Trait {
type T;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-def-ice-assoc-types.rs.html'
//@ has 'src/foo/assoc-types.rs.html'

pub trait Trait {
type Node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-def-doc-links-calls.rs.html'
//@ has 'src/foo/doc-links-calls.rs.html'

//@ has - '//a[@href="../../foo/struct.Bar.html"]' 'Bar'
pub struct Bar;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-def-doc-links.rs.html'
//@ has 'src/foo/doc-links.rs.html'

//@ has - '//a[@href="../../foo/struct.Bar.html"]' 'Bar'
//@ has - '//a[@href="../../foo/struct.Foo.html"]' 'Foo'
Expand Down
15 changes: 0 additions & 15 deletions tests/rustdoc/jump-to-def/jump-to-def-macro.rs

This file was deleted.

15 changes: 15 additions & 0 deletions tests/rustdoc/jump-to-def/macro.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//@ aux-build:symbols.rs
//@ build-aux-docs
//@ compile-flags: -Zunstable-options --generate-link-to-definition

#![crate_name = "foo"]

//@ has 'src/foo/macro.rs.html'

#[macro_use]
extern crate symbols;

//@ has - '//a[@href="../../symbols/macro.symbols.html"]' 'symbols!'
symbols! {
A = 12
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-def-ice.rs.html'
//@ has 'src/foo/no-body-items.rs.html'

pub trait A {
type T;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-non-local-method.rs.html'
//@ has 'src/foo/non-local-method.rs.html'

//@ has - '//a[@href="{{channel}}/core/sync/atomic/struct.AtomicIsize.html"]' 'std::sync::atomic::AtomicIsize'
use std::sync::atomic::AtomicIsize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-def-pats.rs.html'
//@ has 'src/foo/patterns.rs.html'

use std::fmt;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-def-prelude-types.rs.html'
//@ has 'src/foo/prelude-types.rs.html'
// FIXME: would be nice to be able to check both the class and the href at the same time so
// we could check the text as well...
//@ has - '//a[@class="prelude-ty"]/@href' '{{channel}}/core/result/enum.Result.html'
Expand Down
Loading