diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-08-24 20:38:11 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-08-24 20:38:11 +0000 |
| commit | 3e2763a2155d9a11ed6aaed4e813f782dc53b095 (patch) | |
| tree | 729220e8f29b6a64347c772ae48486f681ee5481 | |
| parent | 300da9a910adda194898ee11c4f044956ee04563 (diff) | |
| download | rust-3e2763a2155d9a11ed6aaed4e813f782dc53b095.tar.gz rust-3e2763a2155d9a11ed6aaed4e813f782dc53b095.zip | |
add missing associated item
| -rw-r--r-- | compiler/rustc_type_ir/src/outlives.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_type_ir/src/outlives.rs b/compiler/rustc_type_ir/src/outlives.rs index bfcea6a81d3..e8afaf1a480 100644 --- a/compiler/rustc_type_ir/src/outlives.rs +++ b/compiler/rustc_type_ir/src/outlives.rs @@ -68,6 +68,9 @@ struct OutlivesCollector<'a, I: Interner> { } impl<I: Interner> TypeVisitor<I> for OutlivesCollector<'_, I> { + #[cfg(not(feature = "nightly"))] + type Result = (); + fn visit_ty(&mut self, ty: I::Ty) -> Self::Result { if !self.visited.insert(ty) { return; |
