Skip to content

Commit 7d3d835

Browse files
committed
replace escape-rust-expr test with dont-show-const-contents
The old test was supposed to check for proper html escaping when showing the contents of constants. This was changed as part of #53409. The revised test asserts that the contents of the constant is not shown as part of the generated documentation.
1 parent e7b5ba8 commit 7d3d835

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/rustdoc/escape-rust-expr.rs renamed to src/test/rustdoc/dont-show-const-contents.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// Test that we HTML-escape Rust expressions, where HTML special chars
12-
// can occur, and we know it's definitely not markup.
11+
// Test that the contents of constants are not displayed as part of the
12+
// documentation.
1313

14-
// @!has escape_rust_expr/constant.CONST_S.html '//pre[@class="rust const"]' '"<script>"'
15-
pub const CONST_S: &'static str = "<script>";
14+
// @!has dont_show_const_contents/constant.CONST_S.html 'dont show this'
15+
pub const CONST_S: &'static str = "dont show this";

0 commit comments

Comments
 (0)