Skip to content

Commit

Permalink
review comment: modify doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Nov 17, 2024
1 parent 6480b76 commit 912ee65
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions compiler/rustc_middle/src/thir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,10 +788,8 @@ pub enum PatKind<'tcx> {
value: mir::Const<'tcx>,
},

/// Inline or named constant found while lowering a pattern.
///
/// We only mark patterns referencing constants when they are bare names that could have been
/// new bindings if the `const` didn't exist.
/// Pattern obtained by converting a constant (inline or named) to its pattern
/// representation using `const_to_pat`.
ExpandedConstant {
/// [DefId] of the constant, we need this so that we have a
/// reference that can be used by unsafety checking to visit nested
Expand Down

0 comments on commit 912ee65

Please sign in to comment.