about summary refs log tree commit diff
path: root/src/librustdoc/html/static/source-script.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-14 20:36:12 +0000
committerbors <bors@rust-lang.org>2018-12-14 20:36:12 +0000
commit96d1334e567237b1507cd277938e7ae2de75ff51 (patch)
treefe65d9a14a288c1ae63fb45ac2a59030646d5646 /src/librustdoc/html/static/source-script.js
parent1897657ef09eea3d0b0afbbbd154a12fbb8fbf3f (diff)
parent9de6beeae28841d7a8b6bc06d6b66a30c723939d (diff)
downloadrust-96d1334e567237b1507cd277938e7ae2de75ff51.tar.gz
rust-96d1334e567237b1507cd277938e7ae2de75ff51.zip
Auto merge of #56572 - kevgrasso:let_self_err_dev, r=estebank
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.
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions