about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-10-01 17:46:04 +0200
committerDavid Wood <david@davidtw.co>2018-10-02 00:35:15 +0200
commit43b5d725d0b458e317c52ef200d323998fa0c20f (patch)
tree2173f9fa73cbc837395f77d52dd64251d6bff968 /src/libsyntax/parse/parser.rs
parentf55129d0037c112a80276ee1de0c2245ddc6462c (diff)
downloadrust-43b5d725d0b458e317c52ef200d323998fa0c20f.tar.gz
rust-43b5d725d0b458e317c52ef200d323998fa0c20f.zip
Improve implicit self mutability suggestions.
This commit adds an `ImplicitSelfKind` to the HIR and the MIR that keeps
track of whether a implicit self argument is immutable by-value, mutable
by-value, immutable reference or mutable reference so that the addition
of the `mut` keyword can be suggested for the immutable by-value case.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions