about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-11 15:23:32 +0100
committerGitHub <noreply@github.com>2024-11-11 15:23:32 +0100
commitd4abc3183dffec48c04b9b6cd3ca5e87578f0319 (patch)
tree899ce1162a232b7f72cdc0da6512728f56c298a2 /compiler/rustc_trait_selection/src/errors.rs
parent71042b4b201a432b426304f511b3169850ed8923 (diff)
parentaee8152805c7439720ef1aec9d2a723ba5957ca7 (diff)
downloadrust-d4abc3183dffec48c04b9b6cd3ca5e87578f0319.tar.gz
rust-d4abc3183dffec48c04b9b6cd3ca5e87578f0319.zip
Rollup merge of #129627 - dingxiangfei2009:ensure-tail-expr-in-let-block-works, r=jieyouxu
Ensure that tail expr receive lifetime extension

cc `@jieyouxu` `@traviscross`

It just came to me that we should add a test to make sure that we honor the contract from the temporary lifetime rule #121346. We should continue to implement this rule in Edition 2021 onward and shorter tail expression lifetime should not override it.

This is a small PR to improve our assurance and establish a stronger contract.

Tracked by rust-lang/rust#123739
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
0 files changed, 0 insertions, 0 deletions