diff options
| author | Tawan Muadmuenwai <modhanami@gmail.com> | 2025-09-15 21:24:57 +0700 |
|---|---|---|
| committer | Tawan Muadmuenwai <modhanami@gmail.com> | 2025-09-16 23:04:59 +0700 |
| commit | 6912631d3ead427848a559ef5af66ab6f30e79ed (patch) | |
| tree | 8172b0a5542abab57887a087b4d2ef334cb15788 /compiler/rustc_trait_selection/src | |
| parent | d1ed52b1f5b78bf66127b670af813b84d57aeedb (diff) | |
| download | rust-6912631d3ead427848a559ef5af66ab6f30e79ed.tar.gz rust-6912631d3ead427848a559ef5af66ab6f30e79ed.zip | |
Add span for struct tail recursion limit error
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/project.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/project.rs b/compiler/rustc_trait_selection/src/traits/project.rs index 884d53732fe..042d6def84c 100644 --- a/compiler/rustc_trait_selection/src/traits/project.rs +++ b/compiler/rustc_trait_selection/src/traits/project.rs @@ -1057,6 +1057,7 @@ fn assemble_candidates_from_impls<'cx, 'tcx>( Some(LangItem::PointeeTrait) => { let tail = selcx.tcx().struct_tail_raw( self_ty, + &obligation.cause, |ty| { // We throw away any obligations we get from this, since we normalize // and confirm these obligations once again during confirmation |
