mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 22:13:39 +00:00
91bf15a2f5
6834: Use Attrs::docs in runnables instead of DocCommentsOwner r=kjeremy a=Veykril I figured that we should probably move as much of the doc usage to the HIR as possible hence this PR. If we should keep this AST-based feel free to close. This change does have the nice(but not really useful as I doubt anyones gonna write doc tests like these) side effect that these two doc string snippets allow being run now. ![image](https://user-images.githubusercontent.com/3757771/101945607-bf241400-3bee-11eb-96ce-ccae80028b1f.png) ![image](https://user-images.githubusercontent.com/3757771/101946375-2e9a0380-3bef-11eb-9950-e35168fdd048.png) Co-authored-by: Lukas Wirth <lukastw97@gmail.com> |
||
---|---|---|
.. | ||
body | ||
item_tree | ||
nameres | ||
path | ||
adt.rs | ||
attr.rs | ||
body.rs | ||
builtin_attr.rs | ||
builtin_type.rs | ||
child_by_source.rs | ||
data.rs | ||
db.rs | ||
diagnostics.rs | ||
dyn_map.rs | ||
expr.rs | ||
find_path.rs | ||
generics.rs | ||
import_map.rs | ||
item_scope.rs | ||
item_tree.rs | ||
keys.rs | ||
lang_item.rs | ||
lib.rs | ||
nameres.rs | ||
path.rs | ||
per_ns.rs | ||
resolver.rs | ||
src.rs | ||
test_db.rs | ||
trace.rs | ||
type_ref.rs | ||
visibility.rs |