You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #18205 - noahmbright:object_safety, r=HKalbasi
Rename object_safety
First PR here (yay!), so I read some of the getting started docs. There are a couple references to `handlers.rs`, which as far as I can tell has been refactored into `handlers/*.rs`. I made some tweaks to that in one commit. There is one fixme about a function called `to_lsp_runnable`, which I can't find anywhere at all. I can update that if I get some more info there.
Otherwise I changed references to object safety, is object safe, etc., trying to match case/style as I went. There was one case I found where there's a trait from somewhere else called `is_object_safe`, which I found defined in my cargo registry. I didn't touch that for now, just marked it with a fixme
let generic_params = db.generic_params(item.into());
352
355
if !generic_params.is_empty(){
353
-
cb(ObjectSafetyViolation::GAT(it))
356
+
cb(DynCompatibilityViolation::GAT(it))
354
357
}else{
355
358
ControlFlow::Continue(())
356
359
}
@@ -469,7 +472,7 @@ fn receiver_is_dispatchable(
469
472
returnfalse;
470
473
};
471
474
472
-
// `self: Self` can't be dispatched on, but this is already considered object safe.
475
+
// `self: Self` can't be dispatched on, but this is already considered dyn compatible
473
476
// See rustc's comment on https://github.com/rust-lang/rust/blob/3f121b9461cce02a703a0e7e450568849dfaa074/compiler/rustc_trait_selection/src/traits/object_safety.rs#L433-L437
0 commit comments