File tree 4 files changed +23
-4
lines changed
4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,6 @@ impl FromWithTcx<clean::Type> for Type {
418
418
}
419
419
}
420
420
Generic ( s) => Type :: Generic ( s. to_string ( ) ) ,
421
- Primitive ( clean:: PrimitiveType :: Never ) => Type :: Never ,
422
421
Primitive ( p) => Type :: Primitive ( p. as_sym ( ) . to_string ( ) ) ,
423
422
BareFunction ( f) => Type :: FunctionPointer ( Box :: new ( ( * f) . into_tcx ( tcx) ) ) ,
424
423
Tuple ( t) => Type :: Tuple ( t. into_iter ( ) . map ( |x| x. into_tcx ( tcx) ) . collect ( ) ) ,
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
255
255
)
256
256
} )
257
257
. collect ( ) ,
258
- format_version : 8 ,
258
+ format_version : 9 ,
259
259
} ;
260
260
let mut p = self . out_path . clone ( ) ;
261
261
p. push ( output. index . get ( & output. root ) . unwrap ( ) . name . clone ( ) . unwrap ( ) ) ;
Original file line number Diff line number Diff line change @@ -388,8 +388,6 @@ pub enum Type {
388
388
} ,
389
389
/// `impl TraitA + TraitB + ...`
390
390
ImplTrait ( Vec < GenericBound > ) ,
391
- /// `!`
392
- Never ,
393
391
/// `_`
394
392
Infer ,
395
393
/// `*mut u32`, `*u8`, etc.
Original file line number Diff line number Diff line change
1
+ #![ feature( never_type) ]
2
+
3
+ // @has primitives.json "$.index[*][?(@.name=='PrimNever')].visibility" \"public\"
4
+ // @has - "$.index[*][?(@.name=='PrimNever')].inner.type.kind" \"primitive\"
5
+ // @has - "$.index[*][?(@.name=='PrimNever')].inner.type.inner" \"never\"
6
+ pub type PrimNever = !;
7
+
8
+ // @has - "$.index[*][?(@.name=='PrimStr')].inner.type.kind" \"primitive\"
9
+ // @has - "$.index[*][?(@.name=='PrimStr')].inner.type.inner" \"str\"
10
+ pub type PrimStr = str ;
11
+
12
+ // @has - "$.index[*][?(@.name=='PrimBool')].inner.type.kind" \"primitive\"
13
+ // @has - "$.index[*][?(@.name=='PrimBool')].inner.type.inner" \"bool\"
14
+ pub type PrimBool = bool ;
15
+
16
+ // @has - "$.index[*][?(@.name=='PrimChar')].inner.type.kind" \"primitive\"
17
+ // @has - "$.index[*][?(@.name=='PrimChar')].inner.type.inner" \"char\"
18
+ pub type PrimChar = char ;
19
+
20
+ // @has - "$.index[*][?(@.name=='PrimU8')].inner.type.kind" \"primitive\"
21
+ // @has - "$.index[*][?(@.name=='PrimU8')].inner.type.inner" \"u8\"
22
+ pub type PrimU8 = u8 ;
You can’t perform that action at this time.
0 commit comments