rust-analyzer/crates/hir_def/src
bors[bot] 91bf15a2f5
Merge #6834
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>
2020-12-11 19:57:08 +00:00
..
body Add test for $crate in builtin macros 2020-12-08 17:17:30 +01:00
item_tree Remove item tree tests 2020-12-10 15:53:48 +01:00
nameres Introduce anchored_path 2020-12-09 19:07:05 +03:00
path Don't discard PathKind::Abs information in lower_use::convert_path 2020-12-02 09:54:03 +01:00
adt.rs adt: correctly inherit field visibility from enum 2020-10-09 20:46:45 +02:00
attr.rs Use Attrs::docs in runnables instead of DocCommentsOwner 2020-12-11 20:11:03 +01:00
body.rs Properly decrement recursion count in Expander 2020-12-09 12:26:33 +01:00
builtin_attr.rs Add upstream commit to builtin_attr.rs 2020-12-11 19:12:06 +01:00
builtin_type.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
child_by_source.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
data.rs Ignore extern items in incorrect-case check 2020-12-10 15:45:01 +01:00
db.rs Remove documentation query 2020-12-07 19:58:17 +01:00
diagnostics.rs More accurately place proc-macro diagnostic 2020-11-27 16:29:40 +01:00
dyn_map.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
expr.rs Merge #5971 2020-09-13 17:28:22 +00:00
find_path.rs Add test makr 2020-10-06 19:20:56 +02:00
generics.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
import_map.rs Improve autoimports on completion speed 2020-11-24 02:28:45 +02:00
item_scope.rs Make incorrect case diagnostic work inside of functions 2020-10-12 11:05:00 +03:00
item_tree.rs Remove item tree tests 2020-12-10 15:53:48 +01:00
keys.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
lang_item.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
lib.rs Add builtin attributes for use in nameres 2020-12-11 14:04:33 +01:00
nameres.rs More accurately place proc-macro diagnostic 2020-11-27 16:29:40 +01:00
path.rs Move ModPath->ast::Path function to IDE layer 2020-10-06 16:19:18 +02:00
per_ns.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
resolver.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
src.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
test_db.rs Introduce anchored_path 2020-12-09 19:07:05 +03:00
trace.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
type_ref.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
visibility.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00