diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-07 08:56:23 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-08 07:34:59 +0000 |
| commit | 4a8773a3afce505ee861ba342ff9217caf9dfee8 (patch) | |
| tree | 1a951f37b9e2b7222d28c2a5f7a4d7d3a7f9abd9 /src/librustdoc/clean/utils.rs | |
| parent | c9365dd09f30ff2df8fd335e80b82202ba9f8a85 (diff) | |
| download | rust-4a8773a3afce505ee861ba342ff9217caf9dfee8.tar.gz rust-4a8773a3afce505ee861ba342ff9217caf9dfee8.zip | |
Rename PatKind::Lit to Expr
Diffstat (limited to 'src/librustdoc/clean/utils.rs')
| -rw-r--r-- | src/librustdoc/clean/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/utils.rs b/src/librustdoc/clean/utils.rs index 1fb35750c15..99e88f878fb 100644 --- a/src/librustdoc/clean/utils.rs +++ b/src/librustdoc/clean/utils.rs @@ -314,9 +314,9 @@ pub(crate) fn name_from_pat(p: &hir::Pat<'_>) -> Symbol { PatKind::Box(p) => return name_from_pat(p), PatKind::Deref(p) => format!("deref!({})", name_from_pat(p)), PatKind::Ref(p, _) => return name_from_pat(p), - PatKind::Lit(..) => { + PatKind::Expr(..) => { warn!( - "tried to get argument name from PatKind::Lit, which is silly in function arguments" + "tried to get argument name from PatKind::Expr, which is silly in function arguments" ); return Symbol::intern("()"); } |
