Skip to content

Commit

Permalink
Allow interior_mutable_consts in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Oct 25, 2024
1 parent b1bc607 commit f1634d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![deny(clippy::borrow_interior_mutable_const)]
#![allow(clippy::declare_interior_mutable_const, clippy::needless_borrow)]
#![allow(const_item_mutation)]
#![allow(const_item_mutation, interior_mutable_consts)]

use std::borrow::Cow;
use std::cell::{Cell, UnsafeCell};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![warn(clippy::declare_interior_mutable_const)]

#![allow(interior_mutable_consts)]
use std::borrow::Cow;
use std::cell::Cell;
use std::fmt::Display;
Expand Down
1 change: 1 addition & 0 deletions tests/ui/consts/issue-17718.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@ run-pass
#![allow(dead_code)]
#![allow(interior_mutable_consts)]
//@ aux-build:issue-17718-aux.rs

extern crate issue_17718_aux as other;
Expand Down

0 comments on commit f1634d8

Please sign in to comment.