]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/error.rs
Rollup merge of #90625 - Milo123459:ref-unwind-safe, r=dtolnay
[rust.git] / src / librustdoc / error.rs
index 82d0002b98b180d2ae514314740d8d6fd714d4a6..8eadbf63f33d91e02cf683b857676049a1e4b90c 100644 (file)
@@ -39,7 +39,10 @@ macro_rules! try_none {
         match $e {
             Some(e) => e,
             None => {
-                return Err(Error::new(io::Error::new(io::ErrorKind::Other, "not found"), $file));
+                return Err(<crate::error::Error as crate::docfs::PathError>::new(
+                    io::Error::new(io::ErrorKind::Other, "not found"),
+                    $file,
+                ));
             }
         }
     }};