diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-03-14 16:08:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-14 16:08:03 +0800 |
| commit | 3d9bf08289176c2185aee3a7a864e165f1717af4 (patch) | |
| tree | 478858b36091b857f8213f72f15ae300e41d963d /compiler/rustc_codegen_ssa/src/assert_module_sources.rs | |
| parent | a863f2c6b22a6bc7b9a85d7e7ff0534ab0e10a05 (diff) | |
| parent | 7bde17630561c8df94676cb6950b27c648de0e54 (diff) | |
| download | rust-3d9bf08289176c2185aee3a7a864e165f1717af4.tar.gz rust-3d9bf08289176c2185aee3a7a864e165f1717af4.zip | |
Merge pull request #2283 from jieyouxu/sync
Rustc pull
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/assert_module_sources.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/assert_module_sources.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/assert_module_sources.rs b/compiler/rustc_codegen_ssa/src/assert_module_sources.rs index da9f8d69297..3710625ac12 100644 --- a/compiler/rustc_codegen_ssa/src/assert_module_sources.rs +++ b/compiler/rustc_codegen_ssa/src/assert_module_sources.rs @@ -63,7 +63,7 @@ pub fn assert_module_sources(tcx: TyCtxt<'_>, set_reuse: &dyn Fn(&mut CguReuseTr }, }; - for attr in tcx.hir().attrs(rustc_hir::CRATE_HIR_ID) { + for attr in tcx.hir_attrs(rustc_hir::CRATE_HIR_ID) { ams.check_attr(attr); } @@ -211,7 +211,7 @@ impl fmt::Display for CguReuse { } impl IntoDiagArg for CguReuse { - fn into_diag_arg(self) -> DiagArgValue { + fn into_diag_arg(self, _: &mut Option<std::path::PathBuf>) -> DiagArgValue { DiagArgValue::Str(Cow::Owned(self.to_string())) } } |
