about summary refs log tree commit diff
path: root/src/libsyntax/lib.rs
AgeCommit message (Collapse)AuthorLines
2020-02-29Move directory `libsyntax` -> `librustc_ast`Vadim Petrochenkov-63/+0
2020-02-04Auto merge of #68708 - Mark-Simulacrum:stage0-step, r=pietroalbinibors-1/+0
Step stage0 to bootstrap from 1.42 This also includes a commit which fixes the rustfmt downloading logic to redownload when the rustfmt channel changes, and bumps rustfmt to a more recent version.
2020-02-01syntax: reexport attr globalsMazdak Farrokhzad-0/+1
2020-02-01syntax::print -> new crate rustc_ast_prettyMazdak Farrokhzad-6/+0
2020-02-011. move node_id to syntaxMazdak Farrokhzad-1/+1
2. invert rustc_session & syntax deps 3. drop rustc_session dep in rustc_hir
2020-02-01syntax: move GLOBALS to attr moduleMazdak Farrokhzad-34/+0
2020-02-01{syntax -> rustc_ast_passes}::node_countMazdak Farrokhzad-1/+0
2020-01-31Drop cfg(bootstrap) codeMark Rousskov-1/+0
2020-01-18slice_patterns: remove internal uses of gateMazdak Farrokhzad-1/+1
2020-01-11Rollup merge of #68114 - ecstatic-morse:fix-feature-gating, r=CentrilMazdak Farrokhzad-1/+1
Don't require `allow_internal_unstable` unless `staged_api` is enabled. #63770 changed `qualify_min_const_fn` to require `allow_internal_unstable` for *all* crates that used an unstable feature, regardless of whether `staged_api` was enabled or the `fn` that used that feature was stably const. In practice, this meant that every crate in the ecosystem that wanted to use nightly features added `#![feature(const_fn)]`, which skips `qualify_min_const_fn` entirely. After this PR, crates that do not have `#![feature(staged_api)]` will only need to enable the feature they are interested in. For example, `#![feature(const_if_match)]` will be enough to enable `if` and `match` in constants. Crates with `staged_api` (e.g., `libstd`) require `#[allow_internal_unstable]` to be added to a function if it uses nightly features unless that function is also marked `#[rustc_const_unstable]`. This prevents proliferation of `#[allow_internal_unstable]` into functions that are not callable in a `const` context on stable. r? @oli-obk (author of #63770) cc @Centril
2020-01-10Remove unnecessary `const_fn` feature gatesDylan MacKenzie-1/+1
This flag opts out of the min-const-fn checks entirely, which is usually not what we want. The few cases where the flag is still necessary have been annotated.
2020-01-11{syntax -> rustc_ast_passes}::show_spanMazdak Farrokhzad-1/+0
2020-01-11{syntax -> rustc_ast_passes}::feature_gateMazdak Farrokhzad-4/+0
2020-01-11nix syntax::early_buffered_lintsMazdak Farrokhzad-2/+0
2020-01-11simplify feature_err importsMazdak Farrokhzad-1/+0
2020-01-11get_features -> rustc_parse::configMazdak Farrokhzad-1/+1
2020-01-11gating diagnostics -> rustc_session::parseMazdak Farrokhzad-1/+2
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+0
2020-01-08- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}Mazdak Farrokhzad-6/+0
- remove syntax::{help!, span_help!, span_note!} - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!} - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints - inline syntax::{struct_span_warn!, diagnostic_used!} - stringify_error_code! -> error_code! & use it more. - find_plugin_registrar: de-fatalize an error - de-fatalize metadata errors - move type_error_struct! to rustc_typeck - struct_span_err! -> rustc_errors
2020-01-04hir::{hir,def,itemlikevisit,pat_util,print} -> rustc_hirMazdak Farrokhzad-1/+11
Also fix fallout wrt. HashStable.
2020-01-02Normalize `syntax::edition` imports.Mazdak Farrokhzad-11/+4
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+0
2020-01-02Normalize `syntax::source_map` imports.Mazdak Farrokhzad-2/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-8/+8
2019-12-27Stabilize the `matches!` macroSimon Sapin-1/+0
Fixes https://github.com/rust-lang/rust/issues/65721 FCP: https://github.com/rust-lang/rust/issues/65721#issuecomment-569118119
2019-12-22Format the worldMark Rousskov-16/+13
2019-12-20introduce 'type AttrVec'Mazdak Farrokhzad-1/+0
2019-12-06Use `to_option` in various placesvarkor-0/+1
2019-12-03Move ParseSess to librustc_sessionMark Rousskov-1/+1
2019-12-02syntax: Introduce a struct `MacArgs` for macro argumentsVadim Petrochenkov-0/+1
2019-11-30move GateIssue to rustc_feature & simplify emit_feature_errMazdak Farrokhzad-4/+1
2019-11-30move UnstableFeatures -> rustc_featureMazdak Farrokhzad-1/+1
2019-11-30inline two explanation constantsMazdak Farrokhzad-1/+0
2019-11-30builtin_attrs.rs -> rustc_featureMazdak Farrokhzad-6/+0
2019-11-30move is_builtin_attr to syntax::attrMazdak Farrokhzad-1/+1
2019-11-30simplify gated cfgs logicMazdak Farrokhzad-1/+1
2019-11-30move AttributeTemplate to builtin_attrsMazdak Farrokhzad-1/+1
2019-11-30move Stability to rustc_featureMazdak Farrokhzad-1/+1
2019-11-30introduce crate rustc_feature and move active, accepted, and removed to itMazdak Farrokhzad-1/+14
2019-11-23Derive HashStable for TokenKind.Camille GILLOT-4/+1
2019-11-23Rename StableHashingContextLike to HashStableContext.Camille GILLOT-1/+1
2019-11-22Invert implementations for TokenKind.Camille GILLOT-1/+4
Also export a bunch of Token-related impls.
2019-11-22Export HashStable for DelimSpan, Lit and Path.Camille GILLOT-1/+1
2019-11-22Add StableHashingContextLike to HashStable_Generic derive.Camille GILLOT-0/+5
2019-11-15Move JSON emitter to rustc_errorsMark Rousskov-2/+0
2019-11-15Move SourceMap to syntax_posMark Rousskov-1/+1
This does not update the use sites or delete the now unnecessary SourceMapper trait, to allow git to interpret the file move as a rename rather than a new file.
2019-11-14Update to use new librustc_error_codes libraryGuillaume Gomez-2/+0
2019-11-10move syntax::parse -> librustc_parseMazdak Farrokhzad-5/+2
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-10move config.rs to libsyntax_expandMazdak Farrokhzad-4/+0
2019-11-07move syntax::{parse::literal -> util::literal}Mazdak Farrokhzad-0/+1