1
Fork 0
rust/compiler/rustc_resolve/src
Matthias Krüger 87ca333210
Rollup merge of #91045 - mjptree:issue-90702-fix, r=petrochenkov
Issue 90702 fix: Stop treating some crate loading failures as fatal errors

Surface mulitple `extern crate` resolution errors at a time.

This is achieved by creating a dummy crate, instead of aborting directly after the resolution error. The `ExternCrateError` has been added to allow propagating the resolution error from `rustc_metadata` crate to the `rustc_resolve` with a minimal public surface. The `import_extern_crate` function is a block that was factored out from `build_reduced_graph_for_item` for better organization. The only added functionality made to it where the added error handling in the `process_extern_crate` call. The remaining bits in this function are the same as before.

Resolves #90702

r? `@petrochenkov`
2021-12-02 15:52:01 +01:00
..
late Merge Implicit and ImplicitMissing. 2021-11-30 22:56:47 +01:00
build_reduced_graph.rs Rollup merge of #91045 - mjptree:issue-90702-fix, r=petrochenkov 2021-12-02 15:52:01 +01:00
check_unused.rs Add ty::Visibility::is_public() 2021-11-09 18:35:00 -08:00
def_collector.rs expand: Turn ast::Crate into a first class expansion target 2021-11-28 15:48:55 +08:00
diagnostics.rs Improve error message for E0659 if the source is not available 2021-11-27 18:42:49 +01:00
imports.rs Improve suggestion for extern crate self error message 2021-12-01 21:59:54 +00:00
late.rs Do not visit attributes in LateResolutionVisitor. 2021-11-25 00:24:04 +01:00
lib.rs Improve suggestion for extern crate self error message 2021-12-01 21:59:54 +00:00
macros.rs Suggestion to wrap inner types using allocator_api in tuple 2021-11-24 00:24:13 +09:00