diff options
| author | Michael Goulet <michael@errs.io> | 2024-06-01 14:12:34 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-06-03 09:27:52 -0400 |
| commit | 54b2b7d460fd0847508b781219d380231c4fee72 (patch) | |
| tree | e9a3f6b13cfd45e2fc7cbfccdc925647d6bbb0d2 /compiler/rustc_trait_selection/src/regions.rs | |
| parent | 084ccd23901366cef0b2921ae3cd069a74295ad9 (diff) | |
| download | rust-54b2b7d460fd0847508b781219d380231c4fee72.tar.gz rust-54b2b7d460fd0847508b781219d380231c4fee72.zip | |
Make TraitEngines generic over error
Diffstat (limited to 'compiler/rustc_trait_selection/src/regions.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/regions.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/regions.rs b/compiler/rustc_trait_selection/src/regions.rs index 5e0d7da4f06..cca5bce03e1 100644 --- a/compiler/rustc_trait_selection/src/regions.rs +++ b/compiler/rustc_trait_selection/src/regions.rs @@ -1,3 +1,4 @@ +use crate::traits::FulfillmentError; use rustc_infer::infer::outlives::env::OutlivesEnvironment; use rustc_infer::infer::{InferCtxt, RegionResolutionError}; use rustc_macros::extension; @@ -27,7 +28,8 @@ impl<'tcx> InferCtxt<'tcx> { ), ty, ) - .map_err(|_| NoSolution) + // TODO: + .map_err(|_: Vec<FulfillmentError<'tcx>>| NoSolution) } else { Ok(ty) } |
