Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
GitHub Copilot
Write better code with AI
GitHub Spark
New
Build and deploy intelligent apps
GitHub Models
New
Manage and compare prompts
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
Documentation
GitHub Skills
Blog
Integrations
GitHub Marketplace
MCP Registry
View all features
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
is:issue cast_sign_loss
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
rust-lang
/
rust-clippy
Public
Notifications
You must be signed in to change notification settings
Fork
1.8k
Star
12.6k
Code
Issues
2.3k
Pull requests
198
Discussions
Actions
Projects
0
Wiki
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security
Insights
Most commonly ignored lints on crates.io
#7666 ·
dtolnay
opened
on Sep 13, 2021
23
Issues
Search Issues
is
:
issue
cast_sign_loss
is:issue cast_sign_loss
Search
Labels
Milestones
New issue
Search results
Open
Closed
Documentation of <code>cast_sign_loss</code> does not cover floating point
A-documentation
Area: Adding or improving documentation
Area: Adding or improving documentation
Status: Open.
#15286
In rust-lang/rust-clippy;
·
RunDevelopment
opened
on Jul 16, 2025
Should <code>cast_{un,}signed()</code> be considered an <code>as</code> cast for linting purposes?
S-needs-discussion
Status: Needs further discussion before merging or work can be started
Status: Needs further discussion before merging or work can be started
Status: Open.
#14975
In rust-lang/rust-clippy;
·
ojeda
opened
on Jun 4, 2025
Suggest <code>cast_signed</code> and <code>cast_unsigned</code> instead of <code>as</code>
A-lint
Area: New lints
Area: New lints
Status: Closed (completed).
#14974
In rust-lang/rust-clippy;
·
by
ojeda
was closed
on Sep 11, 2025
Typo in <code>clippy::cast_sign_loss</code> documentation
Status: Closed (completed).
#14465
In rust-lang/rust-clippy;
·
by
benwh1
was closed
on Mar 25, 2025
lint against float -> int casting
A-lint
Area: New lints
Area: New lints
Status: Open.
#14356
In rust-lang/rust-clippy;
·
eric-seppanen
opened
on Mar 5, 2025
Propose fix for <code>cast_sign_loss</code> and <code>cast_possible_wrap</code>
A-documentation
Area: Adding or improving documentation
Area: Adding or improving documentation
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Category: Enhancement of lints, like adding more cases or adding help messages
good first issue
These issues are a good way to get started with Clippy
These issues are a good way to get started with Clippy
Status: Closed (completed).
#14150
In rust-lang/rust-clippy;
·
by
Rua
was closed
on Sep 11, 2025
<code>Cargo clippy --fix</code> introduces compilation errors on <code>rustc 1.79.0-nightly</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Open.
#12565
In rust-lang/rust-clippy;
·
PanieriLorenzo
opened
on Mar 26, 2024
<code>cast_sign_loss</code> doesn't recognize positivity guarantees
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Open.
#12513
In rust-lang/rust-clippy;
·
amab8901
opened
on Mar 20, 2024
Missing link to <code>cast_possible_wrap</code>
Status: Closed (completed).
#11805
In rust-lang/rust-clippy;
·
by
smoelius
was closed
on Nov 15, 2023
max(0) false positive for cast_sign_loss
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Open.
#11799
In rust-lang/rust-clippy;
·
kornelski
opened
on Nov 13, 2023
cast-related lint should warn internal macros
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
good first issue
These issues are a good way to get started with Clippy
These issues are a good way to get started with Clippy
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Issue: The lint should have been triggered on code, but wasn't
Status: Closed (completed).
#11738
In rust-lang/rust-clippy;
·
by
taiki-e
was closed
on Apr 4, 2024
x² shouldn't emit <code>cast_sign_loss</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#11642
In rust-lang/rust-clippy;
·
by
ShE3py
was closed
on Jan 6, 2024
You can’t perform that action at this time.