()
| 1916 | } |
| 1917 | }, |
| 1918 | _ => None, |
| 1919 | } |
| 1920 | } |
| 1921 | |
| 1922 | /// Extract head constant's display form as a string, for diagnostic |
| 1923 | /// prefix matching. Uses `{kid}`'s Display impl (which is defined for |
| 1924 | /// every `KernelMode`), not the inner `Name` which only has Display in |
| 1925 | /// Meta mode. Returns `None` if the head isn't a `Const`. |
| 1926 | fn head_const_name<M: KernelMode>(e: &KExpr<M>) -> Option<String> { |
| 1927 | let id = head_const_id(e)?; |
nothing calls this directly
no test coverage detected