Add warn(unreachable_pub)
to rustc_borrowck
.
This commit is contained in:
parent
cb3f435699
commit
0685c97843
18 changed files with 74 additions and 68 deletions
|
@ -1374,7 +1374,7 @@ impl<'tcx> Visitor<'tcx> for BindingFinder {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn mut_borrow_of_mutable_ref(local_decl: &LocalDecl<'_>, local_name: Option<Symbol>) -> bool {
|
||||
fn mut_borrow_of_mutable_ref(local_decl: &LocalDecl<'_>, local_name: Option<Symbol>) -> bool {
|
||||
debug!("local_info: {:?}, ty.kind(): {:?}", local_decl.local_info, local_decl.ty.kind());
|
||||
|
||||
match *local_decl.local_info() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue