Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 668ef72

Browse files
committedAug 17, 2020
Auto merge of rust-lang#75120 - JulianKnodt:rm_reps, r=oli-obk
rust_ast::ast => rustc_ast Rework of rust-lang#71199 which is a rework rust-lang#70621 Still working on this but just made the PR to track progress r? @Dylan-DPC
2 parents 792c645 + a888b02 commit 668ef72

File tree

217 files changed

+303
-304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+303
-304
lines changed
 

‎src/librustc_ast/lib.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ pub mod token;
5151
pub mod tokenstream;
5252
pub mod visit;
5353

54+
pub use self::ast::*;
55+
5456
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
5557

5658
/// Requirements for a `StableHashingContext` to be used in this crate.

‎src/librustc_ast_lowering/expr.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use super::{ImplTraitContext, LoweringContext, ParamMode, ParenthesizedGenericArgs};
22

3-
use rustc_ast::ast::*;
43
use rustc_ast::attr;
54
use rustc_ast::ptr::P as AstP;
5+
use rustc_ast::*;
66
use rustc_data_structures::fx::FxHashMap;
77
use rustc_data_structures::stack::ensure_sufficient_stack;
88
use rustc_data_structures::thin_vec::ThinVec;
@@ -845,7 +845,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
845845
e2: Option<&Expr>,
846846
lims: RangeLimits,
847847
) -> hir::ExprKind<'hir> {
848-
use rustc_ast::ast::RangeLimits::*;
848+
use rustc_ast::RangeLimits::*;
849849

850850
let lang_item = match (e1, e2, lims) {
851851
(None, None, HalfOpen) => hir::LangItem::RangeFull,

0 commit comments

Comments
 (0)
This repository has been archived.