mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
review comment: modify doc comment
This commit is contained in:
parent
6480b76e45
commit
912ee65ccd
@ -788,10 +788,8 @@ pub enum PatKind<'tcx> {
|
|||||||
value: mir::Const<'tcx>,
|
value: mir::Const<'tcx>,
|
||||||
},
|
},
|
||||||
|
|
||||||
/// Inline or named constant found while lowering a pattern.
|
/// Pattern obtained by converting a constant (inline or named) to its pattern
|
||||||
///
|
/// representation using `const_to_pat`.
|
||||||
/// We only mark patterns referencing constants when they are bare names that could have been
|
|
||||||
/// new bindings if the `const` didn't exist.
|
|
||||||
ExpandedConstant {
|
ExpandedConstant {
|
||||||
/// [DefId] of the constant, we need this so that we have a
|
/// [DefId] of the constant, we need this so that we have a
|
||||||
/// reference that can be used by unsafety checking to visit nested
|
/// reference that can be used by unsafety checking to visit nested
|
||||||
|
Loading…
Reference in New Issue
Block a user