Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer ptr.add([usize]) over ptr.offset([usize] as isize) #3047

Open
2 of 4 tasks
frewsxcv opened this issue Aug 13, 2018 · 0 comments
Open
2 of 4 tasks

Prefer ptr.add([usize]) over ptr.offset([usize] as isize) #3047

frewsxcv opened this issue Aug 13, 2018 · 0 comments
Labels
A-lint Area: New lints

Comments

@frewsxcv
Copy link
Member

frewsxcv commented Aug 13, 2018

Checklist

  • Prefer ptr.add([usize]) over ptr.offset([usize] as isize)
  • Prefer ptr.sub([usize]) over ptr.offset(-([usize] as isize))
  • Prefer ptr.wrapping_add([usize]) over ptr.wrapping_offset([usize] as isize)
  • Prefer ptr.wrapping_sub([usize]) over ptr.wrapping_offset(-([usize] as isize))

API links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints
Projects
None yet
Development

No branches or pull requests

2 participants