Skip to content

rustdoc source tests fail when remap-debuginfo is enabled #150287

@jyn514

Description

@jyn514

Code

#![crate_name = "foo"]

// This test ensures that the [src] link is present on traits items.

//@ has foo/trait.Iterator.html '//*[@id="method.zip"]//a[@class="src"]' "Source"
pub use std::iter::Iterator;

Reproduction Steps

./x t --stage 1 tests/rustdoc/{source-code-pages/src-links-auto-impls.rs,ensure-src-link.rs}

Expected Outcome

Test should pass.

Actual Output

failures:

---- [rustdoc] tests/rustdoc/source-code-pages/src-links-auto-impls.rs stdout ----
------python3.13 stdout------------------------------

------python3.13 stderr------------------------------
9: has check failed
        `XPATH PATTERN` did not match
        //@ has - '//*[@id="impl-Any-for-T"]//a[@class="src rightside"]' 'Source'

Encountered 1 errors

---- [rustdoc] tests/rustdoc/ensure-src-link.rs stdout ----
------python3.13 stdout------------------------------

------python3.13 stderr------------------------------
5: has check failed
	`XPATH PATTERN` did not match
	//@ has foo/trait.Iterator.html '//*[@id="method.zip"]//a[@class="src"]' "Source"

Encountered 1 errors
Image

Version

cec7008

Additional Details

bootstrap.toml:

profile = "compiler"
change-id = "ignore"

[build]
profiler = true
description = "by Ferrous Systems"

[llvm]
download-ci-llvm = true

[rust]
remap-debuginfo = true
channel = "beta"
lld = true
deny-warnings = false
debug-assertions = true
debug-assertions-std = true
new-symbol-mangling = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions