rust/crates
bors a5b89fffb6 Auto merge of #16391 - alibektas:15656/renaming_allowed_by_config, r=Veykril
Add a new config to allow renaming of non-local defs

With #15656 we started disallowing renaming of non-local items. Although this makes sense there are some false positives that impacted users' workflows. So this config aims to mitigate this by giving users the liberty to disable this feature.

The reason why this is a draft is that I saw one of the tests fail and I am not sure if the "got" result even syntactically makes sense

Test case is :

```rust
check(
            "Baz",
            r#"
//- /lib.rs crate:lib new_source_root:library
pub struct S;
//- /main.rs crate:main deps:lib new_source_root:local
use lib::S$0;
"#,
            "use lib::Baz;"
);
```

```
Left:
use lib::Baz;

Right:
use lib::Baz;Baz

Diff:
use lib::Baz;Baz
```
2024-01-18 13:49:14 +00:00
..
base-db internal: Add unstable config for loading the sysroot sources via cargo metadata 2024-01-15 09:59:32 +01:00
cfg Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
flycheck Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
hir minor: Make use of some new SmolStr improvements 2024-01-17 13:47:15 +01:00
hir-def feat: Show notable trait impls on hover 2024-01-16 19:17:33 +01:00
hir-expand minor: Make use of some new SmolStr improvements 2024-01-17 13:47:15 +01:00
hir-ty fix: Make value_ty query fallible 2024-01-16 12:09:40 +01:00
ide Auto merge of #16391 - alibektas:15656/renaming_allowed_by_config, r=Veykril 2024-01-18 13:49:14 +00:00
ide-assists Auto merge of #16378 - roife:fix/issue-15470, r=Veykril 2024-01-17 08:43:13 +00:00
ide-completion Auto merge of #16349 - Young-Flash:use_error_recovery, r=Veykril 2024-01-18 09:52:37 +00:00
ide-db Auto merge of #16391 - alibektas:15656/renaming_allowed_by_config, r=Veykril 2024-01-18 13:49:14 +00:00
ide-diagnostics Add a new config to allow renaming of non-local items 2024-01-18 00:26:22 +01:00
ide-ssr Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
intern Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
limit Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
load-cargo fix: Fix progress reporting getting stuck 2024-01-17 13:23:00 +01:00
mbe minor: Make use of some new SmolStr improvements 2024-01-17 13:47:15 +01:00
parser Auto merge of #16349 - Young-Flash:use_error_recovery, r=Veykril 2024-01-18 09:52:37 +00:00
paths Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
proc-macro-api Auto merge of #16312 - Veykril:win-proc-macro-srv, r=Veykril 2024-01-09 10:12:57 +00:00
proc-macro-srv Remove sysroot-abi feature flag from proc-macro-test 2024-01-10 09:53:12 +01:00
proc-macro-srv-cli Recognize proc macro server unexpectedly exiting and report the exit code 2024-01-09 10:37:26 +01:00
profile Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
project-model Auto merge of #15868 - wasd96040501:fix/symlink2, r=Veykril 2024-01-16 09:23:54 +00:00
rust-analyzer Auto merge of #16391 - alibektas:15656/renaming_allowed_by_config, r=Veykril 2024-01-18 13:49:14 +00:00
sourcegen Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
span Impl fmt::Display for Span 2024-01-16 10:46:09 +01:00
stdx move is_upper_snake_case to stdx 2024-01-16 13:37:22 +03:00
syntax minor: Make use of some new SmolStr improvements 2024-01-17 13:47:15 +01:00
test-fixture Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
test-utils feat: Show notable trait impls on hover 2024-01-16 19:17:33 +01:00
text-edit Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
toolchain Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
tt Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-from-ra2 2024-01-03 11:35:07 +02:00
vfs fix: Fix progress reporting getting stuck 2024-01-17 13:23:00 +01:00
vfs-notify fix: Fix progress reporting getting stuck 2024-01-17 13:23:00 +01:00