Add Mutability::{is_mut,is_not}
This commit is contained in:
parent
9b9c7d0ecc
commit
da40965300
14 changed files with 29 additions and 26 deletions
|
@ -621,7 +621,7 @@ impl<'tcx> Printer<'tcx> for &mut SymbolMangler<'tcx> {
|
|||
});
|
||||
|
||||
match inner_ty.kind() {
|
||||
ty::Str if *mutbl == hir::Mutability::Not => {
|
||||
ty::Str if mutbl.is_not() => {
|
||||
match ct.kind() {
|
||||
ty::ConstKind::Value(valtree) => {
|
||||
let slice =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue