Merge impl_constness and is_const_fn_raw.
This commit is contained in:
parent
e62f483842
commit
15b2d1a97c
8 changed files with 52 additions and 63 deletions
|
@ -1859,7 +1859,7 @@ impl CheckAttrVisitor<'_> {
|
|||
) -> bool {
|
||||
match target {
|
||||
Target::Fn | Target::Method(_)
|
||||
if self.tcx.is_const_fn_raw(self.tcx.hir().local_def_id(hir_id)) =>
|
||||
if self.tcx.is_const_fn_raw(self.tcx.hir().local_def_id(hir_id).to_def_id()) =>
|
||||
{
|
||||
true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue