about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-06-16 13:31:08 +0900
committerGitHub <noreply@github.com>2021-06-16 13:31:08 +0900
commit9fcbbbb1fbd50411b7785e2f96e3002ba547dedd (patch)
tree1420fb0aa9718bd8177856cdcf55bf6ec4446c84 /src/test/rustdoc
parentd476707a1f2f082b735e2e073153ba446c6a7ae8 (diff)
parent94de92ddc71cb517a4d81f2b851b2871a1fc7fba (diff)
downloadrust-9fcbbbb1fbd50411b7785e2f96e3002ba547dedd.tar.gz
rust-9fcbbbb1fbd50411b7785e2f96e3002ba547dedd.zip
Rollup merge of #86242 - BoxyUwU:rustdoc-const-evaluatable-ice, r=oli-obk
rustdoc- dont ICE on `ConstEvaluatable` predicates

Fixes #77647

rustdoc doesn't need to be handling these as you cant write them, they just get added implicitly when you write a where clause containing an expression.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/const-generics/const-evaluatable-checked.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc/const-generics/const-evaluatable-checked.rs b/src/test/rustdoc/const-generics/const-evaluatable-checked.rs
new file mode 100644
index 00000000000..1c074fdb3f8
--- /dev/null
+++ b/src/test/rustdoc/const-generics/const-evaluatable-checked.rs
@@ -0,0 +1,7 @@
+#![crate_name = "foo"]
+#![feature(const_evaluatable_checked, const_generics)]
+#![allow(incomplete_features)]
+// make sure that `ConstEvaluatable` predicates dont cause rustdoc to ICE #77647
+// @has foo/struct.Ice.html '//pre[@class="rust struct"]' \
+//      'pub struct Ice<const N: usize> where [(); N + 1]: ;'
+pub struct Ice<const N: usize> where [(); N + 1]:;