tests pass again
This commit is contained in:
parent
6de8496aa5
commit
b46c64db4f
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,6 @@
|
|||
#![feature(vec_pop_if)]
|
||||
#![feature(new_uninit)]
|
||||
#![feature(anonymous_lifetime_in_impl_trait)]
|
||||
#![feature(inline_const_pat)]
|
||||
#![feature(pattern)]
|
||||
#![feature(if_let_guard)]
|
||||
|
|
|
@ -7,7 +7,7 @@ use std::{
|
|||
};
|
||||
|
||||
use crate::{
|
||||
codegen::bt,
|
||||
codegen,
|
||||
ident::{self, Ident},
|
||||
lexer::{Lexer, LineMap, Token, TokenKind},
|
||||
log,
|
||||
|
@ -166,7 +166,7 @@ impl<'a, 'b> Parser<'a, 'b> {
|
|||
let is_ct = self.token.kind == TokenKind::CtIdent;
|
||||
let name = self.lexer.slice(token.range());
|
||||
|
||||
if let Some(builtin) = bt::from_str(name) {
|
||||
if let Some(builtin) = codegen::ty::from_str(name) {
|
||||
return (builtin, 0);
|
||||
}
|
||||
|
||||
|
|
0
hblang/tests/codegen2_tests_global_variables.txt
Normal file
0
hblang/tests/codegen2_tests_global_variables.txt
Normal file
|
@ -1,3 +1,3 @@
|
|||
code size: 471
|
||||
code size: 522
|
||||
ret: 512
|
||||
status: Ok(())
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
code size: 359
|
||||
code size: 318
|
||||
ret: 69
|
||||
status: Ok(())
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
code size: 283
|
||||
code size: 277
|
||||
ret: 50
|
||||
status: Ok(())
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
code size: 265
|
||||
code size: 262
|
||||
ret: 55
|
||||
status: Ok(())
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
code size: 322
|
||||
code size: 330
|
||||
ret: 0
|
||||
status: Ok(())
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
code size: 778
|
||||
code size: 786
|
||||
ret: 10
|
||||
status: Ok(())
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
code size: 417
|
||||
code size: 460
|
||||
ret: 3
|
||||
status: Ok(())
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// - Instructions have to be valid as specified (values and sizes)
|
||||
// - Mapped pages should be at least 4 KiB
|
||||
|
||||
#![no_std]
|
||||
//#![no_std]
|
||||
#![cfg_attr(feature = "nightly", feature(fn_align))]
|
||||
#![deny(unsafe_op_in_unsafe_fn)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue