Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cranelift/frontend/src/frontend.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! A frontend for building Cranelift IR from other languages.
use crate::ssa::{SSABuilder, SideEffects};
use crate::variable::Variable;
use alloc::vec::Vec;
use alloc::{vec, vec::Vec};
use core::fmt::{self, Debug};
use cranelift_codegen::cursor::{Cursor, CursorPosition, FuncCursor};
use cranelift_codegen::entity::{EntityRef, EntitySet, PrimaryMap, SecondaryMap};
Expand Down Expand Up @@ -242,7 +242,7 @@ impl fmt::Display for UseVariableError {
}
}

impl std::error::Error for UseVariableError {}
impl core::error::Error for UseVariableError {}

#[derive(Debug, Copy, Clone, Eq, PartialEq)]
/// An error encountered when defining the initial value of a variable.
Expand Down Expand Up @@ -1107,8 +1107,8 @@ impl<'a> FunctionBuilder<'a> {
left: Value,
right: Value,
size: u64,
left_align: std::num::NonZeroU8,
right_align: std::num::NonZeroU8,
left_align: core::num::NonZeroU8,
right_align: core::num::NonZeroU8,
flags: MemFlags,
) -> Value {
use IntCC::*;
Expand Down
2 changes: 1 addition & 1 deletion cranelift/frontend/src/ssa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//! <https://link.springer.com/content/pdf/10.1007/978-3-642-37051-9_6.pdf>

use crate::Variable;
use alloc::vec::Vec;
use alloc::{vec, vec::Vec};
use core::mem;
use cranelift_codegen::cursor::{Cursor, FuncCursor};
use cranelift_codegen::entity::{EntityList, EntitySet, ListPool, SecondaryMap};
Expand Down
2 changes: 1 addition & 1 deletion cranelift/frontend/src/switch.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::HashMap;
use crate::frontend::FunctionBuilder;
use alloc::vec::Vec;
use alloc::{vec, vec::Vec};
use cranelift_codegen::ir::condcodes::IntCC;
use cranelift_codegen::ir::*;

Expand Down
Loading