-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve: Create dummy bindings for all unresolved imports
- Loading branch information
1 parent
18f32b7
commit 09195d3
Showing
5 changed files
with
48 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Regression test for issue #95879. | ||
|
||
use unresolved_crate::module::Name; //~ ERROR failed to resolve | ||
|
||
/// [Name] | ||
pub struct S; |
11 changes: 11 additions & 0 deletions
11
src/test/rustdoc-ui/intra-doc/unresolved-import-recovery.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
error[E0433]: failed to resolve: maybe a missing crate `unresolved_crate`? | ||
--> $DIR/unresolved-import-recovery.rs:3:5 | ||
| | ||
LL | use unresolved_crate::module::Name; | ||
| ^^^^^^^^^^^^^^^^ maybe a missing crate `unresolved_crate`? | ||
|
||
error: Compilation failed, aborting rustdoc | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0433`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters