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
6 changes: 3 additions & 3 deletions compiler/rustc_span/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ bitflags::bitflags! {
/// Apply remappings to documentation information
const DOCUMENTATION = 1 << 5;

/// An alias for `macro`, `debuginfo` and `coverage`. This ensures all paths in compiled
/// executables, libraries and objects are remapped but not elsewhere.
const OBJECT = Self::MACRO.bits() | Self::DEBUGINFO.bits() | Self::COVERAGE.bits();
/// An alias for `macro`, `documentation`, `debuginfo` and `coverage`. This ensures all paths in compiled
/// executables, libraries, objects and documentation outputs are remapped but not elsewhere.
const OBJECT = Self::MACRO.bits() | Self::DOCUMENTATION.bits() | Self::DEBUGINFO.bits() | Self::COVERAGE.bits();
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/run-make/remap-path-prefix/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn main() {
rmeta_contains("auxiliary");
out_diagobj.run();
rmeta_contains("/the/aux/lib.rs");
rmeta_contains("auxiliary");
rmeta_not_contains("auxiliary");
out_diagdocobj.run();
rmeta_contains("/the/aux/lib.rs");
rmeta_not_contains("auxiliary");
Expand Down
3 changes: 2 additions & 1 deletion tests/rustdoc-json/remap-path-prefix/object.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@ ignore-windows
//@ compile-flags: --remap-path-prefix={{src-base}}=/remapped
//@ compile-flags: --remap-path-scope=object -Zunstable-options

//@ is "$.index[?(@.name=='StrLike')].span.filename" $FILE
//@ is "$.index[?(@.name=='StrLike')].span.filename" \"/remapped/remap-path-prefix/object.rs\"
pub trait StrLike {}
Loading