Skip to content

Commit 9be8eff

Browse files
committed
impl IntoDiagArg for AttrPath
1 parent 57e620e commit 9be8eff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_hir/src/hir.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,12 @@ pub struct AttrPath {
11611161
pub span: Span,
11621162
}
11631163

1164+
impl IntoDiagArg for AttrPath {
1165+
fn into_diag_arg(self, path: &mut Option<std::path::PathBuf>) -> DiagArgValue {
1166+
self.to_string().into_diag_arg(path)
1167+
}
1168+
}
1169+
11641170
impl AttrPath {
11651171
pub fn from_ast(path: &ast::Path) -> Self {
11661172
AttrPath {

0 commit comments

Comments
 (0)