Skip to content

clang: Some partially specialized templates return no template argument count. #194

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

Merged
merged 1 commit into from
Nov 2, 2016

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Nov 2, 2016

Trying to construct a test case, meanwhile: r? @fitzgen

@@ -193,7 +193,7 @@ impl Cursor {
/// Is the referent a fully specialized template specialization without any
/// remaining free template arguments?
pub fn is_fully_specialized_template(&self) -> bool {
self.is_template() && self.num_template_args().unwrap() > 0
self.is_template() && self.num_template_args().unwrap_or(0) > 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave a TODO comment with a reference to the issue that @bholley filed?

@emilio
Copy link
Contributor Author

emilio commented Nov 2, 2016

Added a test and a comment pointing to that issue and this PR.

@bors-servo r=fitzgen

@bors-servo
Copy link

📌 Commit ef59d9e has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit ef59d9e with merge 33d475d...

bors-servo pushed a commit that referenced this pull request Nov 2, 2016
clang: Some partially specialized templates return no template argument count.

Trying to construct a test case, meanwhile: r? @fitzgen
@bors-servo
Copy link

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit ef59d9e into rust-lang:master Nov 2, 2016
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.

4 participants