@@ -103,7 +103,7 @@ mod prim_bool {}
103
103
/// behaviour of the `!` type - expressions with type `!` will coerce into any other type.
104
104
///
105
105
/// [`u32`]: prim@u32
106
- #[ doc = concat ! ( "[`exit`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/process_exit.md") ) ) ]
106
+ #[ doc = concat ! ( "[`exit`]: " , include_str!( "../primitive_docs/process_exit.md" ) ) ]
107
107
///
108
108
/// # `!` and generics
109
109
///
@@ -188,7 +188,7 @@ mod prim_bool {}
188
188
/// because `!` coerces to `Result<!, ConnectionError>` automatically.
189
189
///
190
190
/// [`String::from_str`]: str::FromStr::from_str
191
- #[ doc = concat ! ( "[`String`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/string_string.md") ) ) ]
191
+ #[ doc = concat ! ( "[`String`]: " , include_str!( "../primitive_docs/string_string.md" ) ) ]
192
192
/// [`FromStr`]: str::FromStr
193
193
///
194
194
/// # `!` and traits
@@ -264,7 +264,7 @@ mod prim_bool {}
264
264
/// `impl` for this which simply panics, but the same is true for any type (we could `impl
265
265
/// Default` for (eg.) [`File`] by just making [`default()`] panic.)
266
266
///
267
- #[ doc = concat ! ( "[`File`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/fs_file.md") ) ) ]
267
+ #[ doc = concat ! ( "[`File`]: " , include_str!( "../primitive_docs/fs_file.md" ) ) ]
268
268
/// [`Debug`]: fmt::Debug
269
269
/// [`default()`]: Default::default
270
270
///
@@ -303,7 +303,7 @@ mod prim_never {}
303
303
/// assert_eq!(5, s.len() * std::mem::size_of::<u8>());
304
304
/// ```
305
305
///
306
- #[ doc = concat ! ( "[`String`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/string_string.md") ) ) ]
306
+ #[ doc = concat ! ( "[`String`]: " , include_str!( "../primitive_docs/string_string.md" ) ) ]
307
307
///
308
308
/// As always, remember that a human intuition for 'character' might not map to
309
309
/// Unicode's definitions. For example, despite looking similar, the 'é'
@@ -495,7 +495,7 @@ mod prim_unit {}
495
495
/// [`null_mut`]: ptr::null_mut
496
496
/// [`is_null`]: pointer::is_null
497
497
/// [`offset`]: pointer::offset
498
- #[ doc = concat ! ( "[`into_raw`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/box_into_raw.md") ) ) ]
498
+ #[ doc = concat ! ( "[`into_raw`]: " , include_str!( "../primitive_docs/box_into_raw.md" ) ) ]
499
499
/// [`drop`]: mem::drop
500
500
/// [`write`]: ptr::write
501
501
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1125,7 +1125,7 @@ mod prim_usize {}
1125
1125
/// [`std::fmt`]: fmt
1126
1126
/// ['Pointer`]: fmt::Pointer
1127
1127
/// [`Hash`]: hash::Hash
1128
- #[ doc = concat ! ( "[`ToSocketAddrs`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/net_tosocketaddrs.md") ) ) ]
1128
+ #[ doc = concat ! ( "[`ToSocketAddrs`]: " , include_str!( "../primitive_docs/net_tosocketaddrs.md" ) ) ]
1129
1129
///
1130
1130
/// `&mut T` references get all of the above except `ToSocketAddrs`, plus the following, if `T`
1131
1131
/// implements that trait:
@@ -1146,10 +1146,10 @@ mod prim_usize {}
1146
1146
///
1147
1147
/// [`FusedIterator`]: iter::FusedIterator
1148
1148
/// [`TrustedLen`]: iter::TrustedLen
1149
- #[ doc = concat ! ( "[`Seek`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/io_seek.md") ) ) ]
1150
- #[ doc = concat ! ( "[`BufRead`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/io_bufread.md") ) ) ]
1151
- #[ doc = concat ! ( "[`Read`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/io_read.md") ) ) ]
1152
- #[ doc = concat ! ( "[`io::Write`]: " , include_str!( concat! ( "../../" , env! ( "CARGO_PKG_NAME" ) , "/ primitive_docs/io_write.md") ) ) ]
1149
+ #[ doc = concat ! ( "[`Seek`]: " , include_str!( "../primitive_docs/io_seek.md" ) ) ]
1150
+ #[ doc = concat ! ( "[`BufRead`]: " , include_str!( "../primitive_docs/io_bufread.md" ) ) ]
1151
+ #[ doc = concat ! ( "[`Read`]: " , include_str!( "../primitive_docs/io_read.md" ) ) ]
1152
+ #[ doc = concat ! ( "[`io::Write`]: " , include_str!( "../primitive_docs/io_write.md" ) ) ]
1153
1153
///
1154
1154
/// Note that due to method call deref coercion, simply calling a trait method will act like they
1155
1155
/// work on references as well as they do on owned values! The implementations described here are
0 commit comments