diff options
| author | Michael Goulet <michael@errs.io> | 2024-02-13 23:49:39 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-02-16 15:07:37 +0000 | 
| commit | 9c25823bb4bba6416ca4b15cd956ae92716f82eb (patch) | |
| tree | f721cae71a460391c47a38917f4dd63574b0aee9 /compiler/rustc_trait_selection/src/solve/mod.rs | |
| parent | 3250e953050be1a6867aac3745742f86ab406361 (diff) | |
| download | rust-9c25823bb4bba6416ca4b15cd956ae92716f82eb.tar.gz rust-9c25823bb4bba6416ca4b15cd956ae92716f82eb.zip | |
Use extension trait derive
Diffstat (limited to 'compiler/rustc_trait_selection/src/solve/mod.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/mod.rs | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/compiler/rustc_trait_selection/src/solve/mod.rs b/compiler/rustc_trait_selection/src/solve/mod.rs index 94a3cef8ad1..11e1e72e04e 100644 --- a/compiler/rustc_trait_selection/src/solve/mod.rs +++ b/compiler/rustc_trait_selection/src/solve/mod.rs @@ -61,10 +61,7 @@ enum GoalEvaluationKind { Nested { is_normalizes_to_hack: IsNormalizesToHack }, } -trait CanonicalResponseExt { - fn has_no_inference_or_external_constraints(&self) -> bool; -} - +#[extension] impl<'tcx> CanonicalResponseExt for Canonical<'tcx, Response<'tcx>> { fn has_no_inference_or_external_constraints(&self) -> bool { self.value.external_constraints.region_constraints.is_empty() | 
