about summary refs log tree commit diff
path: root/src/librustdoc/html/render/span_map.rs
AgeCommit message (Collapse)AuthorLines
2023-12-12Move some methods from `tcx.hir()` to `tcx`zetanumbers-2/+2
Renamings: - find -> opt_hir_node - get -> hir_node - find_by_def_id -> opt_hir_node_by_def_id - get_by_def_id -> hir_node_by_def_id Fix rebase changes using removed methods Use `tcx.hir_node_by_def_id()` whenever possible in compiler Fix clippy errors Fix compiler Apply suggestions from code review Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> Add FIXME for `tcx.hir()` returned type about its removal Simplify with with `tcx.hir_node_by_def_id`
2023-07-28Render generic const items in rustdocLeón Orell Valerian Liehr-1/+1
2023-07-12Add jump to docGuillaume Gomez-24/+73
2023-03-09Fix typo in span_map.rsIkko Eltociear Ashimine-3/+3
correspondance -> correspondence
2022-12-01rustc_hir: Change representation of import paths to support multiple resolutionsVadim Petrochenkov-8/+0
2022-12-01rustc_hir: Relax lifetime requirements on `Visitor::visit_path`Vadim Petrochenkov-1/+1
2022-09-05Make `hir::PathSegment::hir_id` non-optional.Nicholas Nethercote-18/+16
2022-06-20Improve code readability and documentationGuillaume Gomez-28/+40
2022-06-20Add support for macro in "jump to def" featureGuillaume Gomez-17/+54
2022-05-24fix simple clippy lintsklensy-1/+1
2022-05-21Remove `crate` visibility modifier in libs, testsJacob Pratt-4/+4
2022-05-06Remove unneeded SpanMapVisitor::visit_generics functionGuillaume Gomez-13/+1
2022-05-02Fix regression in link-to-definition introduced in #93803Guillaume Gomez-2/+12
2022-04-30Store all generic bounds as where predicates.Camille GILLOT-11/+2
2022-03-31remove find_use_placementFausto-2/+5
A more robust solution to finding where to place use suggestions was added. The algorithm uses the AST to find the span for the suggestion so we pass this span down to the HIR during lowering and use it. Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-01-23Remove DiagnosticBuilder.quietmark-5/+7
2022-01-21Remove a span from hir::ExprKind::MethodCallCameron Steffen-2/+2
2022-01-16Replace NestedVisitorMap with NestedFilterCameron Steffen-4/+5
2021-12-28remove in_band_lifetimes from librustdocMichael Goulet-1/+1
2021-10-31Clean up now that visitors only need `&clean::Crate`Noah Lev-5/+5
2021-10-25Fix clippy lints in librustdocGuillaume Gomez-29/+20
2021-09-13Add support for primitives in "jump to definition" featureGuillaume Gomez-7/+11
2021-09-02Rename walk_crate.Camille GILLOT-1/+1
2021-09-02Stop using walk_crate.Camille GILLOT-1/+1
2021-08-05Remove LightSpan and use Span directlyGuillaume Gomez-53/+8
2021-08-05Remove warnings/errors from compiler when using typeck_body in rustdoc span ↵Guillaume Gomez-5/+5
map builder
2021-08-05* Rename LightSpan::empty into LightSpan::dummyGuillaume Gomez-1/+1
* Add Classifier::new_light_span to wrap LightSpan::new_in_file constructor
2021-08-05Add missing root_path when generating links using hrefGuillaume Gomez-0/+1
2021-08-05Add documentation and FIXMEGuillaume Gomez-4/+7
2021-08-05formattingGuillaume Gomez-14/+7
2021-08-05Use rustdoc Span in LinkFromSrc directlyGuillaume Gomez-4/+4
2021-08-05Wrap the span_map tuple index into a type called "LightSpan"Guillaume Gomez-13/+54
2021-08-05Improve code readabilityGuillaume Gomez-2/+4
2021-08-05* Rename 'move_span' into 'local_span_to_global_span'Guillaume Gomez-0/+17
* Add documentation on new arguments/functions
2021-08-05Generate links for modules as wellGuillaume Gomez-5/+24
2021-08-05Generate links for methods as wellGuillaume Gomez-16/+36
2021-08-05Add an option for the source code link generationGuillaume Gomez-1/+4
2021-08-05Add links on source types to go to definitionGuillaume Gomez-0/+110