Skip to content

Commit 1d898c7

Browse files
committed
adjust a comment
We can't remove `TraitUpcasting` variant, since we need to use the index in winnowing.
1 parent 3fee872 commit 1d898c7

File tree

1 file changed

+1
-3
lines changed
  • compiler/rustc_type_ir/src/solve

1 file changed

+1
-3
lines changed

compiler/rustc_type_ir/src/solve/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ pub enum BuiltinImplSource {
176176
Object(usize),
177177
/// A built-in implementation of `Upcast` for trait objects to other trait objects.
178178
///
179-
/// This can be removed when `feature(dyn_upcasting)` is stabilized, since we only
180-
/// use it to detect when upcasting traits in hir typeck. The index is only used
181-
/// for winnowing.
179+
/// The index is only used for winnowing.
182180
TraitUpcasting(usize),
183181
/// Unsizing a tuple like `(A, B, ..., X)` to `(A, B, ..., Y)` if `X` unsizes to `Y`.
184182
///

0 commit comments

Comments
 (0)