We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9517863 commit e24ed3dCopy full SHA for e24ed3d
2 files changed
compiler/rustc_type_ir/src/inherent.rs
@@ -400,7 +400,15 @@ pub trait GenericArg<I: Interner<GenericArg = Self>>:
400
401
#[rust_analyzer::prefer_underscore_import]
402
pub trait Term<I: Interner<Term = Self>>:
403
- Copy + Debug + Hash + Eq + IntoKind<Kind = ty::TermKind<I>> + TypeFoldable<I> + Relate<I>
+ Copy
404
+ + Debug
405
+ + Hash
406
+ + Eq
407
+ + IntoKind<Kind = ty::TermKind<I>>
408
+ + TypeFoldable<I>
409
+ + Relate<I>
410
+ + From<I::Ty>
411
+ + From<I::Const>
412
{
413
fn as_type(&self) -> Option<I::Ty> {
414
if let ty::TermKind::Ty(ty) = self.kind() { Some(ty) } else { None }
0 commit comments