False positive: myvec.as_ptr() allegedly doesn't exist for MSRV < 1.37 #13473
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
I'm getting the MSRV lint below even though
rustc
1.31 compiles the code without complaints.I guess this is because
slice::as_ptr()
was used via auto-dereferencing beforeVec::as_ptr()
was introduced inrustc
1.37.Lint Name
incompatible_msrv
Reproducer
I tried this code (where
v
is aVec
):I saw this happen:
Here's the CI log: https://github.com/mgeier/rsor/actions/runs/10656041863/job/30803245005
I expected to see this happen:
No error.
Version
No response
Additional Labels
No response
The text was updated successfully, but these errors were encountered: