about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-05 08:22:24 +0200
committerGitHub <noreply@github.com>2024-08-05 08:22:24 +0200
commit227944defdf408bb8c9788a7d4107cd913eacfbf (patch)
tree601515b57a6e2b3766b6f438c2b3b3d9266e7f2e
parent74df517b90c384d2a984961b29e153fc43a40a47 (diff)
parent249afea2ff4a1e3cfbe5f40c42c6f84938ee3143 (diff)
downloadrust-227944defdf408bb8c9788a7d4107cd913eacfbf.tar.gz
rust-227944defdf408bb8c9788a7d4107cd913eacfbf.zip
Rollup merge of #128630 - bvanjoi:resolve-comment, r=petrochenkov
docs(resolve): more explain about `target`

r? ```````@petrochenkov```````
-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>>>,