granite-rust/compiler/rustc_hir/src
bors 71bdb84817 Auto merge of #76955 - jyn514:refactor-diagnostics, r=euclio
Refactor and fix intra-doc link diagnostics, and fix links to primitives

Closes https://github.com/rust-lang/rust/issues/76925, closes https://github.com/rust-lang/rust/issues/76693, closes https://github.com/rust-lang/rust/issues/76692.

Originally I only meant to fix #76925. But the hack with `has_primitive` was so bad it was easier to fix the primitive issues than to try and work around it.

Note that this still has one bug: `std::primitive::i32::MAX` does not resolve. However, this fixes the ICE so I'm fine with fixing the link in a later PR.

This is part of a series of refactors to make #76467 possible.

This is best reviewed commit-by-commit; it has detailed commit messages.

r? `@euclio`
2020-09-27 08:12:29 +00:00
..
arena.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
def.rs review, improve note span 2020-09-13 22:53:51 +02:00
definitions.rs Move is_raw_guess check in ty::print::pretty 2020-09-25 22:48:44 +01:00
hir.rs Fix intra-doc links for primitives 2020-09-23 21:04:22 -04:00
hir_id.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
intravisit.rs Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
itemlikevisit.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lang_items.rs hir: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00
lib.rs [WIP] give better errors for broken intra doc links 2020-09-05 13:48:19 -04:00
pat_util.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
stable_hash_impls.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
target.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
weak_lang_items.rs hir: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00