File tree 5 files changed +4
-18
lines changed
5 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ struct CodegenResult {
41
41
/// The set of generated function/var names, needed because in C/C++ is legal to
42
42
/// do something like:
43
43
///
44
- /// ```
44
+ /// ```c++
45
45
/// extern "C" {
46
46
/// void foo();
47
47
/// extern int bar;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl Annotations {
87
87
///
88
88
/// the generated code would look something like:
89
89
///
90
- /// ```rust
90
+ /// ```c++
91
91
/// /** <div rustbindgen replaces="Bar"></div> */
92
92
/// struct Bar {
93
93
/// int x;
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ impl<'ctx> BindgenContext<'ctx> {
421
421
///
422
422
/// To see an example of what this handles:
423
423
///
424
- /// ```
424
+ /// ```c++
425
425
/// template<typename T>
426
426
/// class Incomplete {
427
427
/// T p;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub trait ItemCanonicalName {
28
28
///
29
29
/// To contrast with canonical_name, here's an example:
30
30
///
31
- /// ```
31
+ /// ```c++
32
32
/// namespace foo {
33
33
/// const BAR = 3;
34
34
/// }
Original file line number Diff line number Diff line change @@ -294,20 +294,6 @@ impl Bindings {
294
294
}
295
295
}
296
296
297
- #[ test]
298
- fn builder_state ( ) {
299
- let logger = DummyLogger ;
300
- let mut build = builder ( ) ;
301
- {
302
- build. header ( "example.h" ) ;
303
- build. link_static ( "m" ) ;
304
- build. log ( & logger) ;
305
- }
306
- assert ! ( build. logger. is_some( ) ) ;
307
- assert ! ( build. options. clang_args. binary_search( & "example.h" . to_owned( ) ) . is_ok( ) ) ;
308
- assert ! ( build. options. links. binary_search( & ( "m" . to_owned( ) , LinkType :: Static ) ) . is_ok( ) ) ;
309
- }
310
-
311
297
/// Determines whether the given cursor is in any of the files matched by the
312
298
/// options.
313
299
fn filter_builtins ( ctx : & BindgenContext , cursor : & clang:: Cursor ) -> bool {
You can’t perform that action at this time.
0 commit comments