about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-04-02 13:10:40 +1100
committerGitHub <noreply@github.com>2025-04-02 13:10:40 +1100
commit2d43a8b20decd860d7737e10388e9f8974a20664 (patch)
tree743d85b83a1d70b9397888ca91781ce63f0b21ed /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2311b342bc5cf09245d0e5636115a006b6ffa890 (diff)
parent12604fa071b01f7342520224507e43e432294c2c (diff)
downloadrust-2d43a8b20decd860d7737e10388e9f8974a20664.tar.gz
rust-2d43a8b20decd860d7737e10388e9f8974a20664.zip
Rollup merge of #139200 - xizheyin:issue-139174, r=compiler-errors
Skip suggest impl or dyn when poly trait is not a real trait

Fixes #139174
When `poly_trait_ref` is not a real trait, we should stop suggesting `impl` and `dyn` to avoid false positives. 3 cases were added to the ui test.
https://github.com/rust-lang/rust/blob/0b45675cfcec57f30a3794e1a1e18423aa9cf200/compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs#L88-L93

In the first commit, I submitted the test and passed it. In the second commit, I modified the code and we can see the changes in the test.

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