Skip to content

Commit ff7cf14

Browse files
committed
rustdoc: Finalize dyn compatibility renaming
1 parent a24bdc6 commit ff7cf14

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/librustdoc/html/render/print_item.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -914,15 +914,14 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
914914
let mut extern_crates = FxIndexSet::default();
915915

916916
if !t.is_dyn_compatible(cx.tcx()) {
917-
// FIXME(dyn_compat_renaming): Update the URL once the Reference is updated.
918917
write_section_heading(
919918
w,
920919
"Dyn Compatibility",
921920
"dyn-compatibility",
922921
None,
923922
format!(
924923
"<div class=\"dyn-compatibility-info\"><p>This trait is <b>not</b> \
925-
<a href=\"{base}/reference/items/traits.html#object-safety\">dyn compatible</a>.</p>\
924+
<a href=\"{base}/reference/items/traits.html#dyn-compatibility\">dyn compatible</a>.</p>\
926925
<p><i>In older versions of Rust, dyn compatibility was called \"object safety\", \
927926
so this trait is not object safe.</i></p></div>",
928927
base = crate::clean::utils::DOC_RUST_LANG_ORG_CHANNEL

tests/rustdoc/sidebar/sidebar-items.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub trait Foo {
2626
}
2727

2828
//@ has foo/trait.DynCompatible.html
29-
//@ !has - '//div[@class="sidebar-elems"]//h3/a[@href="#object-safety"]' ''
29+
//@ !has - '//div[@class="sidebar-elems"]//h3/a[@href="#dyn-compatibility"]' ''
3030
pub trait DynCompatible {
3131
fn access(&self);
3232
}

0 commit comments

Comments
 (0)