about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbohan <bohan-zhang@foxmail.com>2024-08-04 15:38:11 +0800
committerbohan <bohan-zhang@foxmail.com>2024-08-04 15:38:11 +0800
commit249afea2ff4a1e3cfbe5f40c42c6f84938ee3143 (patch)
treece0b6950214934efc8a0f395321ff87a15b4223b
parentb389b0ab72cb0aa9acf4df0ae0c0e12090782da9 (diff)
downloadrust-249afea2ff4a1e3cfbe5f40c42c6f84938ee3143.tar.gz
rust-249afea2ff4a1e3cfbe5f40c42c6f84938ee3143.zip
docs(resolve): more explain about `target`
-rw-r--r--compiler/rustc_resolve/src/imports.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs
index 0fa5cde9424..c7af21027b8 100644
--- a/compiler/rustc_resolve/src/imports.rs
+++ b/compiler/rustc_resolve/src/imports.rs
@@ -48,6 +48,7 @@ pub(crate) enum ImportKind<'a> {
         /// `source` in `use prefix::source as target`.
         source: Ident,
         /// `target` in `use prefix::source as target`.
+        /// It will directly use `source` when the format is `use prefix::source`.
         target: Ident,
         /// Bindings to which `source` refers to.
         source_bindings: PerNS<Cell<Result<NameBinding<'a>, Determinacy>>>,