about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-07-30Formattinghuntc-6/+6
2024-07-30Outdated comment removedhuntc-7/+6
2024-07-30Auto merge of #17735 - alibektas:ratoml_workspaces, r=Veykrilbors-276/+337
feat: Introduce workspace `rust-analyzer.toml`s In order to globally configure a project it was, prior to this PR, possible to have a `ratoml` at the root path of a project. This is not the case anymore. Instead we now let ratoml files that are placed at the root of any workspace have a new scope called `workspace`. Although there is not a difference between a `workspace` scope and and a `global` scope, future PRs will change that.
2024-07-30Further simplificationshuntc-16/+10
2024-07-30Auto merge of #17742 - Veykril:wrong-retries, r=Veykrilbors-4/+3
fix: Fix incorrect retrying of inlay hint requests
2024-07-30Checks date for any RAhuntc-20/+22
2024-07-30Auto merge of #3770 - oli-obk:duplicator, r=oli-obkbors-33/+37
Some FileDescriptor/FileDescription refactorings follow-up to https://github.com/rust-lang/miri/pull/3763#discussion_r1694866428 I opted not to change the method names, as I think they are already pretty good (and the common one is the short name), and the docs should explain what they actually do, but if you feel like the names you proposed would be better, I'll just do that.
2024-07-30fix: Fix incorrect retrying of inlay hint requestsLukas Wirth-4/+3
2024-07-30Auto merge of #17741 - Veykril:include-raw, r=Veykrilbors-2/+14
fix: Fix builtin includes rejecting raw string literals Fixes https://github.com/rust-lang/rust-analyzer/issues/17701
2024-07-30fix: Fix builtin includes rejecting raw string literalsLukas Wirth-2/+14
2024-07-30Auto merge of #3759 - newpavlov:flock, r=oli-obkbors-2/+230
Add `flock` shim
2024-07-30Merge from rustcThe Miri Cronjob Bot-376/+493
2024-07-30Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-07-29Rollup merge of #126247 - notriddle:notriddle/word-wrap-item-table, ↵Matthias Krüger-0/+1
r=GuillaumeGomez rustdoc: word wrap CamelCase in the item list table and sidebar This is an alternative to https://github.com/rust-lang/rust/pull/126209. That is, it fixes the issue that affects the very long type names in https://docs.rs/async-stripe/0.31.0/stripe/index.html#structs. This is, necessarily, a pile of nasty heuristics. We need to balance a few issues: - Sometimes, there's no real word break. For example, `BTreeMap` should be `BTree<wbr>Map`, not `B<wbr>Tree<wbr>Map`. - Sometimes, there's a legit word break, but the name is tiny and the HTML overhead isn't worth it. For example, if we're typesetting `TyCtx`, writing `Ty<wbr>Ctx` would have an HTML overhead of 50%. Line breaking inside it makes no sense. # Screenshots | Before | After | | ------ | ----- | | ![image](https://github.com/rust-lang/rust/assets/1593513/d51201fd-46c0-4f48-aee6-a477eadba288) | ![image](https://github.com/rust-lang/rust/assets/1593513/d8e77582-adcf-4966-bbfd-19dfdad7336a)
2024-07-29rewrite link-cfg to rmakeOneirical-1/+0
2024-07-29Fix tidy call in runtest with custom HTML elementMichael Howell-0/+1
2024-07-29Remove clippy errorsAli Bektas-8/+5
2024-07-29rewrite raw-dylib-stdcall-ordinal to rmakeOneirical-1/+0
2024-07-29rewrite raw-dylib-link-ordinal to rmakeOneirical-1/+0
2024-07-29rewrite raw-dylib-import-name-type to rmakeOneirical-1/+0
2024-07-29rewrite share-generics-dylib to rmakeOneirical-1/+0
2024-07-29merge conflicts; fix rebase duplicating importsEtomicBomb-11/+0
2024-07-29file_stem and comment per notriddleEtomicBomb-8/+3
2024-07-29ordering and wrapping cross-crate-info testsEtomicBomb-1/+1
2024-07-29initial implementation of rustdoc nested aux-buildEtomicBomb-34/+87
2024-07-29Auto merge of #17707 - Veykril:proc-macro-err-cleanup, r=Veykrilbors-826/+771
feat: Use spans for builtin and declarative macro expansion errors This should generally improve some error reporting for macro expansion errors. Especially for `compile_error!` within proc-macros
2024-07-29Add missing doc stringLukas Wirth-0/+1
2024-07-29Fix error spans for include! and compile_error!Lukas Wirth-29/+56
2024-07-29Auto merge of #17736 - hyf0:hyf_09234908234, r=Veykrilbors-5/+13
feat(ide-completion): explictly show `async` keyword on `impl trait` methods OLD: <img width="676" alt="image" src="https://github.com/user-attachments/assets/f6fa626f-6b6d-4c22-af27-b0755e7a6bf8"> Now: <img width="684" alt="image" src="https://github.com/user-attachments/assets/efbaac0e-c805-4dd2-859d-3e44b2886dbb"> --- This is an preparation for https://github.com/rust-lang/rust-analyzer/issues/17719. ```rust use std::future::Future; trait DesugaredAsyncTrait { fn foo(&self) -> impl Future<Output = usize> + Send; fn bar(&self) -> impl Future<Output = usize> + Send; } struct Foo; impl DesugaredAsyncTrait for Foo { fn foo(&self) -> impl Future<Output = usize> + Send { async { 1 } } // async fn bar(&self) -> usize { 1 } } fn main() { let fut = Foo.bar(); fn _assert_send<T: Send>(_: T) {} _assert_send(fut); } ``` If we don't distinguish `async` or not. It would be confusing to generate sugared version `async fn foo ....` and original form `fn foo` for `async fn in trait` that is defined in desugar form.
2024-07-29Make basic use of spans for macro expansion errorsLukas Wirth-328/+387
2024-07-29Add test in `ide-completion/src/tests/item_list.rs`Yunfei-1/+3
2024-07-29Revert "Fix error message"Yunfei-5/+1
This reverts commit 752c49b679afcec7edf5d26d52bf3d164ee7349f.
2024-07-29Auto merge of #17715 - Throne3d:fix/glob-may-override-vis-2, r=Veykrilbors-32/+197
fix: let glob imports override other globs' visibility Follow up to #14930 Fixes #11858 Fixes #14902 Fixes #17704 I haven't reworked the code here at all - I don't feel confident in the codebase to do so - just rebased it onto the current main branch and fixed conflicts. I'm not _entirely_ sure I understand the structure of the `check` function in `crates/hir-def/src/nameres` tests. I think the change to the test expectation from #14930 is correct, marking the `crate::reexport::inner` imports with `i`, and I understand it to mean there's a specific token in the import that we can match it to (in this case, `Trait`, `function` and `makro` of `pub use crate::defs::{Trait, function, makro};` respectively), but I had some trouble understanding the meaning of the different parts of `PerNs` to be sure. Does this make sense? I tested building and using RA locally with `cargo xtask install` and after this change the documentation for `arrow_array::ArrowPrimitiveType` seems to be picked up correctly!
2024-07-29Auto merge of #17722 - joshka:jm/logs, r=Veykrilbors-44/+46
feat: use vscode log format for client logs This change updates the log format to use the vscode log format instead of the custom log format, by replacing the `OutputChannel` with a `LogOutputChannel` and using the `debug`, `info`, `warn`, and `error` methods on it. This has the following benefits: - Each log level now has its own color and the timestamp is in a more standard format - Inspect output (e.g. the log of the config object) is now colored - Error stack traces are now shown in the output - The log level is now controlled on the output tab by clicking the gear icon and selecting "Debug" or by passing the `--log` parameter to vscode. The `trace.extension` setting has been marked as deprecated. Motivation: The large uncolored unformatted log output with a large config object logged whenever it changes has always dominated the logs. This subjectively has made it that looking to see what the client is doing has always been a bit disappointing. That said, there's only 17 log messages total in the client. Hopefully by making the logs more visually useful this will encourage adding more appropriate debug level messages in future. Incidentally, it might be worth only logging the config change message at a debug level instead of an info level to reduce the noise.
2024-07-29Rename all `file_descriptor` variables to `file_description` to match the ↵Oli Scherer-24/+24
naming scheme of the types
2024-07-29Rename `FileDescriptor` to `FileDescriptionRef`Oli Scherer-8/+8
2024-07-29Split out actual `FileDescriptor` creationOli Scherer-4/+8
2024-07-29Make field private. It is not used outside the module and it should not be ↵Oli Scherer-1/+1
directly accessed anyway
2024-07-29Rollup merge of #128333 - RalfJung:miri-sync, r=RalfJungMatthias Krüger-204/+807
Miri subtree update r? `@ghost`
2024-07-29Rollup merge of #128277 - RalfJung:offset_from_wildcard, r=oli-obkMatthias Krüger-88/+100
miri: fix offset_from behavior on wildcard pointers offset_from wouldn't behave correctly when the "end" pointer was a wildcard pointer (result of an int2ptr cast) just at the end of the allocation. Fix that by expressing the "same allocation" check in terms of two `check_ptr_access_signed` instead of something specific to offset_from, which is both more canonical and works better with wildcard pointers. The second commit just improves diagnostics: I wanted the "pointer is dangling (has no provenance)" message to say how many bytes of memory it expected to see (since if it were 0 bytes, this would actually be legal, so it's good to tell the user that it's not 0 bytes). And then I was annoying that the error looks so different for when you deref a dangling pointer vs an out-of-bounds pointer so I made them more similar. Fixes https://github.com/rust-lang/miri/issues/3767
2024-07-29Cargo fmtYunfei-4/+8
2024-07-29Fix error messageYunfei-1/+5
2024-07-29feat(ide-completion): explictly show `async` keyword on `impl trait`Yunfei-2/+4
2024-07-29Remove unnec copying of source_root_idsAli Bektas-4/+4
2024-07-29add skip_slow_tests to ratoml testsAli Bektas-0/+61
2024-07-29Combine krate_ratoml and workspace_ratomls into oneAli Bektas-162/+163
2024-07-29Reformat `use` declarations.Nicholas Nethercote-267/+314
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-28step cfg(bootstrap)Mark Rousskov-4/+1
2024-07-28Rollup merge of #127860 - klensy:dedup, r=Mark-SimulacrumGuillaume Gomez-2/+2
deps: dedup object, wasmparser, wasm-encoder * dedups one `object`, additional dupe will be removed, with next `thorin-dwp` update * `wasmparser` pinned to minor versions, so full merge isn't possible * same with `wasm-encoder` Turned off some features for `wasmparser` (see features https://github.com/bytecodealliance/wasm-tools/blob/v1.208.1/crates/wasmparser/Cargo.toml) in `run-make-support`, looks working?
2024-07-28dedup objectklensy-2/+2
waiting on thorin-dwp update dedup one wasmparser run-make-support: drop some features for wasmparser dedupe wasm-encoder