about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorJoshua Nelson <jyn.nelson@redjack.com>2023-02-17 14:48:25 -0600
committerJoshua Nelson <jyn.nelson@redjack.com>2023-02-17 15:18:09 -0600
commit6209e6c5983f93526da54db1b66beb3f1d658437 (patch)
tree180eb2e1e8e64ff33338f7e15d0c410a0210cac8 /tests/rustdoc-js-std/parser-errors.js
parentf722b24eb9ea35a7cc187a1cb5c50d4d324f5855 (diff)
downloadrust-6209e6c5983f93526da54db1b66beb3f1d658437.tar.gz
rust-6209e6c5983f93526da54db1b66beb3f1d658437.zip
Change src/etc/vscode_settings.json to always treat ./library as the sysroot source
See
https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/False.20error.20report.20for.20.60rust-analyzer.28private-field.29.60
for further discussion; previously this had various bugs.

I tested go-to-definition on:
- `use std::io::Write` in `src/bootstrap/setup.rs`
- `use std::cell::RefCell` in `src/librustdoc/core.rs`
- `use rustc_span::symbol::sym` in `src/librustdoc/core.rs`
- `use std::fmt` in `compiler/rustc_span/src/symbol.rs`
- `Global` in `library/alloc/src/alloc/tests.rs`

The following things still don't work:
- `Global.deallocate` in alloc/tests.rs. This function is under
  `cfg(not(test))`, so it can't be enabled without disabling RA in
  `tests.rs` altogether. I think this might be fixable by moving
  `library/alloc/src/alloc/tests.rs` to
  `library/alloc/tests/alloc/lib.rs`, so it's in a different crate, but
  I'd like to avoid blocking this improvement on that change.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions