Merge pull request #1112 from RustPython/parser-error-cleaning

parser error handling improvements.
This commit is contained in:
Aviv Palivoda 2019-07-07 20:16:16 +03:00 committed by GitHub
commit 02c4064b85
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
use rustpython_parser::error::{ParseError, ParseErrorType};
use rustpython_parser::lexer::Location;
use rustpython_parser::location::Location;
use std::error::Error;
use std::fmt;

View file

@ -9,7 +9,7 @@ Inspirational file: https://github.com/python/cpython/blob/master/Python/symtabl
use crate::error::{CompileError, CompileErrorType};
use rustpython_parser::ast;
use rustpython_parser::lexer::Location;
use rustpython_parser::location::Location;
use std::collections::HashMap;
pub fn make_symbol_table(program: &ast::Program) -> Result<SymbolScope, SymbolTableError> {