@@ -103,7 +103,7 @@ mod prim_bool {}
103103/// behaviour of the `!` type - expressions with type `!` will coerce into any other type.
104104///
105105/// [`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" ) ) ]
107107///
108108/// # `!` and generics
109109///
@@ -188,7 +188,7 @@ mod prim_bool {}
188188/// because `!` coerces to `Result<!, ConnectionError>` automatically.
189189///
190190/// [`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" ) ) ]
192192/// [`FromStr`]: str::FromStr
193193///
194194/// # `!` and traits
@@ -264,7 +264,7 @@ mod prim_bool {}
264264/// `impl` for this which simply panics, but the same is true for any type (we could `impl
265265/// Default` for (eg.) [`File`] by just making [`default()`] panic.)
266266///
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" ) ) ]
268268/// [`Debug`]: fmt::Debug
269269/// [`default()`]: Default::default
270270///
@@ -303,7 +303,7 @@ mod prim_never {}
303303/// assert_eq!(5, s.len() * std::mem::size_of::<u8>());
304304/// ```
305305///
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" ) ) ]
307307///
308308/// As always, remember that a human intuition for 'character' might not map to
309309/// Unicode's definitions. For example, despite looking similar, the 'é'
@@ -495,7 +495,7 @@ mod prim_unit {}
495495/// [`null_mut`]: ptr::null_mut
496496/// [`is_null`]: pointer::is_null
497497/// [`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" ) ) ]
499499/// [`drop`]: mem::drop
500500/// [`write`]: ptr::write
501501#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1125,7 +1125,7 @@ mod prim_usize {}
11251125/// [`std::fmt`]: fmt
11261126/// ['Pointer`]: fmt::Pointer
11271127/// [`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" ) ) ]
11291129///
11301130/// `&mut T` references get all of the above except `ToSocketAddrs`, plus the following, if `T`
11311131/// implements that trait:
@@ -1146,10 +1146,10 @@ mod prim_usize {}
11461146///
11471147/// [`FusedIterator`]: iter::FusedIterator
11481148/// [`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" ) ) ]
11531153///
11541154/// Note that due to method call deref coercion, simply calling a trait method will act like they
11551155/// work on references as well as they do on owned values! The implementations described here are
0 commit comments