-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #113028 - fmease:rustdoc-x-crate-itiap-clean-term, r=…
…notriddle rustdoc: handle assoc const equalities in cross-crate impl-Trait-in-arg-pos Fixes FIXME (the added test previously lead to an ICE). `@rustbot` label A-cross-crate-reexports
- Loading branch information
Showing
3 changed files
with
20 additions
and
13 deletions.
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,8 @@ | ||
// aux-crate:assoc_const_equality=assoc-const-equality.rs | ||
// edition:2021 | ||
|
||
#![crate_name = "user"] | ||
|
||
// @has user/fn.accept.html | ||
// @has - '//pre[@class="rust item-decl"]' 'fn accept(_: impl Trait<K = 0>)' | ||
pub use assoc_const_equality::accept; |
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 @@ | ||
#![feature(associated_const_equality)] | ||
|
||
pub fn accept(_: impl Trait<K = 0>) {} | ||
|
||
pub trait Trait { | ||
const K: i32; | ||
} |