diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-19 22:49:37 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-19 22:49:37 -0500 |
| commit | 690c4677997f9fc397a70531982ce184ffeb2305 (patch) | |
| tree | c90c578b7ec3d6343239548ea5a0afffb4f51213 /src/test/rustdoc-ui/normalize-overflow.rs | |
| parent | a37499ae66ec5fc52a93d71493b78fb141c32f6b (diff) | |
| download | rust-690c4677997f9fc397a70531982ce184ffeb2305.tar.gz rust-690c4677997f9fc397a70531982ce184ffeb2305.zip | |
Make the `normalize-overflow` rustdoc test actually do something
Since https://github.com/rust-lang/rust/pull/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: -Znormalizing-docs` and running the test.
Diffstat (limited to 'src/test/rustdoc-ui/normalize-overflow.rs')
| -rw-r--r-- | src/test/rustdoc-ui/normalize-overflow.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/normalize-overflow.rs b/src/test/rustdoc-ui/normalize-overflow.rs index 0cdcc88e314..3698fe70e7f 100644 --- a/src/test/rustdoc-ui/normalize-overflow.rs +++ b/src/test/rustdoc-ui/normalize-overflow.rs @@ -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; |
