about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-09-16 12:34:21 +0200
committerGitHub <noreply@github.com>2020-09-16 12:34:21 +0200
commit3f9e7fc0497a08983078cbe987af79f131da6419 (patch)
treed8a81a3a6ed44da399a38d35af845c53bebd6290 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent54d77285fcba0ab3d9d5ad8ff8a02bd6187bcf58 (diff)
parent035f8791668406bc49fc315253835cbdec247549 (diff)
downloadrust-3f9e7fc0497a08983078cbe987af79f131da6419.tar.gz
rust-3f9e7fc0497a08983078cbe987af79f131da6419.zip
Rollup merge of #76699 - lcnr:const-infer-err, r=varkor
improve const infer error

cc #72328

reduces it from
```
error[E0282]: type annotations needed
  --> src/main.rs:17:5
   |
17 |     Foo.bar().bar().bar().bar().baz();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: unable to infer the value of a const parameter
```
to
```
error[E0282]: type annotations needed
  --> $DIR/method-chain.rs:21:33
   |
LL |     Foo.bar().bar().bar().bar().baz();
   |                                 ^^^
   |
   = note: cannot infer the value of the const parameter `N`
```

r? @varkor
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions