Skip to content

Cross-crate overloading doesn't work #2615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
catamorphism opened this issue Jun 15, 2012 · 7 comments
Closed

Cross-crate overloading doesn't work #2615

catamorphism opened this issue Jun 15, 2012 · 7 comments
Labels
A-linkage Area: linking into static, shared libraries and binaries A-type-system Area: Type system

Comments

@catamorphism
Copy link
Contributor

as per a FIXME in core::num

@eholk
Copy link
Contributor

eholk commented Jun 15, 2012

Do we know this is the case? I'm pretty sure we are using this now.

@catamorphism
Copy link
Contributor Author

I assumed this was true because core::num is pretty new, but I'm not sure. Is there a test case?

@eholk
Copy link
Contributor

eholk commented Jun 15, 2012

I've got a bunch of code that implements + for [T] as an iface. I haven't noticed any cross-crate problems with it. I think we had some problems along these lines when I started this summer though.

@catamorphism
Copy link
Contributor Author

Ok, well, I still want there to be at least one test case (possibly an existing one) before I close this!

@pcwalton
Copy link
Contributor

I wrote that because @nikomatsakis had said he had found a bunch of issues with it, mainly in reachability checking IIRC (although I also remember he had trouble reproducing them). Paging him.

@nikomatsakis
Copy link
Contributor

These problems may have been fixed in the meantime. They were quite easy to reproduce: remove the get_elt() method from dvec and start using [].

pcwalton added a commit that referenced this issue Aug 7, 2012
@pcwalton
Copy link
Contributor

pcwalton commented Aug 7, 2012

Added a (working) test in 6a7c714; closing.

@pcwalton pcwalton closed this as completed Aug 7, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 24, 2022
point to my fork of josh for now

This is the version of josh that I used to create rust-lang#103392.
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Jan 6, 2023
point to my fork of josh for now

This is the version of josh that I used to create rust-lang#103392.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

4 participants