Skip to content

Commit b1dc94d

Browse files
committed
Auto merge of #10921 - ehuss:disable-scrape_examples_complex_reverse_dependencies, r=Eh2406
Disable scrape_examples_complex_reverse_dependencies The test `scrape_examples_complex_reverse_dependencies` no longer works on the latest nightly. It fails with the error: ``` error[E0433]: failed to resolve: could not resolve path `a::f` --> examples/ex.rs:1:13 | 1 | fn main() { a::f(); } | ^^^^ could not resolve path `a::f` | = note: this error was originally ignored because you are running `rustdoc` = note: try running again with `rustc` or `cargo check` and you may get a more detailed error error: Compilation failed, aborting rustdoc For more information about this error, try `rustc --explain E0433`. error: could not document `foo` ``` It is not clear to me what this test was trying to exercise, so I'm not sure how to fix it. It has an example that is trying to call a function from a proc-macro, but proc-macros do not export functions. Disabling for now to get CI passing. cc `@willcrichton`
2 parents 3ccf7dc + e8d9291 commit b1dc94d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/testsuite/doc.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,12 @@ fn scrape_examples_avoid_build_script_cycle() {
24202420
.run();
24212421
}
24222422

2423-
#[cargo_test(nightly, reason = "rustdoc scrape examples flags are unstable")]
2423+
// FIXME: This test is broken with latest nightly 2022-08-02.
2424+
// The example is calling a function from a proc-macro, but proc-macros don't
2425+
// export functions. It is not clear what this test is trying to exercise.
2426+
// #[cargo_test(nightly, reason = "rustdoc scrape examples flags are unstable")]
2427+
#[ignore]
2428+
#[cargo_test]
24242429
fn scrape_examples_complex_reverse_dependencies() {
24252430
let p = project()
24262431
.file(

0 commit comments

Comments
 (0)