about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-18 13:49:14 +0000
committerbors <bors@rust-lang.org>2024-01-18 13:49:14 +0000
commita5b89fffb6619d0cf827981c753debf4ac8eec15 (patch)
tree39d45d8745c89294b00fdfbe275c98bf8eaa3760 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent1ab8c7fd270649e90de9d46e8068ec78738d6676 (diff)
parent21020919e35fc1a973edfe800f921803009d6e2d (diff)
downloadrust-a5b89fffb6619d0cf827981c753debf4ac8eec15.tar.gz
rust-a5b89fffb6619d0cf827981c753debf4ac8eec15.zip
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
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions