Skip to content

remap-debuginfo causes some rustc tests to fail #63339

Closed
@ehuss

Description

@ehuss

Setting remap-debuginfo to true in config.toml will cause a few tests to fail. They are:

  • ui/impl-trait/impl-generic-mismatch.rs
  • ui/consts/const-size_of-cycle.rs
  • ui/type_length_limit.rs

The issue is that these tests use $SRC_DIR in their .stderr output, but when the standard library is built with --remap-path-prefix, these paths will not be shown at all in the output.

I can't think of an easy way to work around that. My only idea is to add an "ignore" flag to compiletest so that these tests can be ignored when remapping is enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions