Commit 61ceef5
committed
rust: remove call to
This allows us to use, for example, `Result::unwrap` from example code
and still be able to compile, link, and run the example.
Without this change, an attempt to use `unwrap` in an example results in
the following error when making `rusttest`:
```
rust/kernel/error.rs:360: undefined reference to `errname'
= help: some `extern` functions couldn't be found; some native libraries
may need to be installed or have their path specified
```
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>bindings::errname when building testlib
1 parent e89382e commit 61ceef5
1 file changed
Lines changed: 29 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
355 | 378 | | |
356 | 379 | | |
357 | 380 | | |
358 | 381 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 382 | + | |
363 | 383 | | |
364 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
365 | 389 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 390 | | |
373 | 391 | | |
374 | 392 | | |
| |||
0 commit comments