Skip to content

Commit 653e736

Browse files
committed
Update cargo-config2 to 0.1.29
1 parent c18e0a1 commit 653e736

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
1010

1111
## [Unreleased]
1212

13+
- Respect `target.<triple>.rustdocflags` [that added in Cargo 1.78](https://github.com/rust-lang/cargo/pull/13197).
14+
1315
## [0.6.11] - 2024-07-18
1416

1517
- Add support for MC/DC coverage. ([#363](https://github.com/taiki-e/cargo-llvm-cov/pull/363), thanks @aytey)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pkg-fmt = "tgz"
2424
[dependencies]
2525
anyhow = "1.0.47"
2626
camino = "1.0.5"
27-
cargo-config2 = "0.1.21"
27+
cargo-config2 = "0.1.29"
2828
duct = "0.13.1"
2929
fs-err = "2.5"
3030
glob = "0.3"

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ fn set_env(cx: &Context, env: &mut dyn EnvTarget, IsNextest(is_nextest): IsNexte
269269
}
270270

271271
// https://doc.rust-lang.org/nightly/rustc/instrument-coverage.html#including-doc-tests
272-
let rustdocflags = &mut cx.ws.config.build.rustdocflags.clone();
272+
let rustdocflags = &mut cx.ws.config.rustdocflags(&cx.ws.target_for_config)?.unwrap_or_default();
273273
if cx.args.doctests {
274274
let rustdocflags = rustdocflags.get_or_insert_with(Flags::default);
275275
push_common_flags(cx, rustdocflags);

0 commit comments

Comments
 (0)