rust/crates/rust-analyzer
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
..
src Auto merge of #16391 - alibektas:15656/renaming_allowed_by_config, r=Veykril 2024-01-18 13:49:14 +00:00
tests/slow-tests fix: failed to infer OUT_DIR when workspace root contains symlink 2024-01-12 13:35:53 +08:00
build.rs Fix typo in build.rs 2022-06-26 10:09:45 +00:00
Cargo.toml internal: speedup LineEndings calculation using 'memchr' 2024-01-18 17:03:29 +08:00