diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-08-16 18:07:20 +0200 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-08-21 13:15:30 +0200 |
| commit | 9be8effb3f7636521d0d177fe23504bd69094ba3 (patch) | |
| tree | 053fefe1e7a0193964a52424077b3dc0290a4fd7 | |
| parent | 57e620e56b718abaf47f18e1e20a3cc3480b258b (diff) | |
| download | rust-9be8effb3f7636521d0d177fe23504bd69094ba3.tar.gz rust-9be8effb3f7636521d0d177fe23504bd69094ba3.zip | |
impl IntoDiagArg for AttrPath
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index 39696f74d51..e397c286de2 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -1161,6 +1161,12 @@ pub struct AttrPath { pub span: Span, } +impl IntoDiagArg for AttrPath { + fn into_diag_arg(self, path: &mut Option<std::path::PathBuf>) -> DiagArgValue { + self.to_string().into_diag_arg(path) + } +} + impl AttrPath { pub fn from_ast(path: &ast::Path) -> Self { AttrPath { |
