rust/compiler
Dylan DPC b6780b3a20
Rollup merge of #83669 - kwj2104:issue-81508-fix, r=varkor
Issue 81508 fix

Fix #81508

**Problem**: When variable name is used incorrectly as path, error and warning point to undeclared/unused name, when in fact the name is used, just incorrectly (should be used as a variable, not part of a path).

**Summary for fix**: When path resolution errs, diagnostics checks for variables in ```ValueNS``` that have the same name (e.g., variable rather than path named Foo), and adds additional suggestion that user may actually intend to use the variable name rather than a path.

The fix does not suppress or otherwise change the *warning* that results. I did not find a straightforward way in the code to modify this, but would love to make changes here as well with any guidance.
2021-04-12 01:04:03 +02:00
..
2021-04-04 14:10:26 -07:00
2021-03-26 09:32:31 -07:00
2021-03-27 22:16:33 -04:00
2021-04-04 14:57:05 -04:00
2021-03-27 22:16:33 -04:00
2021-03-26 09:32:31 -07:00
2021-04-08 08:03:18 -07:00
2021-03-23 17:16:20 +00:00
2021-04-08 08:03:18 -07:00
2021-03-31 10:15:27 -04:00