Skip to content

Commit 912ee65

Browse files
committed
review comment: modify doc comment
1 parent 6480b76 commit 912ee65

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler/rustc_middle/src/thir.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -788,10 +788,8 @@ pub enum PatKind<'tcx> {
788788
value: mir::Const<'tcx>,
789789
},
790790

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

0 commit comments

Comments
 (0)