Skip to content

Commit f1634d8

Browse files
committed
Allow interior_mutable_consts in tests
1 parent b1bc607 commit f1634d8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/tools/clippy/tests/ui/borrow_interior_mutable_const/others.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![deny(clippy::borrow_interior_mutable_const)]
22
#![allow(clippy::declare_interior_mutable_const, clippy::needless_borrow)]
3-
#![allow(const_item_mutation)]
3+
#![allow(const_item_mutation, interior_mutable_consts)]
44

55
use std::borrow::Cow;
66
use std::cell::{Cell, UnsafeCell};

src/tools/clippy/tests/ui/declare_interior_mutable_const/others.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![warn(clippy::declare_interior_mutable_const)]
2-
2+
#![allow(interior_mutable_consts)]
33
use std::borrow::Cow;
44
use std::cell::Cell;
55
use std::fmt::Display;

tests/ui/consts/issue-17718.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ run-pass
22
#![allow(dead_code)]
3+
#![allow(interior_mutable_consts)]
34
//@ aux-build:issue-17718-aux.rs
45

56
extern crate issue_17718_aux as other;

0 commit comments

Comments
 (0)