We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6480b76 commit 912ee65Copy full SHA for 912ee65
compiler/rustc_middle/src/thir.rs
@@ -788,10 +788,8 @@ pub enum PatKind<'tcx> {
788
value: mir::Const<'tcx>,
789
},
790
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.
+ /// Pattern obtained by converting a constant (inline or named) to its pattern
+ /// representation using `const_to_pat`.
795
ExpandedConstant {
796
/// [DefId] of the constant, we need this so that we have a
797
/// reference that can be used by unsafety checking to visit nested
0 commit comments