about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-19 17:38:33 +0100
committerGitHub <noreply@github.com>2021-12-19 17:38:33 +0100
commitd576f7d42d4bbcb3e028e3bf451398690b2e0b1f (patch)
treeabbad2b91f6d492f94775ac1b199b2c823bf5b5d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentc088e5092bc1d98784f79a7965c8980a2d9609c3 (diff)
parent375524014f1c0939f4e5a17c841eb49e79982255 (diff)
downloadrust-d576f7d42d4bbcb3e028e3bf451398690b2e0b1f.tar.gz
rust-d576f7d42d4bbcb3e028e3bf451398690b2e0b1f.zip
Rollup merge of #91878 - LegionMammal978:less-inband-infer, r=Aaron1011
Remove `in_band_lifetimes` from `rustc_infer`

See #91867 for more information.

This crate actually had a typo `'ctx` in one of its functions:
```diff
-pub fn same_type_modulo_infer(a: Ty<'tcx>, b: Ty<'ctx>) -> bool {
+pub fn same_type_modulo_infer<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
```
Also, I wasn't entirely sure about the lifetimes in `suggest_new_region_bound`:
```diff
 pub fn suggest_new_region_bound(
-    tcx: TyCtxt<'tcx>,
+    tcx: TyCtxt<'_>,
     err: &mut DiagnosticBuilder<'_>,
     fn_returns: Vec<&rustc_hir::Ty<'_>>,
```
Should all of those lifetimes really be distinct?
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions