Merge impl_constness and is_const_fn_raw.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user