File tree Expand file tree Collapse file tree 8 files changed +12
-8
lines changed Expand file tree Collapse file tree 8 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( const_refs_to_cell) ]
2
+ #![ feature( generic_arg_infer) ]
2
3
#![ feature( const_trait_impl) ]
3
4
#![ feature( naked_functions) ]
4
5
#![ feature( const_mut_refs) ]
@@ -558,7 +559,7 @@ const USB_BUF_CAP: usize = 64;
558
559
/// The queue through which received data is passed from `poll_usb` to
559
560
/// `usb_in_task_body`
560
561
static USB_BUF_IN : PrimaskMutex < RefCell < ( [ u8 ; USB_BUF_CAP ] , usize ) > > =
561
- PrimaskMutex :: new ( RefCell :: new ( ( [ 0 ; USB_BUF_CAP ] , 0 ) ) ) ;
562
+ PrimaskMutex :: new ( RefCell :: new ( ( [ 0 ; _ ] , 0 ) ) ) ;
562
563
563
564
/// USB interrupt handler
564
565
fn poll_usb ( ) {
@@ -705,7 +706,7 @@ mod queue {
705
706
Self {
706
707
st : StaticMutex :: define ( )
707
708
. init ( || QueueSt {
708
- buf : [ T :: INIT ; CAP ] ,
709
+ buf : [ T :: INIT ; _ ] ,
709
710
read_i : 0 ,
710
711
len : 0 ,
711
712
waiting_reader : None ,
Original file line number Diff line number Diff line change @@ -100,11 +100,11 @@ static CORE1_VECTOR_TABLE: VectorTable<[unsafe extern "C" fn(); 48]> = {
100
100
fn _core1_stack_start ( ) ;
101
101
}
102
102
103
- let mut table = [ unhandled as _ ; 48 ] ;
103
+ let mut table = [ unhandled as _ ; _ ] ;
104
104
105
105
let mut i = 0 ;
106
106
let kernel_handler_table = <SystemTraits as r3_kernel:: KernelCfg2 >:: INTERRUPT_HANDLERS ;
107
- while i < 48 {
107
+ while i < table . len ( ) {
108
108
if let Some ( handler) = kernel_handler_table. get ( i) {
109
109
table[ i] = handler;
110
110
}
Original file line number Diff line number Diff line change 1
1
#![ feature( const_refs_to_cell) ]
2
+ #![ feature( generic_arg_infer) ]
2
3
#![ feature( const_trait_impl) ]
3
4
#![ feature( naked_functions) ]
4
5
#![ feature( const_mut_refs) ]
Original file line number Diff line number Diff line change 1
1
#![ feature( const_ptr_offset_from) ]
2
2
#![ feature( const_refs_to_cell) ]
3
+ #![ feature( generic_arg_infer) ]
3
4
#![ feature( const_trait_impl) ]
4
5
#![ feature( naked_functions) ]
5
6
#![ feature( const_mut_refs) ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ impl VectorTable {
15
15
Self {
16
16
// trampolines[N]:
17
17
// ldr pc, [pc, #24] ; targets + N * 4
18
- _trampolines : [ 0xe59ff018 ; 8 ] ,
18
+ _trampolines : [ 0xe59ff018 ; _ ] ,
19
19
// trampolines[N]
20
20
_targets : [
21
21
unhandled_exception_handler,
Original file line number Diff line number Diff line change 1
1
#![ feature( exhaustive_patterns) ]
2
+ #![ feature( generic_arg_infer) ]
2
3
#![ feature( must_not_suspend) ] // `must_not_suspend` lint
3
4
#![ feature( decl_macro) ] // `macro`
4
5
#![ feature( let_else) ] // `let ... = ... else { ... }`
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ impl ReadRtt {
322
322
Self {
323
323
options,
324
324
st : ReadRttSt :: Idle {
325
- buf : Box :: new ( [ 0u8 ; 1024 ] ) ,
325
+ buf : Box :: new ( [ 0u8 ; _ ] ) ,
326
326
session,
327
327
rtt : Box :: new ( rtt) ,
328
328
pos : 0 ,
Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ impl PicobootCmd {
514
514
_addr_size : PicobootCmdArgsAddrSize {
515
515
_addr : addr,
516
516
_size : size,
517
- _pad : [ 0 ; 8 ] ,
517
+ _pad : [ 0 ; _ ] ,
518
518
} ,
519
519
} ,
520
520
}
@@ -534,7 +534,7 @@ impl PicobootCmd {
534
534
_pc : pc,
535
535
_sp : sp,
536
536
_delay_ms : delay_ms,
537
- _pad : [ 0 ; 4 ] ,
537
+ _pad : [ 0 ; _ ] ,
538
538
} ,
539
539
} ,
540
540
}
You can’t perform that action at this time.
0 commit comments