aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/hover.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-12-18 18:26:47 +0000
committerAleksey Kladov <[email protected]>2020-12-18 18:26:47 +0000
commitade2f5cd124049614801fc821298205006c6bdf4 (patch)
treef0ce5fc87361263a4d4703b6ee418518bd0aa212 /crates/ide/src/hover.rs
parent0e3581e8232461baa50191a2c7474a117b649b1b (diff)
Reduce test verbosity
Diffstat (limited to 'crates/ide/src/hover.rs')
-rw-r--r--crates/ide/src/hover.rs512
1 files changed, 109 insertions, 403 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs
index 413b1526a..b06fa5f15 100644
--- a/crates/ide/src/hover.rs
+++ b/crates/ide/src/hover.rs
@@ -2187,16 +2187,9 @@ fn foo_<|>test() {}
2187 0, 2187 0,
2188 ), 2188 ),
2189 full_range: 0..24, 2189 full_range: 0..24,
2190 focus_range: Some( 2190 focus_range: 11..19,
2191 11..19,
2192 ),
2193 name: "foo_test", 2191 name: "foo_test",
2194 kind: Some( 2192 kind: Function,
2195 Function,
2196 ),
2197 container_name: None,
2198 description: None,
2199 docs: None,
2200 }, 2193 },
2201 kind: Test { 2194 kind: Test {
2202 test_id: Path( 2195 test_id: Path(
@@ -2232,16 +2225,9 @@ mod tests<|> {
2232 0, 2225 0,
2233 ), 2226 ),
2234 full_range: 0..46, 2227 full_range: 0..46,
2235 focus_range: Some( 2228 focus_range: 4..9,
2236 4..9,
2237 ),
2238 name: "tests", 2229 name: "tests",
2239 kind: Some( 2230 kind: Module,
2240 Module,
2241 ),
2242 container_name: None,
2243 description: None,
2244 docs: None,
2245 }, 2231 },
2246 kind: TestMod { 2232 kind: TestMod {
2247 path: "tests", 2233 path: "tests",
@@ -2273,18 +2259,10 @@ fn main() { let s<|>t = S{ f1:0 }; }
2273 0, 2259 0,
2274 ), 2260 ),
2275 full_range: 0..19, 2261 full_range: 0..19,
2276 focus_range: Some( 2262 focus_range: 7..8,
2277 7..8,
2278 ),
2279 name: "S", 2263 name: "S",
2280 kind: Some( 2264 kind: Struct,
2281 Struct, 2265 description: "struct S",
2282 ),
2283 container_name: None,
2284 description: Some(
2285 "struct S",
2286 ),
2287 docs: None,
2288 }, 2266 },
2289 }, 2267 },
2290 ], 2268 ],
@@ -2314,18 +2292,10 @@ fn main() { let s<|>t = S{ f1:Arg(0) }; }
2314 0, 2292 0,
2315 ), 2293 ),
2316 full_range: 17..37, 2294 full_range: 17..37,
2317 focus_range: Some( 2295 focus_range: 24..25,
2318 24..25,
2319 ),
2320 name: "S", 2296 name: "S",
2321 kind: Some( 2297 kind: Struct,
2322 Struct, 2298 description: "struct S",
2323 ),
2324 container_name: None,
2325 description: Some(
2326 "struct S",
2327 ),
2328 docs: None,
2329 }, 2299 },
2330 }, 2300 },
2331 HoverGotoTypeData { 2301 HoverGotoTypeData {
@@ -2335,18 +2305,10 @@ fn main() { let s<|>t = S{ f1:Arg(0) }; }
2335 0, 2305 0,
2336 ), 2306 ),
2337 full_range: 0..16, 2307 full_range: 0..16,
2338 focus_range: Some( 2308 focus_range: 7..10,
2339 7..10,
2340 ),
2341 name: "Arg", 2309 name: "Arg",
2342 kind: Some( 2310 kind: Struct,
2343 Struct, 2311 description: "struct Arg",
2344 ),
2345 container_name: None,
2346 description: Some(
2347 "struct Arg",
2348 ),
2349 docs: None,
2350 }, 2312 },
2351 }, 2313 },
2352 ], 2314 ],
@@ -2376,18 +2338,10 @@ fn main() { let s<|>t = S{ f1: S{ f1: Arg(0) } }; }
2376 0, 2338 0,
2377 ), 2339 ),
2378 full_range: 17..37, 2340 full_range: 17..37,
2379 focus_range: Some( 2341 focus_range: 24..25,
2380 24..25,
2381 ),
2382 name: "S", 2342 name: "S",
2383 kind: Some( 2343 kind: Struct,
2384 Struct, 2344 description: "struct S",
2385 ),
2386 container_name: None,
2387 description: Some(
2388 "struct S",
2389 ),
2390 docs: None,
2391 }, 2345 },
2392 }, 2346 },
2393 HoverGotoTypeData { 2347 HoverGotoTypeData {
@@ -2397,18 +2351,10 @@ fn main() { let s<|>t = S{ f1: S{ f1: Arg(0) } }; }
2397 0, 2351 0,
2398 ), 2352 ),
2399 full_range: 0..16, 2353 full_range: 0..16,
2400 focus_range: Some( 2354 focus_range: 7..10,
2401 7..10,
2402 ),
2403 name: "Arg", 2355 name: "Arg",
2404 kind: Some( 2356 kind: Struct,
2405 Struct, 2357 description: "struct Arg",
2406 ),
2407 container_name: None,
2408 description: Some(
2409 "struct Arg",
2410 ),
2411 docs: None,
2412 }, 2358 },
2413 }, 2359 },
2414 ], 2360 ],
@@ -2441,18 +2387,10 @@ fn main() { let s<|>t = (A(1), B(2), M::C(3) ); }
2441 0, 2387 0,
2442 ), 2388 ),
2443 full_range: 0..14, 2389 full_range: 0..14,
2444 focus_range: Some( 2390 focus_range: 7..8,
2445 7..8,
2446 ),
2447 name: "A", 2391 name: "A",
2448 kind: Some( 2392 kind: Struct,
2449 Struct, 2393 description: "struct A",
2450 ),
2451 container_name: None,
2452 description: Some(
2453 "struct A",
2454 ),
2455 docs: None,
2456 }, 2394 },
2457 }, 2395 },
2458 HoverGotoTypeData { 2396 HoverGotoTypeData {
@@ -2462,18 +2400,10 @@ fn main() { let s<|>t = (A(1), B(2), M::C(3) ); }
2462 0, 2400 0,
2463 ), 2401 ),
2464 full_range: 15..29, 2402 full_range: 15..29,
2465 focus_range: Some( 2403 focus_range: 22..23,
2466 22..23,
2467 ),
2468 name: "B", 2404 name: "B",
2469 kind: Some( 2405 kind: Struct,
2470 Struct, 2406 description: "struct B",
2471 ),
2472 container_name: None,
2473 description: Some(
2474 "struct B",
2475 ),
2476 docs: None,
2477 }, 2407 },
2478 }, 2408 },
2479 HoverGotoTypeData { 2409 HoverGotoTypeData {
@@ -2483,18 +2413,10 @@ fn main() { let s<|>t = (A(1), B(2), M::C(3) ); }
2483 0, 2413 0,
2484 ), 2414 ),
2485 full_range: 42..60, 2415 full_range: 42..60,
2486 focus_range: Some( 2416 focus_range: 53..54,
2487 53..54,
2488 ),
2489 name: "C", 2417 name: "C",
2490 kind: Some( 2418 kind: Struct,
2491 Struct, 2419 description: "pub struct C",
2492 ),
2493 container_name: None,
2494 description: Some(
2495 "pub struct C",
2496 ),
2497 docs: None,
2498 }, 2420 },
2499 }, 2421 },
2500 ], 2422 ],
@@ -2524,18 +2446,10 @@ fn main() { let s<|>t = foo(); }
2524 0, 2446 0,
2525 ), 2447 ),
2526 full_range: 0..12, 2448 full_range: 0..12,
2527 focus_range: Some( 2449 focus_range: 6..9,
2528 6..9,
2529 ),
2530 name: "Foo", 2450 name: "Foo",
2531 kind: Some( 2451 kind: Trait,
2532 Trait, 2452 description: "trait Foo",
2533 ),
2534 container_name: None,
2535 description: Some(
2536 "trait Foo",
2537 ),
2538 docs: None,
2539 }, 2453 },
2540 }, 2454 },
2541 ], 2455 ],
@@ -2566,18 +2480,10 @@ fn main() { let s<|>t = foo(); }
2566 0, 2480 0,
2567 ), 2481 ),
2568 full_range: 0..15, 2482 full_range: 0..15,
2569 focus_range: Some( 2483 focus_range: 6..9,
2570 6..9,
2571 ),
2572 name: "Foo", 2484 name: "Foo",
2573 kind: Some( 2485 kind: Trait,
2574 Trait, 2486 description: "trait Foo",
2575 ),
2576 container_name: None,
2577 description: Some(
2578 "trait Foo",
2579 ),
2580 docs: None,
2581 }, 2487 },
2582 }, 2488 },
2583 HoverGotoTypeData { 2489 HoverGotoTypeData {
@@ -2587,18 +2493,10 @@ fn main() { let s<|>t = foo(); }
2587 0, 2493 0,
2588 ), 2494 ),
2589 full_range: 16..25, 2495 full_range: 16..25,
2590 focus_range: Some( 2496 focus_range: 23..24,
2591 23..24,
2592 ),
2593 name: "S", 2497 name: "S",
2594 kind: Some( 2498 kind: Struct,
2595 Struct, 2499 description: "struct S",
2596 ),
2597 container_name: None,
2598 description: Some(
2599 "struct S",
2600 ),
2601 docs: None,
2602 }, 2500 },
2603 }, 2501 },
2604 ], 2502 ],
@@ -2629,18 +2527,10 @@ fn main() { let s<|>t = foo(); }
2629 0, 2527 0,
2630 ), 2528 ),
2631 full_range: 0..12, 2529 full_range: 0..12,
2632 focus_range: Some( 2530 focus_range: 6..9,
2633 6..9,
2634 ),
2635 name: "Foo", 2531 name: "Foo",
2636 kind: Some( 2532 kind: Trait,
2637 Trait, 2533 description: "trait Foo",
2638 ),
2639 container_name: None,
2640 description: Some(
2641 "trait Foo",
2642 ),
2643 docs: None,
2644 }, 2534 },
2645 }, 2535 },
2646 HoverGotoTypeData { 2536 HoverGotoTypeData {
@@ -2650,18 +2540,10 @@ fn main() { let s<|>t = foo(); }
2650 0, 2540 0,
2651 ), 2541 ),
2652 full_range: 13..25, 2542 full_range: 13..25,
2653 focus_range: Some( 2543 focus_range: 19..22,
2654 19..22,
2655 ),
2656 name: "Bar", 2544 name: "Bar",
2657 kind: Some( 2545 kind: Trait,
2658 Trait, 2546 description: "trait Bar",
2659 ),
2660 container_name: None,
2661 description: Some(
2662 "trait Bar",
2663 ),
2664 docs: None,
2665 }, 2547 },
2666 }, 2548 },
2667 ], 2549 ],
@@ -2695,18 +2577,10 @@ fn main() { let s<|>t = foo(); }
2695 0, 2577 0,
2696 ), 2578 ),
2697 full_range: 0..15, 2579 full_range: 0..15,
2698 focus_range: Some( 2580 focus_range: 6..9,
2699 6..9,
2700 ),
2701 name: "Foo", 2581 name: "Foo",
2702 kind: Some( 2582 kind: Trait,
2703 Trait, 2583 description: "trait Foo",
2704 ),
2705 container_name: None,
2706 description: Some(
2707 "trait Foo",
2708 ),
2709 docs: None,
2710 }, 2584 },
2711 }, 2585 },
2712 HoverGotoTypeData { 2586 HoverGotoTypeData {
@@ -2716,18 +2590,10 @@ fn main() { let s<|>t = foo(); }
2716 0, 2590 0,
2717 ), 2591 ),
2718 full_range: 16..31, 2592 full_range: 16..31,
2719 focus_range: Some( 2593 focus_range: 22..25,
2720 22..25,
2721 ),
2722 name: "Bar", 2594 name: "Bar",
2723 kind: Some( 2595 kind: Trait,
2724 Trait, 2596 description: "trait Bar",
2725 ),
2726 container_name: None,
2727 description: Some(
2728 "trait Bar",
2729 ),
2730 docs: None,
2731 }, 2597 },
2732 }, 2598 },
2733 HoverGotoTypeData { 2599 HoverGotoTypeData {
@@ -2737,18 +2603,10 @@ fn main() { let s<|>t = foo(); }
2737 0, 2603 0,
2738 ), 2604 ),
2739 full_range: 32..44, 2605 full_range: 32..44,
2740 focus_range: Some( 2606 focus_range: 39..41,
2741 39..41,
2742 ),
2743 name: "S1", 2607 name: "S1",
2744 kind: Some( 2608 kind: Struct,
2745 Struct, 2609 description: "struct S1",
2746 ),
2747 container_name: None,
2748 description: Some(
2749 "struct S1",
2750 ),
2751 docs: None,
2752 }, 2610 },
2753 }, 2611 },
2754 HoverGotoTypeData { 2612 HoverGotoTypeData {
@@ -2758,18 +2616,10 @@ fn main() { let s<|>t = foo(); }
2758 0, 2616 0,
2759 ), 2617 ),
2760 full_range: 45..57, 2618 full_range: 45..57,
2761 focus_range: Some( 2619 focus_range: 52..54,
2762 52..54,
2763 ),
2764 name: "S2", 2620 name: "S2",
2765 kind: Some( 2621 kind: Struct,
2766 Struct, 2622 description: "struct S2",
2767 ),
2768 container_name: None,
2769 description: Some(
2770 "struct S2",
2771 ),
2772 docs: None,
2773 }, 2623 },
2774 }, 2624 },
2775 ], 2625 ],
@@ -2797,18 +2647,10 @@ fn foo(ar<|>g: &impl Foo) {}
2797 0, 2647 0,
2798 ), 2648 ),
2799 full_range: 0..12, 2649 full_range: 0..12,
2800 focus_range: Some( 2650 focus_range: 6..9,
2801 6..9,
2802 ),
2803 name: "Foo", 2651 name: "Foo",
2804 kind: Some( 2652 kind: Trait,
2805 Trait, 2653 description: "trait Foo",
2806 ),
2807 container_name: None,
2808 description: Some(
2809 "trait Foo",
2810 ),
2811 docs: None,
2812 }, 2654 },
2813 }, 2655 },
2814 ], 2656 ],
@@ -2839,18 +2681,10 @@ fn foo(ar<|>g: &impl Foo + Bar<S>) {}
2839 0, 2681 0,
2840 ), 2682 ),
2841 full_range: 0..12, 2683 full_range: 0..12,
2842 focus_range: Some( 2684 focus_range: 6..9,
2843 6..9,
2844 ),
2845 name: "Foo", 2685 name: "Foo",
2846 kind: Some( 2686 kind: Trait,
2847 Trait, 2687 description: "trait Foo",
2848 ),
2849 container_name: None,
2850 description: Some(
2851 "trait Foo",
2852 ),
2853 docs: None,
2854 }, 2688 },
2855 }, 2689 },
2856 HoverGotoTypeData { 2690 HoverGotoTypeData {
@@ -2860,18 +2694,10 @@ fn foo(ar<|>g: &impl Foo + Bar<S>) {}
2860 0, 2694 0,
2861 ), 2695 ),
2862 full_range: 13..28, 2696 full_range: 13..28,
2863 focus_range: Some( 2697 focus_range: 19..22,
2864 19..22,
2865 ),
2866 name: "Bar", 2698 name: "Bar",
2867 kind: Some( 2699 kind: Trait,
2868 Trait, 2700 description: "trait Bar",
2869 ),
2870 container_name: None,
2871 description: Some(
2872 "trait Bar",
2873 ),
2874 docs: None,
2875 }, 2701 },
2876 }, 2702 },
2877 HoverGotoTypeData { 2703 HoverGotoTypeData {
@@ -2881,18 +2707,10 @@ fn foo(ar<|>g: &impl Foo + Bar<S>) {}
2881 0, 2707 0,
2882 ), 2708 ),
2883 full_range: 29..39, 2709 full_range: 29..39,
2884 focus_range: Some( 2710 focus_range: 36..37,
2885 36..37,
2886 ),
2887 name: "S", 2711 name: "S",
2888 kind: Some( 2712 kind: Struct,
2889 Struct, 2713 description: "struct S",
2890 ),
2891 container_name: None,
2892 description: Some(
2893 "struct S",
2894 ),
2895 docs: None,
2896 }, 2714 },
2897 }, 2715 },
2898 ], 2716 ],
@@ -2928,18 +2746,10 @@ mod future {
2928 0, 2746 0,
2929 ), 2747 ),
2930 full_range: 101..163, 2748 full_range: 101..163,
2931 focus_range: Some( 2749 focus_range: 140..146,
2932 140..146,
2933 ),
2934 name: "Future", 2750 name: "Future",
2935 kind: Some( 2751 kind: Trait,
2936 Trait, 2752 description: "pub trait Future",
2937 ),
2938 container_name: None,
2939 description: Some(
2940 "pub trait Future",
2941 ),
2942 docs: None,
2943 }, 2753 },
2944 }, 2754 },
2945 HoverGotoTypeData { 2755 HoverGotoTypeData {
@@ -2949,18 +2759,10 @@ mod future {
2949 0, 2759 0,
2950 ), 2760 ),
2951 full_range: 0..9, 2761 full_range: 0..9,
2952 focus_range: Some( 2762 focus_range: 7..8,
2953 7..8,
2954 ),
2955 name: "S", 2763 name: "S",
2956 kind: Some( 2764 kind: Struct,
2957 Struct, 2765 description: "struct S",
2958 ),
2959 container_name: None,
2960 description: Some(
2961 "struct S",
2962 ),
2963 docs: None,
2964 }, 2766 },
2965 }, 2767 },
2966 ], 2768 ],
@@ -2989,18 +2791,10 @@ fn foo(ar<|>g: &impl Foo<S>) {}
2989 0, 2791 0,
2990 ), 2792 ),
2991 full_range: 0..15, 2793 full_range: 0..15,
2992 focus_range: Some( 2794 focus_range: 6..9,
2993 6..9,
2994 ),
2995 name: "Foo", 2795 name: "Foo",
2996 kind: Some( 2796 kind: Trait,
2997 Trait, 2797 description: "trait Foo",
2998 ),
2999 container_name: None,
3000 description: Some(
3001 "trait Foo",
3002 ),
3003 docs: None,
3004 }, 2798 },
3005 }, 2799 },
3006 HoverGotoTypeData { 2800 HoverGotoTypeData {
@@ -3010,18 +2804,10 @@ fn foo(ar<|>g: &impl Foo<S>) {}
3010 0, 2804 0,
3011 ), 2805 ),
3012 full_range: 16..27, 2806 full_range: 16..27,
3013 focus_range: Some( 2807 focus_range: 23..24,
3014 23..24,
3015 ),
3016 name: "S", 2808 name: "S",
3017 kind: Some( 2809 kind: Struct,
3018 Struct, 2810 description: "struct S",
3019 ),
3020 container_name: None,
3021 description: Some(
3022 "struct S",
3023 ),
3024 docs: None,
3025 }, 2811 },
3026 }, 2812 },
3027 ], 2813 ],
@@ -3055,18 +2841,10 @@ fn main() { let s<|>t = foo(); }
3055 0, 2841 0,
3056 ), 2842 ),
3057 full_range: 42..55, 2843 full_range: 42..55,
3058 focus_range: Some( 2844 focus_range: 49..50,
3059 49..50,
3060 ),
3061 name: "B", 2845 name: "B",
3062 kind: Some( 2846 kind: Struct,
3063 Struct, 2847 description: "struct B",
3064 ),
3065 container_name: None,
3066 description: Some(
3067 "struct B",
3068 ),
3069 docs: None,
3070 }, 2848 },
3071 }, 2849 },
3072 HoverGotoTypeData { 2850 HoverGotoTypeData {
@@ -3076,18 +2854,10 @@ fn main() { let s<|>t = foo(); }
3076 0, 2854 0,
3077 ), 2855 ),
3078 full_range: 0..12, 2856 full_range: 0..12,
3079 focus_range: Some( 2857 focus_range: 6..9,
3080 6..9,
3081 ),
3082 name: "Foo", 2858 name: "Foo",
3083 kind: Some( 2859 kind: Trait,
3084 Trait, 2860 description: "trait Foo",
3085 ),
3086 container_name: None,
3087 description: Some(
3088 "trait Foo",
3089 ),
3090 docs: None,
3091 }, 2861 },
3092 }, 2862 },
3093 ], 2863 ],
@@ -3115,18 +2885,10 @@ fn foo(ar<|>g: &dyn Foo) {}
3115 0, 2885 0,
3116 ), 2886 ),
3117 full_range: 0..12, 2887 full_range: 0..12,
3118 focus_range: Some( 2888 focus_range: 6..9,
3119 6..9,
3120 ),
3121 name: "Foo", 2889 name: "Foo",
3122 kind: Some( 2890 kind: Trait,
3123 Trait, 2891 description: "trait Foo",
3124 ),
3125 container_name: None,
3126 description: Some(
3127 "trait Foo",
3128 ),
3129 docs: None,
3130 }, 2892 },
3131 }, 2893 },
3132 ], 2894 ],
@@ -3155,18 +2917,10 @@ fn foo(ar<|>g: &dyn Foo<S>) {}
3155 0, 2917 0,
3156 ), 2918 ),
3157 full_range: 0..15, 2919 full_range: 0..15,
3158 focus_range: Some( 2920 focus_range: 6..9,
3159 6..9,
3160 ),
3161 name: "Foo", 2921 name: "Foo",
3162 kind: Some( 2922 kind: Trait,
3163 Trait, 2923 description: "trait Foo",
3164 ),
3165 container_name: None,
3166 description: Some(
3167 "trait Foo",
3168 ),
3169 docs: None,
3170 }, 2924 },
3171 }, 2925 },
3172 HoverGotoTypeData { 2926 HoverGotoTypeData {
@@ -3176,18 +2930,10 @@ fn foo(ar<|>g: &dyn Foo<S>) {}
3176 0, 2930 0,
3177 ), 2931 ),
3178 full_range: 16..27, 2932 full_range: 16..27,
3179 focus_range: Some( 2933 focus_range: 23..24,
3180 23..24,
3181 ),
3182 name: "S", 2934 name: "S",
3183 kind: Some( 2935 kind: Struct,
3184 Struct, 2936 description: "struct S",
3185 ),
3186 container_name: None,
3187 description: Some(
3188 "struct S",
3189 ),
3190 docs: None,
3191 }, 2937 },
3192 }, 2938 },
3193 ], 2939 ],
@@ -3219,18 +2965,10 @@ fn foo(a<|>rg: &impl ImplTrait<B<dyn DynTrait<B<S>>>>) {}
3219 0, 2965 0,
3220 ), 2966 ),
3221 full_range: 0..21, 2967 full_range: 0..21,
3222 focus_range: Some( 2968 focus_range: 6..15,
3223 6..15,
3224 ),
3225 name: "ImplTrait", 2969 name: "ImplTrait",
3226 kind: Some( 2970 kind: Trait,
3227 Trait, 2971 description: "trait ImplTrait",
3228 ),
3229 container_name: None,
3230 description: Some(
3231 "trait ImplTrait",
3232 ),
3233 docs: None,
3234 }, 2972 },
3235 }, 2973 },
3236 HoverGotoTypeData { 2974 HoverGotoTypeData {
@@ -3240,18 +2978,10 @@ fn foo(a<|>rg: &impl ImplTrait<B<dyn DynTrait<B<S>>>>) {}
3240 0, 2978 0,
3241 ), 2979 ),
3242 full_range: 43..57, 2980 full_range: 43..57,
3243 focus_range: Some( 2981 focus_range: 50..51,
3244 50..51,
3245 ),
3246 name: "B", 2982 name: "B",
3247 kind: Some( 2983 kind: Struct,
3248 Struct, 2984 description: "struct B",
3249 ),
3250 container_name: None,
3251 description: Some(
3252 "struct B",
3253 ),
3254 docs: None,
3255 }, 2985 },
3256 }, 2986 },
3257 HoverGotoTypeData { 2987 HoverGotoTypeData {
@@ -3261,18 +2991,10 @@ fn foo(a<|>rg: &impl ImplTrait<B<dyn DynTrait<B<S>>>>) {}
3261 0, 2991 0,
3262 ), 2992 ),
3263 full_range: 22..42, 2993 full_range: 22..42,
3264 focus_range: Some( 2994 focus_range: 28..36,
3265 28..36,
3266 ),
3267 name: "DynTrait", 2995 name: "DynTrait",
3268 kind: Some( 2996 kind: Trait,
3269 Trait, 2997 description: "trait DynTrait",
3270 ),
3271 container_name: None,
3272 description: Some(
3273 "trait DynTrait",
3274 ),
3275 docs: None,
3276 }, 2998 },
3277 }, 2999 },
3278 HoverGotoTypeData { 3000 HoverGotoTypeData {
@@ -3282,18 +3004,10 @@ fn foo(a<|>rg: &impl ImplTrait<B<dyn DynTrait<B<S>>>>) {}
3282 0, 3004 0,
3283 ), 3005 ),
3284 full_range: 58..69, 3006 full_range: 58..69,
3285 focus_range: Some( 3007 focus_range: 65..66,
3286 65..66,
3287 ),
3288 name: "S", 3008 name: "S",
3289 kind: Some( 3009 kind: Struct,
3290 Struct, 3010 description: "struct S",
3291 ),
3292 container_name: None,
3293 description: Some(
3294 "struct S",
3295 ),
3296 docs: None,
3297 }, 3011 },
3298 }, 3012 },
3299 ], 3013 ],
@@ -3332,18 +3046,10 @@ fn main() { let s<|>t = test().get(); }
3332 0, 3046 0,
3333 ), 3047 ),
3334 full_range: 0..62, 3048 full_range: 0..62,
3335 focus_range: Some( 3049 focus_range: 6..9,
3336 6..9,
3337 ),
3338 name: "Foo", 3050 name: "Foo",
3339 kind: Some( 3051 kind: Trait,
3340 Trait, 3052 description: "trait Foo",
3341 ),
3342 container_name: None,
3343 description: Some(
3344 "trait Foo",
3345 ),
3346 docs: None,
3347 }, 3053 },
3348 }, 3054 },
3349 ], 3055 ],