diff options
| author | bors <bors@rust-lang.org> | 2024-02-19 12:03:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-19 12:03:31 +0000 |
| commit | ac1029fac3fe7d2c76cf2df71e0614fdb9683d51 (patch) | |
| tree | d9b94f9b119986d72a94c80dfe7a7ce3fb83b7c1 /tests/debuginfo/enum-thinlto.rs | |
| parent | ff8fe522e899b00f363adb46bc81c9ef75af9b7e (diff) | |
| parent | 6dd5dc10ef2a7e305045657a9b71662a53884f9f (diff) | |
| download | rust-ac1029fac3fe7d2c76cf2df71e0614fdb9683d51.tar.gz rust-ac1029fac3fe7d2c76cf2df71e0614fdb9683d51.zip | |
Auto merge of #16489 - UserIsntAvailable:feat/use-import-alias, r=Veykril
feat!: create alias when renaming an import.  Closes #15858 Implemented: - [x] - Prevent using `reserved` keywords (e.g self) and `_`. - [x] - Rename other modules that might be referencing the import. - [x] - Fix "broken" tests. - [ ] - Rename **only** "direct" references. - [ ] - Test more cases. Future possibilities: 1. Also support `extern crate <name>` syntax. 2. Allow aliasing `self` when it is inside an `UseTreeList`. ~3. If import path already has an alias, "rename" the alias.~ ~[4. Create alias even if path is not the last path segment.](https://github.com/rust-lang/rust-analyzer/pull/16489#issuecomment-1930541697)~
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
