diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-15 20:13:39 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-15 20:13:39 +0530 |
| commit | c3086c2ef839a42f0cfa00df1b00785a975de8d3 (patch) | |
| tree | e6cfe24e9ef22096f724dad1419f6a2b0c005153 /src/rustllvm/RustWrapper.cpp | |
| parent | 1a26d2364f9da1667ca0098d3cc4a213d131f481 (diff) | |
| parent | 843b174e93b253824a62fba3ac4be2753e30c9c2 (diff) | |
| download | rust-c3086c2ef839a42f0cfa00df1b00785a975de8d3.tar.gz rust-c3086c2ef839a42f0cfa00df1b00785a975de8d3.zip | |
Rollup merge of #33342 - birkenfeld:issue-26472, r=jseyfried
typeck: if a private field exists, also check for a public method For example, `Vec::len` is both a field and a method, and usually encountering `vec.len` just means that the parens were forgotten. Fixes: #26472 NOTE: I added the parameter `allow_private` to `method::exists` since I don't want to suggest inaccessible methods. For the second case, where only the method exists, I think it would make sense to set it to `false` as well, but I wanted to preserve compatibility for this case.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
