Contexually dependent error message for E0424 when value is assigned to "self" This is an improvement for pull request #54495 referencing issue #54369. If the "self" keyword is assigned a value as though it were a valid identifier, it will now report: ``` let self = "self"; ^^^^ `self` value is a keyword and may not be bound to variables or shadowed ``` instead of ``` let self = "self"; ^^^^ `self` value is a keyword only available in methods with `self` parameter ``` If anyone has a better idea for what the error should be I'd be happy to modify it appropriately. |
||
|---|---|---|
| .. | ||
| build_reduced_graph.rs | ||
| Cargo.toml | ||
| check_unused.rs | ||
| diagnostics.rs | ||
| error_reporting.rs | ||
| lib.rs | ||
| macros.rs | ||
| resolve_imports.rs | ||