diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-03-13 11:12:50 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-03-31 18:33:46 +0200 |
| commit | 15b2d1a97c9cefe41bcb61d5faef5682c112172a (patch) | |
| tree | 01f54641d17651da7078f54e0f531d24068570cb /compiler/rustc_passes | |
| parent | e62f4838424208f0f980f6bf95d17610694c80d4 (diff) | |
| download | rust-15b2d1a97c9cefe41bcb61d5faef5682c112172a.tar.gz rust-15b2d1a97c9cefe41bcb61d5faef5682c112172a.zip | |
Merge impl_constness and is_const_fn_raw.
Diffstat (limited to 'compiler/rustc_passes')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index 8aa659fa6ac..7ad87481356 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -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 } |
