Skip to content

Commit

Permalink
Unrolled build for rust-lang#120673
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#120673 - klensy:typo2, r=compiler-errors

rustc_metadata: fix typo
  • Loading branch information
rust-timer committed Feb 6, 2024
2 parents 4a2fe44 + f32aa1a commit f1e2abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_metadata/src/rmeta/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {{
Expand All @@ -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) => {{
Expand Down

0 comments on commit f1e2abe

Please sign in to comment.