about summary refs log tree commit diff
path: root/tests/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-19 12:03:31 +0000
committerbors <bors@rust-lang.org>2024-02-19 12:03:31 +0000
commitac1029fac3fe7d2c76cf2df71e0614fdb9683d51 (patch)
treed9b94f9b119986d72a94c80dfe7a7ce3fb83b7c1 /tests/debuginfo/enum-thinlto.rs
parentff8fe522e899b00f363adb46bc81c9ef75af9b7e (diff)
parent6dd5dc10ef2a7e305045657a9b71662a53884f9f (diff)
downloadrust-ac1029fac3fe7d2c76cf2df71e0614fdb9683d51.tar.gz
rust-ac1029fac3fe7d2c76cf2df71e0614fdb9683d51.zip
Auto merge of #16489 - UserIsntAvailable:feat/use-import-alias, r=Veykril
feat!: create alias when renaming an import.

![gif](https://github.com/rust-lang/rust-analyzer/assets/57047985/c593d9a8-b8a0-4e13-9e50-a69c7d0d8749)

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