summary refs log tree commit diff
path: root/compiler/rustc_hir/src
AgeCommit message (Collapse)AuthorLines
2020-09-27Auto merge of #76955 - jyn514:refactor-diagnostics, r=eucliobors-0/+24
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-26Rollup merge of #77211 - est31:remove_unused_allow, r=oli-obkRalf Jung-3/+0
Remove unused #[allow(...)] statements from compiler/
2020-09-26Remove unused #[allow(...)] statements from compiler/est31-3/+0
2020-09-25Move `is_raw_guess` check in `ty::print::pretty`marmeladema-4/+1
2020-09-25Address review commentmarmeladema-4/+5
2020-09-25Rename `DefPathData::get_name()` to `DefPathData::name()`marmeladema-1/+1
2020-09-25Fix pretty-printing of `DisambiguatedDefPathData`marmeladema-9/+19
2020-09-25Implement `Display` for `DisambiguatedDefPathData` and `DefPathData`marmeladema-39/+26
2020-09-25Move from {{closure}}#0 syntax to {closure#0} for (def) path componentsmarmeladema-20/+37
2020-09-23Fix intra-doc links for primitivesJoshua Nelson-0/+24
- Add `PrimTy::name` and `PrimTy::name_str` - Use those new functions to distinguish between the name in scope and the canonical name - Fix diagnostics for primitive types - Add tests for primitives
2020-09-13review, improve note spanBastian Kauschke-4/+6
2020-09-13allow concrete self types in constsBastian Kauschke-1/+8
2020-09-05[WIP] give better errors for broken intra doc linksJoshua Nelson-0/+10
2020-09-04add track_caller to `local_def_id_to_hir_id`Bastian Kauschke-0/+1
2020-09-01hir: replace `lazy_static` by `SyncLazy` from stdmarmeladema-17/+14
2020-08-30mv compiler to compiler/mark-0/+5990