You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Negative interaction between &self, auto-ref, and @T implementations #3585
You get an assertion failure. What happens is that auto-ref derefs the @uint to uint and then auto-refs that to &uint. This is because the current rule is "auto-deref until you can't, then auto-ref". It would be easy enough to make it try auto-refing at each stage. Probably it should, this seems like an important use case. This is a fairly small change to middle/typeck/check/method.rs.
Activity
Auto merge of rust-lang#3585 - devnexen:aligned_alloc, r=RalfJung