]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rustdoc-js/tester.js
Rollup merge of #93595 - compiler-errors:ice-on-lifetime-arg, r=jackh726
[rust.git] / src / tools / rustdoc-js / tester.js
index 4f73a7f634098f2f7d6846e593a083c24877fcb4..dbf5cf9650c5f4f16098a2d11979b1bf423531c3 100644 (file)
@@ -357,6 +357,8 @@ function runChecks(testFile, loaded, index) {
     var testFileContent = readFile(testFile) + 'exports.QUERY = QUERY;exports.EXPECTED = EXPECTED;';
     if (testFileContent.indexOf("FILTER_CRATE") !== -1) {
         testFileContent += "exports.FILTER_CRATE = FILTER_CRATE;";
+    } else {
+        testFileContent += "exports.FILTER_CRATE = null;";
     }
     var loadedFile = loadContent(testFileContent);