diff options
| author | Ellen <supbscripter@gmail.com> | 2022-08-01 15:42:38 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2022-08-01 15:42:38 +0100 |
| commit | 825a7cc65c4b21fd4f1b8f3b9ad204594de1e8c2 (patch) | |
| tree | cecde661d63e82a93e92a2729f7d861b466f0683 /compiler/rustc_infer/src/infer/mod.rs | |
| parent | 1f5d8d49eb6111931091f700d07518cd2b80bc18 (diff) | |
| download | rust-825a7cc65c4b21fd4f1b8f3b9ad204594de1e8c2.tar.gz rust-825a7cc65c4b21fd4f1b8f3b9ad204594de1e8c2.zip | |
make `PlaceholderConst` not store the type of the const
Diffstat (limited to 'compiler/rustc_infer/src/infer/mod.rs')
| -rw-r--r-- | compiler/rustc_infer/src/infer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/mod.rs b/compiler/rustc_infer/src/infer/mod.rs index 6d5f4993d8d..34c22b9fcd2 100644 --- a/compiler/rustc_infer/src/infer/mod.rs +++ b/compiler/rustc_infer/src/infer/mod.rs @@ -2069,7 +2069,7 @@ fn replace_param_and_infer_substs_with_placeholder<'tcx>( ty, kind: ty::ConstKind::Placeholder(ty::PlaceholderConst { universe: ty::UniverseIndex::ROOT, - name: ty::BoundConst { ty, var: ty::BoundVar::from_usize(idx) }, + name: ty::BoundVar::from_usize(idx), }), }) .into() |
