@@ -4,8 +4,8 @@ use crate::nameres::{self, RUST_SRC_PATH};
44use rustc_ast:: ast:: { IntTy , LitIntType , UintTy } ;
55use std:: path:: PathBuf ;
66
7- const PRIM_DOC : & str = "libstd /primitive_docs.rs" ;
8- const KEY_DOC : & str = "libstd /keyword_docs.rs" ;
7+ const PRIM_DOC : & str = "std/src /primitive_docs.rs" ;
8+ const KEY_DOC : & str = "std/src /keyword_docs.rs" ;
99
1010#[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1111pub enum PrimKind {
@@ -83,27 +83,27 @@ impl PrimKind {
8383 match self {
8484 PrimKind :: Bool => None ,
8585 PrimKind :: Never => None ,
86- PrimKind :: Char => Some ( & [ "libcore /char/methods.rs" ] ) ,
86+ PrimKind :: Char => Some ( & [ "core/src /char/methods.rs" ] ) ,
8787 PrimKind :: Unit => None ,
88- PrimKind :: Pointer => Some ( & [ "libcore /ptr.rs" ] ) ,
88+ PrimKind :: Pointer => Some ( & [ "core/src /ptr.rs" ] ) ,
8989 PrimKind :: Array => None ,
90- PrimKind :: Slice => Some ( & [ "libcore/ slice/mod.rs" , "liballoc /slice.rs" ] ) ,
91- PrimKind :: Str => Some ( & [ "libcore/ str/mod.rs" , "liballoc /str.rs" ] ) ,
90+ PrimKind :: Slice => Some ( & [ "core/src/ slice/mod.rs" , "alloc/src /slice.rs" ] ) ,
91+ PrimKind :: Str => Some ( & [ "core/src/ str/mod.rs" , "alloc/src /str.rs" ] ) ,
9292 PrimKind :: Tuple => None ,
93- PrimKind :: F32 => Some ( & [ "libstd/ f32.rs" , "libcore /num/f32.rs" ] ) ,
94- PrimKind :: F64 => Some ( & [ "libstd/ f64.rs" , "libcore /num/f64.rs" ] ) ,
95- PrimKind :: I8 => Some ( & [ "libcore /num/mod.rs" ] ) ,
96- PrimKind :: I16 => Some ( & [ "libcore /num/mod.rs" ] ) ,
97- PrimKind :: I32 => Some ( & [ "libcore /num/mod.rs" ] ) ,
98- PrimKind :: I64 => Some ( & [ "libcore /num/mod.rs" ] ) ,
99- PrimKind :: I128 => Some ( & [ "libcore /num/mod.rs" ] ) ,
100- PrimKind :: U8 => Some ( & [ "libcore /num/mod.rs" ] ) ,
101- PrimKind :: U16 => Some ( & [ "libcore /num/mod.rs" ] ) ,
102- PrimKind :: U32 => Some ( & [ "libcore /num/mod.rs" ] ) ,
103- PrimKind :: U64 => Some ( & [ "libcore /num/mod.rs" ] ) ,
104- PrimKind :: U128 => Some ( & [ "libcore /num/mod.rs" ] ) ,
105- PrimKind :: Isize => Some ( & [ "libcore /num/mod.rs" ] ) ,
106- PrimKind :: Usize => Some ( & [ "libcore /num/mod.rs" ] ) ,
93+ PrimKind :: F32 => Some ( & [ "std/src/ f32.rs" , "core/src /num/f32.rs" ] ) ,
94+ PrimKind :: F64 => Some ( & [ "std/src/ f64.rs" , "core/src /num/f64.rs" ] ) ,
95+ PrimKind :: I8 => Some ( & [ "core/src /num/mod.rs" ] ) ,
96+ PrimKind :: I16 => Some ( & [ "core/src /num/mod.rs" ] ) ,
97+ PrimKind :: I32 => Some ( & [ "core/src /num/mod.rs" ] ) ,
98+ PrimKind :: I64 => Some ( & [ "core/src /num/mod.rs" ] ) ,
99+ PrimKind :: I128 => Some ( & [ "core/src /num/mod.rs" ] ) ,
100+ PrimKind :: U8 => Some ( & [ "core/src /num/mod.rs" ] ) ,
101+ PrimKind :: U16 => Some ( & [ "core/src /num/mod.rs" ] ) ,
102+ PrimKind :: U32 => Some ( & [ "core/src /num/mod.rs" ] ) ,
103+ PrimKind :: U64 => Some ( & [ "core/src /num/mod.rs" ] ) ,
104+ PrimKind :: U128 => Some ( & [ "core/src /num/mod.rs" ] ) ,
105+ PrimKind :: Isize => Some ( & [ "core/src /num/mod.rs" ] ) ,
106+ PrimKind :: Usize => Some ( & [ "core/src /num/mod.rs" ] ) ,
107107 PrimKind :: Ref => None ,
108108 PrimKind :: Fn => None ,
109109 PrimKind :: Await => None ,
0 commit comments