@@ -310,7 +310,7 @@ enum TypeKey {
310310/// A context used during parsing and generation of structs.
311311#[ derive( Debug ) ]
312312pub ( crate ) struct BindgenContext {
313- /// The map of all the items parsed so far, keyed off ItemId.
313+ /// The map of all the items parsed so far, keyed off ` ItemId` .
314314 items : Vec < Option < Item > > ,
315315
316316 /// Clang USR to type map. This is needed to be able to associate types with
@@ -330,7 +330,7 @@ pub(crate) struct BindgenContext {
330330 /// Current module being traversed.
331331 current_module : ModuleId ,
332332
333- /// A HashMap keyed on a type definition, and whose value is the parent ID
333+ /// A ` HashMap` keyed on a type definition, and whose value is the parent ID
334334 /// of the declaration.
335335 ///
336336 /// This is used to handle the cases where the semantic and the lexical
@@ -346,7 +346,7 @@ pub(crate) struct BindgenContext {
346346 /// This means effectively, that a type has a potential ID before knowing if
347347 /// it's a correct type. But that's not important in practice.
348348 ///
349- /// We could also use the `types` HashMap, but my intention with it is that
349+ /// We could also use the `types` ` HashMap` , but my intention with it is that
350350 /// only valid types and declarations end up there, and this could
351351 /// potentially break that assumption.
352352 currently_parsed_types : Vec < PartialType > ,
@@ -355,7 +355,7 @@ pub(crate) struct BindgenContext {
355355 /// hard errors while parsing duplicated macros, as well to allow macro
356356 /// expression parsing.
357357 ///
358- /// This needs to be an std::HashMap because the cexpr API requires it.
358+ /// This needs to be an ` std::HashMap` because the ` cexpr` API requires it.
359359 parsed_macros : StdHashMap < Vec < u8 > , cexpr:: expr:: EvalResult > ,
360360
361361 /// A map with all include locations.
@@ -623,7 +623,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
623623 self . target_info . triple . starts_with ( "wasm32-" )
624624 }
625625
626- /// Creates a timer for the current bindgen phase. If time_phases is `true`,
626+ /// Creates a timer for the current bindgen phase. If ` time_phases` is `true`,
627627 /// the timer will print to stderr when it is dropped, otherwise it will do
628628 /// nothing.
629629 pub ( crate ) fn timer < ' a > ( & self , name : & ' a str ) -> Timer < ' a > {
@@ -1219,7 +1219,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
12191219
12201220 /// When the `__testing_only_extra_assertions` feature is enabled, this
12211221 /// function walks the IR graph and asserts that we do not have any edges
1222- /// referencing an ItemId for which we do not have an associated IR item.
1222+ /// referencing an ` ItemId` for which we do not have an associated IR item.
12231223 fn assert_no_dangling_references ( & self ) {
12241224 if cfg ! ( feature = "__testing_only_extra_assertions" ) {
12251225 for _ in self . assert_no_dangling_item_traversal ( ) {
@@ -1506,7 +1506,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
15061506 /// correct type definition afterwards.
15071507 ///
15081508 /// TODO(emilio): We could consider doing this only when
1509- /// declaration.lexical_parent() != definition.lexical_parent(), but it's
1509+ /// ` declaration.lexical_parent() != definition.lexical_parent()` , but it's
15101510 /// not sure it's worth it.
15111511 pub ( crate ) fn add_semantic_parent (
15121512 & mut self ,
@@ -1593,7 +1593,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
15931593 /// function template declarations(!?!??!).
15941594 ///
15951595 /// The only way to do this is manually inspecting the AST and looking for
1596- /// TypeRefs and TemplateRefs inside. This, unfortunately, doesn't work for
1596+ /// ` TypeRefs` and ` TemplateRefs` inside. This, unfortunately, doesn't work for
15971597 /// more complex cases, see the comment on the assertion below.
15981598 ///
15991599 /// To add insult to injury, the AST itself has structure that doesn't make
@@ -2297,7 +2297,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
22972297 ( module_name, kind)
22982298 }
22992299
2300- /// Given a CXCursor_Namespace cursor, return the item ID of the
2300+ /// Given a ` CXCursor_Namespace` cursor, return the item ID of the
23012301 /// corresponding module, or create one on the fly.
23022302 pub ( crate ) fn module ( & mut self , cursor : Cursor ) -> ModuleId {
23032303 use clang_sys:: * ;
@@ -2806,7 +2806,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
28062806 !self . cannot_derive_hash . as_ref ( ) . unwrap ( ) . contains ( & id)
28072807 }
28082808
2809- /// Compute whether we can derive PartialOrd, PartialEq or Eq .
2809+ /// Compute whether we can derive ` PartialOrd`, ` PartialEq` or `Eq` .
28102810 fn compute_cannot_derive_partialord_partialeq_or_eq ( & mut self ) {
28112811 let _t = self . timer ( "compute_cannot_derive_partialord_partialeq_or_eq" ) ;
28122812 assert ! ( self . cannot_derive_partialeq_or_partialord. is_none( ) ) ;
0 commit comments