From 52002147134e3d65506b612fe191fafe824d3aa8 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 23 Aug 2022 21:47:31 +0200 Subject: [PATCH] Fix links to error codes --- core/src/marker.rs | 2 +- core/src/ops/drop.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/marker.rs b/core/src/marker.rs index 2c5789795..ab673c623 100644 --- a/core/src/marker.rs +++ b/core/src/marker.rs @@ -343,7 +343,7 @@ pub trait StructuralEq { /// If you try to implement `Copy` on a struct or enum containing non-`Copy` data, you will get /// the error [E0204]. /// -/// [E0204]: ../../error-index.html#E0204 +/// [E0204]: ../../error_codes/E0204.html /// /// ## When *should* my type be `Copy`? /// diff --git a/core/src/ops/drop.rs b/core/src/ops/drop.rs index aa654aa55..de9ddb852 100644 --- a/core/src/ops/drop.rs +++ b/core/src/ops/drop.rs @@ -156,7 +156,7 @@ pub trait Drop { /// handled by the compiler, but when using unsafe code, can sometimes occur /// unintentionally, particularly when using [`ptr::drop_in_place`]. /// - /// [E0040]: ../../error-index.html#E0040 + /// [E0040]: ../../error_codes/E0040.html /// [`panic!`]: crate::panic! /// [`mem::drop`]: drop /// [`ptr::drop_in_place`]: crate::ptr::drop_in_place