forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#86242 - BoxyUwU:rustdoc-const-evaluatable-i…
…ce, r=oli-obk rustdoc- dont ICE on `ConstEvaluatable` predicates Fixes rust-lang#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.
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]:; |