about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-10 21:10:30 +0000
committerbors <bors@rust-lang.org>2023-11-10 21:10:30 +0000
commitedf0b1db0a7f29d71ee82cfc53bdc170fe74e501 (patch)
treedab3db0f1a5fa0a97281f6097a3ac80c070eaf2a /compiler/rustc_codegen_llvm/src
parentd4c86cfc4984293d642e5b4f7eece60a6e83e264 (diff)
parent56a109d15b5c538bb0f98739c274aa4d81d38f1a (diff)
downloadrust-edf0b1db0a7f29d71ee82cfc53bdc170fe74e501.tar.gz
rust-edf0b1db0a7f29d71ee82cfc53bdc170fe74e501.zip
Auto merge of #115229 - iSwapna:issue-115222-fix, r=estebank
On method chain expression failure, look for missing method in earlier segments of the chain

This PR tries to fix the issue: https://github.com/rust-lang/rust/issues/115222

As suggested by `@estebank` , I did the following:
1. Add new test `tests/ui/structs/method-chain-expression-failure.rs`
2. In `compiler/rusct_hir_tycheck/src/method/suggest.rs`
   walking up the method chain and calling `probe_for_name` with the method name. But the call fails to return `Ok`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions