]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/reachable.rs
Auto merge of #61203 - memoryruins:bare_trait_objects, r=Centril
[rust.git] / src / librustc / middle / reachable.rs
index e58083b5b76267458e78f9ac7c35e359a7276709..c9835dbd5e78f22845da1bede2fdc8b225720755 100644 (file)
@@ -118,7 +118,7 @@ fn visit_expr(&mut self, expr: &'tcx hir::Expr) {
                             // If this path leads to a constant, then we need to
                             // recurse into the constant to continue finding
                             // items that are reachable.
-                            Res::Def(DefKind::Const, _) | Res::Def(DefKind::AssociatedConst, _) => {
+                            Res::Def(DefKind::Const, _) | Res::Def(DefKind::AssocConst, _) => {
                                 self.worklist.push(hir_id);
                             }