Ikko Eltociear Ashimine
18667722e2
Fix typo in span_map.rs
...
correspondance -> correspondence
2023-03-09 14:47:42 +09:00
Vadim Petrochenkov
1f259ae679
rustc_hir: Change representation of import paths to support multiple resolutions
2022-12-01 18:51:05 +03:00
Vadim Petrochenkov
6cd4dd3091
rustc_hir: Relax lifetime requirements on Visitor::visit_path
2022-12-01 17:04:02 +03:00
Nicholas Nethercote
bb0ae3c446
Make hir::PathSegment::hir_id non-optional.
2022-09-05 14:20:25 +10:00
Guillaume Gomez
810254b31e
Improve code readability and documentation
2022-06-20 21:09:55 +02:00
Guillaume Gomez
3f12fa7fda
Add support for macro in "jump to def" feature
2022-06-20 17:00:48 +02:00
klensy
678059f7d0
fix simple clippy lints
2022-05-24 12:24:41 -04:00
Jacob Pratt
6970246886
Remove crate visibility modifier in libs, tests
2022-05-21 00:32:47 -04:00
Guillaume Gomez
5c7ce84d74
Remove unneeded SpanMapVisitor::visit_generics function
2022-05-06 22:01:30 +02:00
Guillaume Gomez
a26cb6154d
Fix regression in link-to-definition introduced in #93803
2022-05-02 15:06:45 +02:00
Camille GILLOT
94449e6101
Store all generic bounds as where predicates.
2022-04-30 13:55:13 +02:00
Fausto
8c2353b6c1
remove find_use_placement
...
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-03-31 17:20:03 -04:00
mark
cf382de0cc
Remove DiagnosticBuilder.quiet
2022-01-23 00:11:13 -06:00
Cameron Steffen
b11733534d
Remove a span from hir::ExprKind::MethodCall
2022-01-21 07:48:10 -06:00
Cameron Steffen
45db716902
Replace NestedVisitorMap with NestedFilter
2022-01-16 16:02:36 -06:00
Michael Goulet
bc7968f961
remove in_band_lifetimes from librustdoc
2021-12-28 18:18:00 -08:00
Noah Lev
6215f7c85f
Clean up now that visitors only need &clean::Crate
2021-10-31 20:59:22 -07:00
Guillaume Gomez
4614ca4541
Fix clippy lints in librustdoc
2021-10-25 11:30:09 +02:00
Guillaume Gomez
8f3fd3d08c
Add support for primitives in "jump to definition" feature
2021-09-13 17:41:43 +02:00
Camille GILLOT
d119a13137
Rename walk_crate.
2021-09-02 19:23:11 +02:00
Camille GILLOT
7ec973d9ce
Stop using walk_crate.
2021-09-02 19:08:58 +02:00
Guillaume Gomez
dfe4fec783
Remove LightSpan and use Span directly
2021-08-05 23:08:29 +02:00
Guillaume Gomez
5cf300d695
Remove warnings/errors from compiler when using typeck_body in rustdoc span map builder
2021-08-05 23:08:29 +02:00
Guillaume Gomez
0799528db7
* Rename LightSpan::empty into LightSpan::dummy
...
* Add Classifier::new_light_span to wrap LightSpan::new_in_file constructor
2021-08-05 23:08:29 +02:00
Guillaume Gomez
fd69fa8670
Add missing root_path when generating links using href
2021-08-05 23:08:29 +02:00
Guillaume Gomez
1a48d1a4de
Add documentation and FIXME
2021-08-05 23:08:29 +02:00
Guillaume Gomez
ef0d909f26
formatting
2021-08-05 23:08:29 +02:00
Guillaume Gomez
f233a70567
Use rustdoc Span in LinkFromSrc directly
2021-08-05 23:08:29 +02:00
Guillaume Gomez
e8869cb7a7
Wrap the span_map tuple index into a type called "LightSpan"
2021-08-05 23:08:28 +02:00
Guillaume Gomez
c5c927dfda
Improve code readability
2021-08-05 23:08:28 +02:00
Guillaume Gomez
2a3b71ae33
* Rename 'move_span' into 'local_span_to_global_span'
...
* Add documentation on new arguments/functions
2021-08-05 23:08:28 +02:00
Guillaume Gomez
1abb7faddb
Generate links for modules as well
2021-08-05 23:08:28 +02:00
Guillaume Gomez
b689cedc0e
Generate links for methods as well
2021-08-05 23:08:28 +02:00
Guillaume Gomez
2104bf27d4
Add an option for the source code link generation
2021-08-05 23:08:28 +02:00
Guillaume Gomez
023231a709
Add links on source types to go to definition
2021-08-05 23:08:27 +02:00