Skip to content

Commit cc9c139

Browse files
committedNov 7, 2019
move syntax::{parse::literal -> util::literal}
1 parent 27f97aa commit cc9c139

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed
 

‎src/libsyntax/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pub mod util {
8888
crate mod classify;
8989
pub mod comments;
9090
pub mod lev_distance;
91+
crate mod literal;
9192
pub mod node_count;
9293
pub mod parser;
9394
pub mod map_in_place;

‎src/libsyntax/parse/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ mod tests;
2424
pub mod parser;
2525
pub mod lexer;
2626

27-
crate mod literal;
28-
2927
#[derive(Clone)]
3028
pub struct Directory<'a> {
3129
pub path: Cow<'a, Path>,

‎src/libsyntax/parse/parser/expr.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ use super::{SemiColonMode, SeqSep, TokenExpectType};
33
use super::pat::{GateOr, PARAM_EXPECTED};
44
use super::diagnostics::Error;
55

6-
use crate::parse::literal::LitError;
7-
86
use crate::ast::{
97
self, DUMMY_NODE_ID, Attribute, AttrStyle, Ident, CaptureBy, BlockCheckMode,
108
Expr, ExprKind, RangeLimits, Label, Movability, IsAsync, Arm, Ty, TyKind,
@@ -16,6 +14,7 @@ use crate::print::pprust;
1614
use crate::ptr::P;
1715
use crate::source_map::{self, Span};
1816
use crate::util::classify;
17+
use crate::util::literal::LitError;
1918
use crate::util::parser::{AssocOp, Fixity, prec_let_scrutinee_needs_par};
2019

2120
use errors::{PResult, Applicability};
File renamed without changes.

0 commit comments

Comments
 (0)