-
Notifications
You must be signed in to change notification settings - Fork 698
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
Allow marking specific template instantiations as opaque #773
Allow marking specific template instantiations as opaque #773
Conversation
src/ir/template.rs
Outdated
// `canonical_name` does not insert the template arguments into the | ||
// name, ie it for nested template arguments it creates "Foo" instead of | ||
// "Foo<int>". The fully correct fix is to make `canonical_{name,path}` | ||
// include template arguments properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the record, I tried doing this the right way, but it's so messy because all the different places we assume names can or can't have non-ident characters and things like that. Need to file a bug to put the issue number here.
1fb0b32
to
90c23fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Err, I think I reviewed this and forgot to hit publish?
The template serialization is sort-of nasty, but I guess it's fine... r=me with issues filed and all that :)
If a template has a specialization that bindgen doesn't understand, it can be helpful to mark it as opaque and continue making forward progress in the meantime. This is something we need in the SpiderMonkey bindings.
90c23fb
to
2000177
Compare
Thanks Emilio! @bors-servo r=emilio |
📌 Commit 2000177 has been approved by |
…paque, r=emilio Allow marking specific template instantiations as opaque If a template has a specialization that bindgen doesn't understand, it can be helpful to mark it as opaque and continue making forward progress in the meantime. This is something we need in the SpiderMonkey bindings. r? @emilio
☀️ Test successful - status-travis |
If a template has a specialization that bindgen doesn't understand, it can be
helpful to mark it as opaque and continue making forward progress in the
meantime. This is something we need in the SpiderMonkey bindings.
r? @emilio