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

Prevent incorrect cast_lossless suggestion in const_fn #3700

Merged
Commits on Jan 26, 2019
  1. Prevent incorrect cast_lossless suggestion in const_fn

    phansch committed Jan 26, 2019
    `::from` is not a const fn, so applying the suggestion of
    `cast_lossless` would fail to compile. The fix is to skip the lint if
    the cast is found inside a const fn.
You can’t perform that action at this time.