Skip to content

Commit ee5b1e1

Browse files
committed
Move definition of Edition from libsyntax to libsyntax_pos
1 parent 90463a6 commit ee5b1e1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/libsyntax/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#![feature(unicode_internals)]
2323
#![feature(rustc_diagnostic_macros)]
2424
#![feature(slice_sort_by_cached_key)]
25-
#![feature(non_exhaustive)]
2625
#![feature(const_atomic_usize_new)]
2726
#![feature(rustc_attrs)]
2827
#![feature(str_escape)]
@@ -142,14 +141,14 @@ pub mod codemap;
142141
#[macro_use]
143142
pub mod config;
144143
pub mod entry;
145-
pub mod edition;
146144
pub mod feature_gate;
147145
pub mod fold;
148146
pub mod parse;
149147
pub mod ptr;
150148
pub mod show_span;
151149
pub mod std_inject;
152150
pub mod str;
151+
pub use syntax_pos::edition;
153152
pub use syntax_pos::symbol;
154153
pub mod test;
155154
pub mod tokenstream;
File renamed without changes.

src/libsyntax_pos/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#![feature(const_fn)]
2222
#![feature(custom_attribute)]
23+
#![feature(non_exhaustive)]
2324
#![feature(optin_builtin_traits)]
2425
#![allow(unused_attributes)]
2526
#![feature(specialization)]
@@ -48,6 +49,7 @@ extern crate serialize as rustc_serialize; // used by deriving
4849

4950
extern crate unicode_width;
5051

52+
pub mod edition;
5153
pub mod hygiene;
5254
pub use hygiene::{Mark, SyntaxContext, ExpnInfo, ExpnFormat, NameAndSpan, CompilerDesugaringKind};
5355

0 commit comments

Comments
 (0)