diff options
| author | Daniel J Rollins <daniel@djrollins.io> | 2016-03-05 00:26:45 +0000 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-03-19 22:06:41 +0530 |
| commit | 2dd5776b1110a24d9ceb1d1f89dd684d0e63fbf7 (patch) | |
| tree | d7c45eef245bed161a49111952f38734dda298d8 /src/rustllvm/RustWrapper.cpp | |
| parent | 7c66a89849b2d0025121a0898c4ab298da8814bf (diff) | |
| download | rust-2dd5776b1110a24d9ceb1d1f89dd684d0e63fbf7.tar.gz rust-2dd5776b1110a24d9ceb1d1f89dd684d0e63fbf7.zip | |
Add note if method is called on a function object
Fixes issue #29124.
If method is called on a function type a note is generated to suggest
that the developer may have forgotten to call it.
e.g.
fn main() {
let mut guess = String::new();
std::io::stdin.read_line(&mut guess);
}
will generate the note:
note: called method on function type. did you mean `std::io::stdin().read_line(..)`?
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
