File tree Expand file tree Collapse file tree
src/tools/clippy/tests/ui
borrow_interior_mutable_const
declare_interior_mutable_const Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
55use std:: borrow:: Cow ;
66use std:: cell:: { Cell , UnsafeCell } ;
Original file line number Diff line number Diff line change 11#![ warn( clippy:: declare_interior_mutable_const) ]
2-
2+ #! [ allow ( interior_mutable_consts ) ]
33use std:: borrow:: Cow ;
44use std:: cell:: Cell ;
55use std:: fmt:: Display ;
Original file line number Diff line number Diff line change 11//@ run-pass
22#![ allow( dead_code) ]
3+ #![ allow( interior_mutable_consts) ]
34//@ aux-build:issue-17718-aux.rs
45
56extern crate issue_17718_aux as other;
You can’t perform that action at this time.
0 commit comments