Skip to content

Commit

Permalink
Rollup merge of rust-lang#102038 - jyn514:rustdoc-normalize-test, r=c…
Browse files Browse the repository at this point in the history
…ompiler-errors

Make the `normalize-overflow` rustdoc test actually do something

Since rust-lang#88679, rustdoc doesn't load crates eagerly. Add an explicit `extern crate` item to make sure the crate is loaded and the bug reproduces.
You can verify this fix by adding `// compile-flags: -Znormalize-docs` and running the test to make sure it gives an error.
  • Loading branch information
notriddle authored Sep 20, 2022
2 parents 6f78011 + 690c467 commit da67269
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/rustdoc-ui/normalize-overflow.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// aux-crate:overflow=overflow.rs
// check-pass
// Regression test for <https://github.com/rust-lang/rust/issues/79506>.

extern crate overflow;

0 comments on commit da67269

Please sign in to comment.