Skip to content

Commit 76df6ea

Browse files
committed
Merge branch '♻️-generic-arg-infer' into 🦆
2 parents a753071 + a81328a commit 76df6ea

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
lines changed

examples/basic_wio_terminal/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(const_refs_to_cell)]
2+
#![feature(generic_arg_infer)]
23
#![feature(const_trait_impl)]
34
#![feature(naked_functions)]
45
#![feature(const_mut_refs)]
@@ -558,7 +559,7 @@ const USB_BUF_CAP: usize = 64;
558559
/// The queue through which received data is passed from `poll_usb` to
559560
/// `usb_in_task_body`
560561
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)));
562563

563564
/// USB interrupt handler
564565
fn poll_usb() {
@@ -705,7 +706,7 @@ mod queue {
705706
Self {
706707
st: StaticMutex::define()
707708
.init(|| QueueSt {
708-
buf: [T::INIT; CAP],
709+
buf: [T::INIT; _],
709710
read_i: 0,
710711
len: 0,
711712
waiting_reader: None,

examples/smp_rp_pico/src/core1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ static CORE1_VECTOR_TABLE: VectorTable<[unsafe extern "C" fn(); 48]> = {
100100
fn _core1_stack_start();
101101
}
102102

103-
let mut table = [unhandled as _; 48];
103+
let mut table = [unhandled as _; _];
104104

105105
let mut i = 0;
106106
let kernel_handler_table = <SystemTraits as r3_kernel::KernelCfg2>::INTERRUPT_HANDLERS;
107-
while i < 48 {
107+
while i < table.len() {
108108
if let Some(handler) = kernel_handler_table.get(i) {
109109
table[i] = handler;
110110
}

examples/smp_rp_pico/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(const_refs_to_cell)]
2+
#![feature(generic_arg_infer)]
23
#![feature(const_trait_impl)]
34
#![feature(naked_functions)]
45
#![feature(const_mut_refs)]

src/r3_port_arm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![feature(const_ptr_offset_from)]
22
#![feature(const_refs_to_cell)]
3+
#![feature(generic_arg_infer)]
34
#![feature(const_trait_impl)]
45
#![feature(naked_functions)]
56
#![feature(const_mut_refs)]

src/r3_port_arm/src/startup/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl VectorTable {
1515
Self {
1616
// trampolines[N]:
1717
// ldr pc, [pc, #24] ; targets + N * 4
18-
_trampolines: [0xe59ff018; 8],
18+
_trampolines: [0xe59ff018; _],
1919
// trampolines[N]
2020
_targets: [
2121
unhandled_exception_handler,

src/r3_test_runner/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(exhaustive_patterns)]
2+
#![feature(generic_arg_infer)]
23
#![feature(must_not_suspend)] // `must_not_suspend` lint
34
#![feature(decl_macro)] // `macro`
45
#![feature(let_else)] // `let ... = ... else { ... }`

src/r3_test_runner/src/targets/probe_rs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ impl ReadRtt {
322322
Self {
323323
options,
324324
st: ReadRttSt::Idle {
325-
buf: Box::new([0u8; 1024]),
325+
buf: Box::new([0u8; _]),
326326
session,
327327
rtt: Box::new(rtt),
328328
pos: 0,

src/r3_test_runner/src/targets/rp_pico.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ impl PicobootCmd {
514514
_addr_size: PicobootCmdArgsAddrSize {
515515
_addr: addr,
516516
_size: size,
517-
_pad: [0; 8],
517+
_pad: [0; _],
518518
},
519519
},
520520
}
@@ -534,7 +534,7 @@ impl PicobootCmd {
534534
_pc: pc,
535535
_sp: sp,
536536
_delay_ms: delay_ms,
537-
_pad: [0; 4],
537+
_pad: [0; _],
538538
},
539539
},
540540
}

0 commit comments

Comments
 (0)