about summary refs log tree commit diff
path: root/src/librustc/middle/weak_lang_items.rs
AgeCommit message (Collapse)AuthorLines
2020-02-11Merge rustc::middle::*lang_items.Camille GILLOT-32/+0
2020-02-11Move it all into rustc_hir.Camille GILLOT-2/+2
2020-02-11Move weak_lang_items checking to librustc_passes.Camille GILLOT-0/+32
2020-02-11Move weak_lang_items.rs to librustc_passes.Camille GILLOT-130/+0
2020-02-11Move weak lang items to librustc_lang_items.Camille GILLOT-68/+31
2020-02-11Move get_lang_items query in librustc_passes.Camille GILLOT-1/+1
2020-02-11Move lang_items definitions to librustc_lang_items.Camille GILLOT-1/+1
2020-01-18remove rustc_error_codes deps except in rustc_driverMazdak Farrokhzad-2/+0
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+1
2020-01-08normalize rustc::hir::intravisit importsMazdak Farrokhzad-2/+1
2020-01-08intravisit: abstract over HIR MapMazdak Farrokhzad-1/+4
2020-01-08- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}Mazdak Farrokhzad-3/+7
- 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-2/+2
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-22Format the worldMark Rousskov-7/+7
2019-12-21Use Arena inside hir::ForeignItem.Camille GILLOT-1/+1
2019-11-14Update to use new librustc_error_codes libraryGuillaume Gomez-0/+2
2019-09-11Use `Symbol` in `weak_lang_items!`.Nicholas Nethercote-3/+3
2019-06-23Fix meta-variable binding errors in macrosJulien Cretin-1/+1
The errors are either: - The meta-variable used in the right-hand side is not bound (or defined) in the left-hand side. - The meta-variable used in the right-hand side does not repeat with the same kleene operator as its binder in the left-hand side. Either it does not repeat enough, or it uses a different operator somewhere. This change should have no semantic impact.
2019-06-18rustc: remove 'x: 'y bounds (except from comments/strings).Eduard-Mihai Burtescu-1/+1
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-5/+5
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-5/+5
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-3/+3
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-4/+4
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-3/+3
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-02-10rustc: doc commentsAlexander Regueiro-1/+1
2019-02-05move librustc to 2018Mark Mansi-7/+7
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-1/+1
2018-10-06rustc/middle: whitespace & formatting fixesljedrz-3/+3
2018-09-29don't elide lifetimes in paths in librustc/Zack M. Davis-1/+1
This seemed like a good way to kick the tires on the elided-lifetimes-in-paths lint (#52069)—seems to work! This was also pretty tedious—it sure would be nice if `cargo fix` worked on this codebase (#53896)!
2018-08-28Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.Eduard-Mihai Burtescu-3/+2
2018-08-23add #[panic_handler]; deprecate #[panic_implementation]Jorge Aparicio-1/+1
2018-08-04Normalize variants of CrateType to standard styleMark Rousskov-6/+6
This is a clippy-breaking change.
2018-07-09Implement #[alloc_error_handler]Simon Sapin-0/+3
This to-be-stable attribute is equivalent to `#[lang = "oom"]`. It is required when using the alloc crate without the std crate. It is called by `handle_alloc_error`, which is in turned called by "infallible" allocations APIs such as `Vec::push`.
2018-06-29improve the error message when `#[panic_implementation]` is missingJorge Aparicio-3/+7
closes #51341
2018-06-21translate / export weak lang itemsJorge Aparicio-0/+10
see #51671 for details fixes #51671 fixes #51342
2018-06-03implement #[panic_implementation]Jorge Aparicio-1/+1
2018-04-26Rename rustc_back::target to rustc_target::spec.Irina Popa-1/+1
2018-04-26rustc_back: move LinkerFlavor, PanicStrategy, and RelroLevel to target.Irina Popa-1/+1
2018-04-22Replace GlobalAlloc::oom with a lang itemSteven Fackler-0/+1
2018-04-04Fix another circulare deps link args issueAlex Crichton-10/+19
It turns out that the support in #49316 wasn't enough to handle all cases notably the example in #48661. The underlying bug was connected to panic=abort where lang items were listed in the `missing_lang_items` sets but didn't actually exist anywhere. This caused the linker backend to deduce that start-group/end-group wasn't needed because not all items were defined. Instead the missing lang items that don't actually need to have a definition are filtered out and not considered for the start-group/end-group arguments Closes #48661
2018-01-23Point at unknown lang item attributeEsteban Küber-2/+2
2017-09-07rustc: Remove `CrateStore::crates` as a methodAlex Crichton-1/+1
This commit moves the `crates` method to a query and then migrates all callers to use a query instead of the now-renamed `crates_untracked` method where possible. Closes #41417
2017-09-05rustc: Remove lang item methods from CrateStoreAlex Crichton-1/+1
Given the previous commit, these are now trivially representable as queries!
2017-09-05rustc: Migrate lang items to a queryAlex Crichton-20/+20
This commit moves the calculation of the `LanguageItems` structure into a query rather than being calculated before the `TyCtxt` exists, with the eventual end goal of removing some `CrateStore` methods.
2016-12-29Change --crate-type metadata to --emit=metadataNick Cameron-2/+1
2016-11-29revamp `Visitor` with a single method for controlling nested visitsNiko Matsakis-2/+4
2016-11-29Split nested_visit_mode function off from nested_visit_mapFlorian Diebold-0/+2
... and make the latter mandatory to implement.