-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #103279 - compiler-errors:normalize-hack-back, r=lcnr
Add eval hack in `super_relate_consts` back Partially reverts 01adb7e. This extra eval call *still* needs to happen, for example, in `normalize_param_env_or_error` when a param-env predicate has an unnormalized constant, since the param-env candidates never get normalized during candidate assembly (everywhere else we can assume that they are normalized fully). r? `@lcnr,` though I feel like I've assigned quite a few PRs to you in the last few days, so feel free to reassign to someone else familiar with this code if you're busy! cc #103243 (fixes the issue, but don't want to auto-close that until a backport is performed).
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// check-pass | ||
|
||
pub trait CSpace<const N: usize> { | ||
type Traj; | ||
} | ||
|
||
pub struct Const<const R: usize>; | ||
|
||
pub trait Obstacle<CS, const N: usize> { | ||
fn trajectory_free<FT, S1>(&self, t: &FT) | ||
where | ||
CS::Traj: Sized, | ||
CS: CSpace<N>; | ||
} | ||
|
||
// ----- | ||
|
||
const N: usize = 4; | ||
|
||
struct ObstacleSpace2df32; | ||
|
||
impl<CS> Obstacle<CS, N> for ObstacleSpace2df32 { | ||
fn trajectory_free<TF, S1>(&self, t: &TF) | ||
where | ||
CS::Traj: Sized, | ||
CS: CSpace<N>, | ||
{ | ||
} | ||
} | ||
|
||
fn main() {} |