about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-03-28 22:31:20 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-03-31 15:41:48 +0300
commit54bb849affcbede09ab1327c6cd996e5c5948cdd (patch)
treef300a4c0911d4c95c66534e2bc29e723e576cf23 /compiler/rustc_resolve/src
parent10a76d634781180b4f5402c519f0c237d3be6ee6 (diff)
downloadrust-54bb849affcbede09ab1327c6cd996e5c5948cdd.tar.gz
rust-54bb849affcbede09ab1327c6cd996e5c5948cdd.zip
hygiene: Rename semi-transparent to semi-opaque
The former is just too long, see the examples in `hygiene.rs`

Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs
index 612e091770f..1eac3f848b6 100644
--- a/compiler/rustc_resolve/src/lib.rs
+++ b/compiler/rustc_resolve/src/lib.rs
@@ -1998,16 +1998,16 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
                 result,
                 result.map(|r| r.expn_data())
             );
-            // Then find the last semi-transparent mark from the end if it exists.
+            // Then find the last semi-opaque mark from the end if it exists.
             for (mark, transparency) in iter {
-                if transparency == Transparency::SemiTransparent {
+                if transparency == Transparency::SemiOpaque {
                     result = Some(mark);
                 } else {
                     break;
                 }
             }
             debug!(
-                "resolve_crate_root: found semi-transparent mark {:?} {:?}",
+                "resolve_crate_root: found semi-opaque mark {:?} {:?}",
                 result,
                 result.map(|r| r.expn_data())
             );