Skip to content

Commit bc1d68e

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

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ pub enum BuiltinImplSource {
179179
Object(usize),
180180
/// A built-in implementation of `Upcast` for trait objects to other trait objects.
181181
///
182-
/// This can be removed when `feature(dyn_upcasting)` is stabilized, since we only
183-
/// use it to detect when upcasting traits in hir typeck. The index is only used
184-
/// for winnowing.
182+
/// The index is only used for winnowing.
185183
TraitUpcasting(usize),
186184
/// Unsizing a tuple like `(A, B, ..., X)` to `(A, B, ..., Y)` if `X` unsizes to `Y`.
187185
///

0 commit comments

Comments
 (0)