diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-11-17 23:39:51 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-11-17 23:40:00 +0000 |
| commit | 912ee65ccdad256c855a2ae67925ca7efd2eee99 (patch) | |
| tree | 8b3d51c3f4bd86e486c3c43e4b4f8377af8e91cb | |
| parent | 6480b76e458c14a87ea3c41f1eb96aa141044565 (diff) | |
| download | rust-912ee65ccdad256c855a2ae67925ca7efd2eee99.tar.gz rust-912ee65ccdad256c855a2ae67925ca7efd2eee99.zip | |
review comment: modify doc comment
| -rw-r--r-- | compiler/rustc_middle/src/thir.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/thir.rs b/compiler/rustc_middle/src/thir.rs index d50d2e19f2d..70df2379016 100644 --- a/compiler/rustc_middle/src/thir.rs +++ b/compiler/rustc_middle/src/thir.rs @@ -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 |
