diff options
| author | kadmin <julianknodt@gmail.com> | 2022-01-10 23:39:21 +0000 |
|---|---|---|
| committer | kadmin <julianknodt@gmail.com> | 2022-01-17 19:59:40 +0000 |
| commit | e7529d6a3867ed1692818702b40814ee992eba2d (patch) | |
| tree | 604113f2d4e343f78db6c168ce8624a767de87d7 /compiler/rustc_interface/src | |
| parent | 67f56671d0384bdb2d92dddebfbf42510b16e0f7 (diff) | |
| download | rust-e7529d6a3867ed1692818702b40814ee992eba2d.tar.gz rust-e7529d6a3867ed1692818702b40814ee992eba2d.zip | |
Update term for use in more places
Replace use of `ty()` on term and use it in more places. This will allow more flexibility in the future, but slightly worried it allows items which are consts which only accept types.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/util.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs index 0d1081ee26b..3921187baa5 100644 --- a/compiler/rustc_interface/src/util.rs +++ b/compiler/rustc_interface/src/util.rs @@ -742,6 +742,8 @@ impl<'a, 'b> ReplaceBodyWithLoop<'a, 'b> { ast::AssocConstraintKind::Equality { ref term } => { match term { Term::Ty(ty) => involves_impl_trait(ty), + // FIXME(...): This should check if the constant + // involves a trait impl, but for now ignore. Term::Const(_) => false, } } |
