File tree 3 files changed +3
-2
lines changed
src/tools/clippy/tests/ui
borrow_interior_mutable_const
declare_interior_mutable_const
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
#![ deny( clippy:: borrow_interior_mutable_const) ]
2
2
#![ allow( clippy:: declare_interior_mutable_const, clippy:: needless_borrow) ]
3
- #![ allow( const_item_mutation) ]
3
+ #![ allow( const_item_mutation, interior_mutable_consts ) ]
4
4
5
5
use std:: borrow:: Cow ;
6
6
use std:: cell:: { Cell , UnsafeCell } ;
Original file line number Diff line number Diff line change 1
1
#![ warn( clippy:: declare_interior_mutable_const) ]
2
-
2
+ #! [ allow ( interior_mutable_consts ) ]
3
3
use std:: borrow:: Cow ;
4
4
use std:: cell:: Cell ;
5
5
use std:: fmt:: Display ;
Original file line number Diff line number Diff line change 1
1
//@ run-pass
2
2
#![ allow( dead_code) ]
3
+ #![ allow( interior_mutable_consts) ]
3
4
//@ aux-build:issue-17718-aux.rs
4
5
5
6
extern crate issue_17718_aux as other;
You can’t perform that action at this time.
0 commit comments