rust/crates
bors b1f89a84ab Auto merge of #15600 - davidbarsky:davidbarsky/broken-rustfmt-in-ra, r=Veykril
fix: ensure `rustfmt` runs when configured with `./`

(Hopefully) resolves https://github.com/rust-lang/rust-analyzer/issues/15595. This change kinda approaches canonicalization—which I am not a fan of—but only in service of making `./`-configured commands run correctly.

Longer-term, I feel like this code should be removed once `rustfmt` supports recursive searches of configuration files or interpolation of values like `${workspace_folder}` lands in rust-analyzer.

## Testing

I cloned `rustc`, setup rust-analyzer as suggested in the [`rustc` dev guide](https://rustc-dev-guide.rust-lang.org/building/suggested.html#configuring-rust-analyzer-for-rustc), saved and formatted files in `src/tools/miri` and `compiler`, and saw `rustfmt` (seemingly) correctly.
2023-10-06 11:33:52 +00:00
..
base-db minor: hover_simple refactor 2023-09-24 22:47:29 +02:00
cfg Fix cfg completions not working 2023-09-08 10:49:15 +02:00
flycheck refactor: remove boxing 2023-09-20 23:02:52 +09:00
hir Shrink PatPtr by swapping its AstPtr and Either wrap order 2023-10-06 12:32:37 +02:00
hir-def Shrink PatPtr by swapping its AstPtr and Either wrap order 2023-10-06 12:32:37 +02:00
hir-expand Allocate ast ids for parameters 2023-09-28 13:16:11 +02:00
hir-ty Shrink PatPtr by swapping its AstPtr and Either wrap order 2023-10-06 12:32:37 +02:00
ide Remove repetitive words 2023-10-05 19:40:41 +08:00
ide-assists Auto merge of #15641 - alibektas:15598/fix_into_to_from, r=Veykril 2023-10-05 08:25:58 +00:00
ide-completion Auto merge of #15692 - Veykril:underscore-completions, r=Veykril 2023-09-29 19:08:15 +00:00
ide-db internal: re-generate lints.rs 2023-09-29 14:20:17 +02:00
ide-diagnostics Shrink PatPtr by swapping its AstPtr and Either wrap order 2023-10-06 12:32:37 +02:00
ide-ssr
intern refactor: fix clippy lints 2023-09-15 16:43:21 +09:00
limit
load-cargo
mbe Remove repetitive words 2023-10-05 19:40:41 +08:00
parser Recover better on missing parameter in param list 2023-09-29 12:50:16 +02:00
paths
proc-macro-api
proc-macro-srv
proc-macro-srv-cli
proc-macro-test
profile
project-model Auto merge of #15560 - davidbarsky:davidbarsky/use-sysroot-rustc-to-determine-cfgs, r=Veykril 2023-09-08 18:14:25 +00:00
rust-analyzer Auto merge of #15600 - davidbarsky:davidbarsky/broken-rustfmt-in-ra, r=Veykril 2023-10-06 11:33:52 +00:00
rustc-dependencies Add mock description to rustc-dependencies 2023-10-03 17:32:57 +03:00
sourcegen
stdx Various small fixes 2023-09-22 10:13:51 +02:00
syntax Shrink PatPtr by swapping its AstPtr and Either wrap order 2023-10-06 12:32:37 +02:00
test-utils Fix unused_variables in tests 2023-09-24 23:45:36 +03:30
text-edit
toolchain
tt
vfs Ensure resolved hint's file exists 2023-09-02 18:28:36 +03:00
vfs-notify Update notify to 6.1.1 2023-09-04 18:00:12 +02:00