Skip to content

Commit f752e4b

Browse files
committed
chore(lab/1): add tip for duplicate lang item
1 parent 894d8ba commit f752e4b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/labs/0x01/tasks.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,16 @@ unsafe {
219219

220220
## UART 与日志输出
221221

222+
!!! tip "rust-analyzer 总是提示有重复 `panic_handler` 的错误?"
223+
224+
通过 VSCode 配置项:`rust-analyzer.cargo.target` 来指定目标平台,避免 rust-analyzer 猜测你的目标架构为 `uefi`:
225+
226+
```json
227+
{
228+
"rust-analyzer.cargo.target": "x86_64-unknown-none"
229+
}
230+
```
231+
222232
### 串口驱动
223233

224234
[UART 串口通信](../../wiki/uart.md) 部分中介绍了 UART 的基本原理,以及相关的基础知识。在这一部分实验中,你将会实现一个简单的串口驱动,并将其用于内核的日志输出。

0 commit comments

Comments
 (0)