~/talk

Negative Bounds for Avoiding Conflicts in Implementing Traits in Rust

Talkat HATRA 2025 · on Tuesday, 2025-10-14· [rust]
links:none on file
links:none on file
slides:none on file

Introduces negative bounds (a minus operator on trait bounds) and a detection algorithm that checks unified type params plus the overlap of positive and excluded ancestor traits to avoid impl conflicts; prototype parser/resolver is implemented (~868 lines) and demonstrated resolving conflicts that previously required duplicate impls, with a claim of only adding an S·n·log n overhead and no major compile-time impact in typical cases; authors found >900 GitHub issues and tie the idea to RFC 1210 / rustc specialization.

AI-written summary · about

  1. 0:00Negative bounds in Rust traits
  2. 1:05What are Rust traits
  3. 2:50Trait conflicts with type parameters
  4. 4:38Negative bounds to resolve conflicts
  5. 6:49Formal definition of trait conflicts
  6. 7:57Prototype implementation demo
  7. 10:51Complexity of checking algorithm
  8. 11:35Future work and plans
  9. 12:18Summary of solution
  10. 12:38Question and answer session begins
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.