From 690c4677997f9fc397a70531982ce184ffeb2305 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Mon, 19 Sep 2022 22:49:37 -0500 Subject: [PATCH] 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. --- src/test/rustdoc-ui/normalize-overflow.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/rustdoc-ui/normalize-overflow.rs b/src/test/rustdoc-ui/normalize-overflow.rs index 0cdcc88e3141f..3698fe70e7f7e 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 . + +extern crate overflow;