Skip to content

Commit f9ab55c

Browse files
fix: Fix nightly errors (#1934)
1 parent 533288d commit f9ab55c

File tree

8 files changed

+15
-2
lines changed

8 files changed

+15
-2
lines changed

esp-backtrace/src/riscv.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub(super) const RA_OFFSET: usize = 4;
1515
#[derive(Default, Clone, Copy)]
1616
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
1717
#[repr(C)]
18+
#[cfg(feature = "exception-handler")]
1819
pub(crate) struct TrapFrame {
1920
/// Return address, stores the address to return to after a function call or
2021
/// interrupt.
@@ -102,6 +103,7 @@ pub(crate) struct TrapFrame {
102103
pub mtval: usize,
103104
}
104105

106+
#[cfg(feature = "exception-handler")]
105107
impl core::fmt::Debug for TrapFrame {
106108
fn fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> Result<(), core::fmt::Error> {
107109
write!(

esp-hal/src/soc/esp32c6/efuse/fields.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ pub const SPI_DOWNLOAD_MSPI_DIS: EfuseField = EfuseField::new(EfuseBlock::Block0
235235
/// `[DIS_CAN]` Represents whether TWAI function is disabled or enabled. 1:
236236
/// disabled. 0: enabled
237237
pub const DIS_TWAI: EfuseField = EfuseField::new(EfuseBlock::Block0, 46, 1);
238+
#[allow(unknown_lints)]
239+
#[allow(clippy::too_long_first_doc_paragraph)]
238240
/// `[]` Represents whether the selection between usb_to_jtag and pad_to_jtag
239241
/// through strapping gpio15 when both EFUSE_DIS_PAD_JTAG and EFUSE_DIS_USB_JTAG
240242
/// are equal to 0 is enabled or disabled. 1: enabled. 0: disabled

esp-lp-hal/src/uart.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ impl embedded_io::Write for LpUart {
320320
match self.flush_tx() {
321321
Ok(_) => break,
322322
Err(nb::Error::WouldBlock) => { /* Wait */ }
323+
#[allow(unreachable_patterns)]
323324
Err(nb::Error::Other(e)) => return Err(e),
324325
}
325326
}

esp-wifi/src/common_adapter/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ mod log {
311311
// #define ESP_EVENT_DEFINE_BASE(id) esp_event_base_t id = #id
312312
static mut EVT: i8 = 0;
313313
#[no_mangle]
314+
#[allow(unused_unsafe)]
314315
static mut WIFI_EVENT: esp_event_base_t = unsafe { addr_of!(EVT) };
315316

316317
// stuff needed by wpa-supplicant

esp-wifi/src/esp_now/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ impl<'d> EspNowSender<'d> {
438438
}
439439
}
440440

441+
#[allow(unknown_lints)]
442+
#[allow(clippy::too_long_first_doc_paragraph)]
441443
/// This struct is returned by a sync esp now send. Invoking `wait` method of
442444
/// this struct will block current task until the callback function of esp now
443445
/// send is called and return the status of previous sending.
@@ -535,6 +537,8 @@ impl<'d> Drop for EspNowRc<'d> {
535537
}
536538
}
537539

540+
#[allow(unknown_lints)]
541+
#[allow(clippy::too_long_first_doc_paragraph)]
538542
/// ESP-NOW is a kind of connectionless Wi-Fi communication protocol that is
539543
/// defined by Espressif. In ESP-NOW, application data is encapsulated in a
540544
/// vendor-specific action frame and then transmitted from one Wi-Fi device to

examples/src/bin/debug_assist.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ fn main() -> ! {
4242
static mut _stack_end: u32;
4343
}
4444

45+
#[allow(unused_unsafe)]
4546
let stack_top = unsafe { addr_of_mut!(_stack_start) } as *mut _ as u32;
47+
#[allow(unused_unsafe)]
4648
let stack_bottom = unsafe { addr_of_mut!(_stack_end) } as *mut _ as u32;
4749

4850
let size = 4096;

examples/src/bin/embassy_usb_serial_jtag.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ async fn reader(
5757
string_buffer.extend_from_slice(&rbuf[..len]).unwrap();
5858
signal.signal(heapless::String::from_utf8(string_buffer).unwrap());
5959
}
60+
#[allow(unreachable_patterns)]
6061
Err(e) => esp_println::println!("RX Error: {:?}", e),
6162
}
6263
}

xtensa-lx/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ pub fn get_program_counter() -> *const u32 {
8080
unsafe {
8181
asm!("
8282
mov {1}, {2}
83-
call0 1f
83+
call0 2f
8484
.align 4
85-
1:
85+
2:
8686
mov {0}, {2}
8787
mov {2}, {1}
8888
", out(reg) x, out(reg) _, out(reg) _, options(nostack))

0 commit comments

Comments
 (0)