Skip to content

Don't translate implicit instantiations done by STL - #629

Merged
nunoplopes merged 9 commits into
Cpp2Rust:masterfrom
lucic71:38-library-only-specializations
Nov 17, 2026
Merged

nunoplopes merged 9 commits into
Cpp2Rust:masterfrom
lucic71:38-library-only-specializations

Conversation

@lucic71

@lucic71 lucic71 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

In std::map<int, int, std::less<int>, Alloc<std::pair<const int, int>>> m;, STL implicitly instantiates the internal node type:

// _Rb_tree_node is an internal type
Alloc<std::_Rb_tree_node<std::pair<const int, int>>>

This is not an instantiation need to translate, so skip it.

@nunoplopes
nunoplopes merged commit 81ede84 into Cpp2Rust:master Nov 17, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants