rust-analyzer默认不显示对应feature没有启用的代码,这部分代码被rust-analyzer定义为inactive-code。如果想关掉该功能,可以添加如下配置到编辑器配置文件里面:
{
"rust-analyzer.diagnostics.disabled": [
"inactive-code"
]
}
VSCode添加到setttings.json,其他编辑器查看对应插件配置说明。
rust-analyzer默认不显示对应feature没有启用的代码,这部分代码被rust-analyzer定义为inactive-code。如果想关掉该功能,可以添加如下配置到编辑器配置文件里面:
{
"rust-analyzer.diagnostics.disabled": [
"inactive-code"
]
}
VSCode添加到setttings.json,其他编辑器查看对应插件配置说明。