about summary refs log tree commit diff
path: root/src/librustc_plugin/load.rs
AgeCommit message (Collapse)AuthorLines
2019-11-17Rename directory `rustc_plugin` -> `rustc_plugin_impl`Vadim Petrochenkov-137/+0
2019-11-14Update to use new librustc_error_codes libraryGuillaume Gomez-0/+2
2019-10-24rustc_metadata: Move some code aroundVadim Petrochenkov-2/+2
Plugin search doesn't need a crate loader, only crate locator
2019-10-24rustc_metadata: Remove unnecessary use of crate store in plugin loaderVadim Petrochenkov-15/+6
2019-05-25Reword malformed attribute input diagnosticsEsteban Küber-3/+5
- Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error - Use consistend error message: "malformed `attrname` attribute input" - Provide suggestions when possible - Move note/help to label/suggestion - Use consistent wording "ill-formed" -> "malformed" - Move diagnostic logic out of parser
2019-05-22Restore the old behavior of the rustdoc keyword check + Fix rebaseVadim Petrochenkov-2/+2
2019-05-13Return a `Symbol` from `name_or_empty` functions.Nicholas Nethercote-5/+5
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-1/+2
2019-03-17Make meta-item API compatible with `LocalInternedString::get` soundness fixVadim Petrochenkov-6/+6
2019-03-16Refactor away `NestedMetaItemKind`Vadim Petrochenkov-1/+1
Remove methods `Attribute::span` and `MetaItem::span` duplicating public fields
2019-03-16syntax: Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-2/+2
2019-02-06librustc_plugin => 2018Taiki Endo-2/+3
2019-01-13Implement basic input validation for built-in attributesVadim Petrochenkov-4/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-03-05Turn features() into a query.Michael Woerister-1/+1
2018-01-16Don't include DefIndex in plugin- and proc-macro registrar fn symbol.Michael Woerister-2/+2
2017-12-04rustc_back: move dynamic_lib to rustc_metadata.Irina-Gabriela Popa-1/+1
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-3/+3
Like #43008 (f668999), but _much more aggressive_.
2017-04-13remove `LinkMeta` from `SharedCrateContext`Niko Matsakis-2/+2
A number of things were using `crate_hash` that really ought to be using `crate_disambiguator` (e.g., to create the plugin symbol names). They have been updated. It is important to remove `LinkMeta` from `SharedCrateContext` since it contains a hash of the entire crate, and hence it will change whenever **anything** changes (which would then require rebuilding **everything**).
2017-03-29Merge `ExpnId` and `SyntaxContext`.Jeffrey Seyfried-2/+2
2017-03-27Fix various useless derefs and slicingsOliver Schneider-3/+3
2016-11-20Refactor `MetaItemKind` to use `Name`s instead of `InternedString`s.Jeffrey Seyfried-2/+2
2016-10-29Move `CrateConfig` from `Crate` to `ParseSess`.Jeffrey Seyfried-7/+3
2016-10-22Remove `CrateReader`, use `CrateLoader` instead.Jeffrey Seyfried-3/+3
2016-08-25Refactor away `AttrMetaMethods`.Jeffrey Seyfried-1/+0
2016-08-25Refactor away `AttrNestedMetaItemMethods`.Jeffrey Seyfried-1/+1
2016-08-25Implement RFC#1559: allow all literals in attributes.Sergio Benitez-10/+10
2016-08-11Remove the 'cfg' field from session::config::Options.Michael Woerister-3/+7
The 'cfg' in the Options struct is only the commandline-specified subset of the crate configuration and it's almost always wrong to read that instead of the CrateConfig in HIR crate node.
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+1
2016-05-25rustc: use a simpler scheme for plugin registrar symbol names.Eduard Burtescu-1/+2
2016-04-22Remove the MacroVisitor pass.Leo Testard-17/+22
This pass was supposed to check use of gated features before `#[cfg]`-stripping but this was not the case since it in fact happens after. Checks that are actually important and must be done before macro expansion are now made where the features are actually used. Close #32648. Also ensure that attributes on macro-generated macro invocations are checked as well. Close #32782 and #32655.
2016-03-25Make the compiler emit an error if the crate graph contains two crates with ↵Michael Woerister-4/+7
the same crate-name and crate-salt but different SVHs.
2016-03-12std: Clean out deprecated APIsAlex Crichton-2/+1
Removes all unstable and deprecated APIs prior to the 1.8 release. All APIs that are deprecated in the 1.8 release are sticking around for the rest of this cycle. Some notable changes are: * The `dynamic_lib` module was moved into `rustc_back` as the compiler still relies on a few bits and pieces. * The `DebugTuple` formatter now special-cases an empty struct name with only one field to append a trailing comma.
2016-02-12Autoderef in librustc_pluginJonas Schievink-1/+1
2015-11-26split the metadata code into rustc_metadataAriel Ben-Yehuda-2/+2
tests & rustdoc still broken
2015-11-26move librustc/plugin to librustc_pluginAriel Ben-Yehuda-0/+146
this is a [breaking-change] to all plugin authors - sorry