diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-14 16:04:38 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 16:04:38 -0600 |
commit | 17d15da630092b80b50bf155b990347c48793289 (patch) | |
tree | 9fe9a77b6c1f532dffe779e4373d645f9cb45193 | |
parent | 004a19537f1f40e77aacdc13a2f56a8553e63dc9 (diff) | |
parent | d18ec2b587562a4747b6aca29076fc80f8aede54 (diff) |
Auto merge of #254 - fitzgen:warn-when-giving-up-and-assuming-named, r=emilio
Warn when giving up and assuming a named type
When we fail to parse Clang stuff into our IR and give up, and assume
that we are looking at a named template type, we now emit a warning to
assist with debugging.
r? @emilio
-rw-r--r-- | src/ir/item.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/item.rs b/src/ir/item.rs index 691cfec2..e25335bf 100644 --- a/src/ir/item.rs +++ b/src/ir/item.rs @@ -1051,6 +1051,9 @@ impl ClangItemParser for Item { // It's harmless, but if we restrict that, then // tests/headers/nsStyleAutoArray.hpp crashes. if let Err(ParseError::Recurse) = result { + warn!("Unknown type, assuming named template type: id = {:?}; spelling = {}", + id, + ty.spelling()); Ok(Self::named_type_with_id(id, ty.spelling(), None, |