We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e620e commit 9be8effCopy full SHA for 9be8eff
compiler/rustc_hir/src/hir.rs
@@ -1161,6 +1161,12 @@ pub struct AttrPath {
1161
pub span: Span,
1162
}
1163
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
+
1170
impl AttrPath {
1171
pub fn from_ast(path: &ast::Path) -> Self {
1172
AttrPath {
0 commit comments