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 borrow_interior_mutable_const
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.5k
Code
Issues
2.3k
Pull requests
183
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
borrow_interior_mutable_const
is:issue borrow_interior_mutable_const
Search
Labels
Milestones
New issue
Search results
Open
Closed
<code>declare_interior_mutable_const</code> (and <code>borrow_interior_mutable_const</code>?) should probably use <code>Freeze</code>
Status: Not planned (skipped).
#14222
In rust-lang/rust-clippy;
·
by
GrigorenkoPV
was closed
on Feb 17, 2025
FN in clippy::borrow_interior_mutable_const
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
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).
#12979
In rust-lang/rust-clippy;
·
by
saethlin
was closed
on May 16, 2025
LazyCell and interior mutable
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).
#10372
In rust-lang/rust-clippy;
·
by
hellow554
was closed
on Feb 20, 2023
Interior mutable const lints trigger on HeaderValue constants
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).
#7752
In rust-lang/rust-clippy;
·
by
sfackler
was closed
on Apr 20, 2024
Most commonly ignored lints on crates.io
A-category
Area: Categorization of lints
Area: Categorization of lints
C-tracking-issue
Category: Tracking Issue
Category: Tracking Issue
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: Closed (completed).
#7666
In rust-lang/rust-clippy;
·
by
dtolnay
was closed
on Oct 9, 2022
declare_interior_mutable_const triggers on array initializer
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
Status: Open.
#7665
In rust-lang/rust-clippy;
·
quaternic
opened
on Sep 11, 2021
[Roadmap] Lint groups
A-category
Area: Categorization of lints
Area: Categorization of lints
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
C-tracking-issue
Category: Tracking Issue
Category: Tracking Issue
P-low
Priority: Low
Priority: Low
Status: Open.
#6626
In rust-lang/rust-clippy;
·
flip1995
opened
on Jan 22, 2021
Clippy interprets <code>Bytes</code> type incorrectly as interior mutable which triggers errors on several lints
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
Status: Closed (completed).
#5812
In rust-lang/rust-clippy;
·
by
Matthias247
was closed
on Nov 20, 2023
borrow_interior_mutable_const should ignore UnsafeCells behind pointers
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
Call for participation: Medium difficulty level problem and requires some initial experience.
Status: Closed (completed).
#5796
In rust-lang/rust-clippy;
·
by
daboross
was closed
on Aug 26, 2020
declare_interior_mutable_const and borrow_interior_mutable_const need to respect enum variants
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
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
Status: Closed (completed).
#3962
In rust-lang/rust-clippy;
·
by
devsnek
was closed
on Nov 7, 2020
borrow_interior_mutable_const interacts poorly with the http crate
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
Status: Closed (completed).
#3825
In rust-lang/rust-clippy;
·
by
sfackler
was closed
on Nov 7, 2020
You can’t perform that action at this time.