Assert current behavior for links

For the two of these tests that have a local `char` to link to, this behavior isn't what's expected, but is what's happening presently.
This commit is contained in:
Seth Pellegrino 2020-07-07 10:23:29 -07:00
parent 165aecbee3
commit 865b930bc9
3 changed files with 12 additions and 0 deletions

View file

@ -6,6 +6,10 @@
#![feature(no_core, lang_items)]
#![no_core]
// @has intra_link_prim_methods_external_core/index.html
// @has - '//*[@id="main"]//a[@href="https://doc.rust-lang.org/nightly/std/primitive.char.html"]' 'char'
// @has - '//*[@id="main"]//a[@href="https://doc.rust-lang.org/nightly/std/primitive.char.html#method.len_utf8"]' 'char::len_utf8'
//! A [`char`] and its [`char::len_utf8`].
extern crate my_core;

View file

@ -2,6 +2,10 @@
#![feature(no_core, lang_items)]
#![no_core]
// @has intra_link_prim_methods_local/index.html
// @has - '//*[@id="main"]//a[@href="https://doc.rust-lang.org/nightly/std/primitive.char.html"]' 'char'
// @has - '//*[@id="main"]//a[@href="https://doc.rust-lang.org/nightly/std/primitive.char.html#method.len_utf8"]' 'char::len_utf8'
//! A [`char`] and its [`char::len_utf8`].
#[lang = "char"]

View file

@ -1,3 +1,7 @@
#![deny(intra_doc_link_resolution_failure)]
// @has intra_link_prim_methods/index.html
// @has - '//*[@id="main"]//a[@href="https://doc.rust-lang.org/nightly/std/primitive.char.html"]' 'char'
// @has - '//*[@id="main"]//a[@href="https://doc.rust-lang.org/nightly/std/primitive.char.html#method.len_utf8"]' 'char::len_utf8'
//! A [`char`] and its [`char::len_utf8`].