mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-24 21:44:45 +00:00
Update other stuff to use the root of rustpython_bytecode
This commit is contained in:
parent
b9875ff9bf
commit
db041c0f6c
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
use rustpython_bytecode::bytecode::CodeObject;
|
use rustpython_bytecode::CodeObject;
|
||||||
use rustpython_compiler_core::{compile, symboltable};
|
use rustpython_compiler_core::{compile, symboltable};
|
||||||
use rustpython_parser::{ast::Location, parser};
|
use rustpython_parser::{ast::Location, parser};
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
|
@ -13,7 +13,7 @@ use itertools::Itertools;
|
||||||
use num_complex::Complex64;
|
use num_complex::Complex64;
|
||||||
use num_traits::ToPrimitive;
|
use num_traits::ToPrimitive;
|
||||||
use rustpython_ast as ast;
|
use rustpython_ast as ast;
|
||||||
use rustpython_bytecode::bytecode::{self, CodeObject, ConstantData, Instruction, Label};
|
use rustpython_bytecode::{self as bytecode, CodeObject, ConstantData, Instruction, Label};
|
||||||
|
|
||||||
type CompileResult<T> = Result<T, CompileError>;
|
type CompileResult<T> = Result<T, CompileError>;
|
||||||
|
|
||||||
|
@ -2548,7 +2548,7 @@ fn compile_conversion_flag(
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::{CompileOpts, Compiler};
|
use super::{CompileOpts, Compiler};
|
||||||
use crate::symboltable::make_symbol_table;
|
use crate::symboltable::make_symbol_table;
|
||||||
use rustpython_bytecode::bytecode::CodeObject;
|
use rustpython_bytecode::CodeObject;
|
||||||
use rustpython_parser::parser;
|
use rustpython_parser::parser;
|
||||||
|
|
||||||
fn compile_exec(source: &str) -> CodeObject {
|
fn compile_exec(source: &str) -> CodeObject {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue