about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-06 19:40:10 +0100
committerGitHub <noreply@github.com>2024-02-06 19:40:10 +0100
commit054fa0b6081bd0e9a162fd5be97392ff490ad93c (patch)
tree786313b8a523afdef788176eafc6c9bf621630d1
parentcee621203e0be5248ac35529b91d76d9fbf53ead (diff)
parentf32aa1aef991d70c5d3a72a2d35fe65a99348d48 (diff)
downloadrust-054fa0b6081bd0e9a162fd5be97392ff490ad93c.tar.gz
rust-054fa0b6081bd0e9a162fd5be97392ff490ad93c.zip
Rollup merge of #120673 - klensy:typo2, r=compiler-errors
rustc_metadata: fix typo
-rw-r--r--compiler/rustc_metadata/src/rmeta/encoder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs
index 542caf86223..85631bd8edb 100644
--- a/compiler/rustc_metadata/src/rmeta/encoder.rs
+++ b/compiler/rustc_metadata/src/rmeta/encoder.rs
@@ -386,7 +386,7 @@ impl<'a, 'tcx> TyEncoder for EncodeContext<'a, 'tcx> {
     }
 }
 
-// Shorthand for `$self.$tables.$table.set_some($def_id.index, $self.lazy_value($value))`, which would
+// Shorthand for `$self.$tables.$table.set_some($def_id.index, $self.lazy($value))`, which would
 // normally need extra variables to avoid errors about multiple mutable borrows.
 macro_rules! record {
     ($self:ident.$tables:ident.$table:ident[$def_id:expr] <- $value:expr) => {{
@@ -398,7 +398,7 @@ macro_rules! record {
     }};
 }
 
-// Shorthand for `$self.$tables.$table.set_some($def_id.index, $self.lazy_value($value))`, which would
+// Shorthand for `$self.$tables.$table.set_some($def_id.index, $self.lazy_array($value))`, which would
 // normally need extra variables to avoid errors about multiple mutable borrows.
 macro_rules! record_array {
     ($self:ident.$tables:ident.$table:ident[$def_id:expr] <- $value:expr) => {{