diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-04-06 20:22:12 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-04-06 20:24:24 +0200 |
| commit | 4a1423337ff311e81fd19c4166f08559b33f8b5b (patch) | |
| tree | e66bfd3602f4741f8f1876f961da97ba069b0d18 /crates/ide/src/syntax_highlighting/test_data | |
| parent | 7959c248761081fc9d38c84d0d8b0ad60d20771d (diff) | |
| download | rust-4a1423337ff311e81fd19c4166f08559b33f8b5b.tar.gz rust-4a1423337ff311e81fd19c4166f08559b33f8b5b.zip | |
fix: Attempt to resolve paths in const arguments heuristically
While we don't support const args in type inference yet, we can at least make use of the fallback path resolution to resolve paths in const args in the IDE layer to enable some features for them.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/test_data')
| -rw-r--r-- | crates/ide/src/syntax_highlighting/test_data/highlight_general.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/test_data/highlight_general.html b/crates/ide/src/syntax_highlighting/test_data/highlight_general.html index 1abb6eb8f39..7bb7ddd2804 100644 --- a/crates/ide/src/syntax_highlighting/test_data/highlight_general.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_general.html @@ -118,6 +118,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd <span class="brace">}</span> <span class="keyword">fn</span> <span class="function declaration">const_param</span><span class="angle"><</span><span class="keyword">const</span> <span class="const_param declaration">FOO</span><span class="colon">:</span> <span class="builtin_type">usize</span><span class="angle">></span><span class="parenthesis">(</span><span class="parenthesis">)</span> <span class="operator">-></span> <span class="builtin_type">usize</span> <span class="brace">{</span> + <span class="function">const_param</span><span class="operator">::</span><span class="angle"><</span><span class="brace">{</span> <span class="const_param">FOO</span> <span class="brace">}</span><span class="angle">></span><span class="parenthesis">(</span><span class="parenthesis">)</span><span class="semicolon">;</span> <span class="const_param">FOO</span> <span class="brace">}</span> |
