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
Dump process shall dump all generics in order to be accurate, but an implicit Self generic is injected during name-resolution step. This means, the dump used for metadata export does contain this implicit Self and cannot compile anymore.
// we need to inject an implicit self TypeParam here
// FIXME: which location should be used for Rust::Identifier `Self`?
AST::TypeParam *implicit_self
= new AST::TypeParam ({"Self"}, trait.get_locus ());
trait.insert_implict_self (
std::unique_ptr<AST::GenericParam> (implicit_self));
CanonicalPath Self = CanonicalPath::get_big_self (trait.get_node_id ());
Dump process shall dump all generics in order to be accurate, but an implicit
Self
generic is injected during name-resolution step. This means, the dump used for metadata export does contain this implicitSelf
and cannot compile anymore.Code
See disabled test
trait_import0.rs
Meta
Error output
Failure to parse metadata.
Details
The text was updated successfully, but these errors were encountered: