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 21da42c commit 8b6529eCopy full SHA for 8b6529e
clippy_lints/src/ptr_eq.rs
@@ -74,7 +74,7 @@ impl LateLintPass<'_> for PtrEq {
74
}
75
76
77
-// If the given expression is a cast to an usize, return the lhs of the cast
+// If the given expression is a cast to a usize, return the lhs of the cast
78
// E.g., `foo as *const _ as usize` returns `foo as *const _`.
79
fn expr_as_cast_to_usize<'tcx>(cx: &LateContext<'tcx>, cast_expr: &'tcx Expr<'_>) -> Option<&'tcx Expr<'tcx>> {
80
if cx.typeck_results().expr_ty(cast_expr) == cx.tcx.types.usize {
0 commit comments