mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 14:57:49 +00:00
Fix dead links
This commit is contained in:
@@ -55,7 +55,7 @@ error[E0152]: duplicate lang item found: `panic_impl`.
|
||||
|
||||
The problem is that unit tests are built for the host machine, with the `std` library included. This makes sense because they should be able to run as a normal application on the host operating system. Since the standard library has it's own `panic_handler` function, we get the above error. To fix it, we use [conditional compilation] to include our implementation of the panic handler only in non-test environments:
|
||||
|
||||
[conditional compilation]: https://doc.rust-lang.org/reference/attributes.html#conditional-compilation
|
||||
[conditional compilation]: https://doc.rust-lang.org/reference/conditional-compilation.html
|
||||
|
||||
|
||||
```rust
|
||||
|
||||
@@ -280,7 +280,7 @@ Now QEMU runs completely in the background and no window is opened anymore. This
|
||||
Right now we're doing the serial output and the QEMU exit from the `_start` function in our `main.rs` and can no longer run our kernel in a normal way. We could try to fix this by adding an `integration-test` [cargo feature] and using [conditional compilation]:
|
||||
|
||||
[cargo feature]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section
|
||||
[conditional compilation]: https://doc.rust-lang.org/reference/attributes.html#conditional-compilation
|
||||
[conditional compilation]: https://doc.rust-lang.org/reference/conditional-compilation.html
|
||||
|
||||
```toml
|
||||
# in Cargo.toml
|
||||
|
||||
Reference in New Issue
Block a user