diff options
| author | Michael Howell <michael@notriddle.com> | 2022-09-20 10:13:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-20 10:13:02 -0700 |
| commit | 3fac4bbdda64c04972f6d1e9d2cbddde21efdf53 (patch) | |
| tree | b6d6ac468b75b631e90b518517fb0f9ba3437603 /src/test | |
| parent | 128733d742eb5a2a4e7579c1e9e28cb5774ff661 (diff) | |
| parent | 690c4677997f9fc397a70531982ce184ffeb2305 (diff) | |
| download | rust-3fac4bbdda64c04972f6d1e9d2cbddde21efdf53.tar.gz rust-3fac4bbdda64c04972f6d1e9d2cbddde21efdf53.zip | |
Rollup merge of #102038 - jyn514:rustdoc-normalize-test, r=compiler-errors
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: -Znormalize-docs` and running the test to make sure it gives an error.
Diffstat (limited to 'src/test')
| -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; |
