summaryrefslogtreecommitdiff
path: root/src/ir/comp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/comp.rs')
-rw-r--r--src/ir/comp.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir/comp.rs b/src/ir/comp.rs
index 6dfc9980..4854949f 100644
--- a/src/ir/comp.rs
+++ b/src/ir/comp.rs
@@ -1,6 +1,7 @@
//! Compound types (unions and structs) in our intermediate representation.
use super::annotations::Annotations;
+use super::comment;
use super::context::{BindgenContext, ItemId};
use super::derive::{CanDeriveCopy, CanDeriveDebug, CanDeriveDefault};
use super::dot::DotAttributes;
@@ -1101,7 +1102,7 @@ impl CompInfo {
Some(potential_id),
ctx);
- let comment = cur.raw_comment();
+ let comment = cur.raw_comment().map(comment::preprocess);
let annotations = Annotations::new(&cur);
let name = cur.spelling();
let is_mutable = cursor.is_mutable_field();