about summary refs log tree commit diff
path: root/src/librustc_passes/check_const.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-227/+0
2020-08-08Eliminate the `SessionGlobals` from `librustc_ast`.Nicholas Nethercote-1/+1
By moving `{known,used}_attrs` from `SessionGlobals` to `Session`. This means they are accessed via the `Session`, rather than via TLS. A few `Attr` methods and `librustc_ast` functions are now methods of `Session`. All of this required passing a `Session` to lots of functions that didn't already have one. Some of these functions also had arguments removed, because those arguments could be accessed directly via the `Session` argument. `contains_feature_attr()` was dead, and is removed. Some functions were moved from `librustc_ast` elsewhere because they now need to access `Session`, which isn't available in that crate. - `entry_point_type()` --> `librustc_builtin_macros` - `global_allocator_spans()` --> `librustc_metadata` - `is_proc_macro_attr()` --> `Session`
2020-07-05Use for<'tcx> fn pointers in Providers, instead of having Providers<'tcx>.Eduard-Mihai Burtescu-1/+1
2020-06-28Use `LocalDefId` in HIR const-checkerDylan MacKenzie-4/+4
2020-06-28Stop checking for `while` and `loop` in a const contextDylan MacKenzie-7/+6
2020-06-28Require `allow_internal_unstable` in HIR const-checkerDylan MacKenzie-13/+50
2020-06-28HIR const-checkingDylan MacKenzie-35/+10
2020-06-27use LocalDefId in module checkingBastian Kauschke-2/+2
2020-05-07Use `hir::ConstContext` instead of local enumsDylan MacKenzie-48/+7
2020-04-19Dogfood more or_patterns in the compilerJosh Stone-2/+3
2020-04-09Use `is_const_fn_raw` query for HIR const-checkingDylan MacKenzie-7/+7
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-3/+3
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-3/+3
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-2/+2
2020-03-14Index HIR after creating TyCtxtJohn Kåre Alsaker-4/+3
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-1/+1
2020-02-29use .to_string() instead of format!() macro to create stringsMatthias Krüger-1/+1
2020-02-06Add a Hir wrapper typeJohn Kåre Alsaker-1/+2
2020-01-18remove rustc_error_codes deps except in rustc_driverMazdak Farrokhzad-1/+0
2020-01-11simplify feature_err importsMazdak Farrokhzad-1/+1
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+1
2020-01-08normalize rustc::hir::intravisit importsMazdak Farrokhzad-1/+1
2020-01-08intravisit: abstract over HIR MapMazdak Farrokhzad-1/+3
2020-01-08- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}Mazdak Farrokhzad-2/+2
- 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-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-7/+7
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-26Fallout in other crates.Camille GILLOT-2/+2
2019-12-25Feature gate or patterns in const contextsMatthew Jasper-5/+17
2019-12-22Format the worldMark Rousskov-34/+24
2019-12-21Use Arena inside hir::Body.Camille GILLOT-2/+2
2019-12-201. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.Mazdak Farrokhzad-2/+2
2. mir::Mutability -> ast::Mutability.
2019-12-13Use better name for local containing required feature gatesDylan MacKenzie-5/+5
2019-12-13Replace `Index` impl with `enabled` methodDylan MacKenzie-2/+2
2019-12-13Apply suggestions from reviewDylan MacKenzie-5/+5
2019-12-13Improve commentDylan MacKenzie-2/+2
2019-12-13Restructue HIR const-checker to handle features with multiple gatesDylan MacKenzie-19/+68
2019-11-30move GateIssue to rustc_feature & simplify emit_feature_errMazdak Farrokhzad-8/+2
2019-11-30introduce crate rustc_feature and move active, accepted, and removed to itMazdak Farrokhzad-1/+2
2019-11-21Suggest `const_if_match` on nightlyDylan MacKenzie-19/+70
2019-11-21Hold a `TyCtxt` in the HIR const-checkerDylan MacKenzie-10/+7
2019-11-21Add feature gate for const `if` and `match`Dylan MacKenzie-1/+1
2019-11-14move E0744 to new error codeGuillaume Gomez-0/+1
2019-11-13Use `ast::Mutability`Dylan MacKenzie-2/+3
2019-11-13Change control flow error to delay span bugDylan MacKenzie-4/+5
2019-11-13Small fixes to commentsDylan MacKenzie-4/+5
2019-11-13Add HIR pass to check for `if`s and `loop`s in a `const`Dylan MacKenzie-0/+157
These high-level constructs get mapped to control-flow primitives by the time the MIR const-checker runs, making it hard to get the span for the erroneous expression.