about summary refs log tree commit diff
path: root/src/librustc_plugin
AgeCommit message (Collapse)AuthorLines
2019-11-17Rename directory `rustc_plugin` -> `rustc_plugin_impl`Vadim Petrochenkov-384/+0
2019-11-17rustc_plugin: Remove the compatibility shimVadim Petrochenkov-22/+0
2019-11-16rustc_plugin: Remove `Registry::register_attribute`Vadim Petrochenkov-13/+0
2019-11-14Remove unused error_codes.rs filesGuillaume Gomez-4/+0
2019-11-14Update to use new librustc_error_codes libraryGuillaume Gomez-1/+3
2019-11-09Remove `#[feature(custom_attribute)]`Vadim Petrochenkov-1/+0
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-10-22Add some documentationMark Rousskov-0/+1
2019-10-17Create lint store during plugin registrationMark Rousskov-45/+5
Remove lint store from Session
2019-10-17Take lint passes as constructor functionsMark Rousskov-4/+4
2019-10-17Make get_lints be a static functionMark Rousskov-0/+9
This moves from calling get_lints on instantiated pass objects to the raw object
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-3/+4
2019-09-26Rename `Item.node` to `Item.kind`varkor-1/+1
2019-09-23Remove unused dependenciesShotaro Yamada-1/+0
2019-09-05Remove rustc_diagnostic_macros featureMark Rousskov-1/+0
2019-09-05Replace diagnostic plugins with macro_rulesMark Rousskov-11/+4
2019-08-20Restore the rustc_plugin crate in the sysrootSimon Sapin-1/+1
It was accidentally removed in a rebase of https://github.com/rust-lang/rust/pull/62727 Fixes https://github.com/rust-lang/rust/issues/63729
2019-08-20Deprecate using rustc_plugin without the rustc_driver dylib.Simon Sapin-4/+25
CC https://github.com/rust-lang/rust/pull/59800 https://github.com/rust-lang/rust/commit/7198687bb2df13a3298ef1e8f594753073d6b9e8 Fix https://github.com/rust-lang/rust/issues/62717
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-4/+0
rustbuild Remove some random unnecessary lint `allow`s
2019-07-13Make `register_[long_]diagnostics` hygienicMatthew Jasper-1/+1
2019-07-07Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasperMazdak Farrokhzad-4/+1
Support stability and deprecation checking for all macros RELNOTES: Deprecation attributes on macros now have effect. Fixes https://github.com/rust-lang/rust/issues/34079 Fixes https://github.com/rust-lang/rust/issues/49912 Unblocks https://github.com/rust-lang/rust/pull/62086 Unblocks https://github.com/rust-lang/rust/pull/61000
2019-07-07syntax: Remove `NodeId` from `SyntaxExtension`Vadim Petrochenkov-4/+1
2019-07-07Link compiler plugins to rustc_driverJohn Kåre Alsaker-0/+1
2019-07-07rustc: Remove `dylib` crate type from most rustc cratesAlex Crichton-1/+1
Now that procedural macros no longer link transitively to libsyntax, this shouldn't be needed any more! This commit is an experiment in removing all dynamic libraries from rustc except for librustc_driver itself. Let's see how far we can get with that!
2019-07-04rename hir::map::local_def_id_from_hir_id to local_def_idljedrz-1/+1
2019-07-04Rollup merge of #62258 - petrochenkov:idclean, r=CentrilMazdak Farrokhzad-4/+1
syntax: Unsupport `foo! bar { ... }` macros in the parser Their support in expansion was removed in https://github.com/rust-lang/rust/pull/61606. Also un-reserve `macro_rules` as a macro name, there's no ambiguity between `macro_rules` definitions and macro calls (it also wasn't reserved correctly). cc https://github.com/rust-lang-nursery/wg-grammar/issues/51
2019-07-03Remove needless lifetimesJeremy Stucki-3/+3
2019-07-01syntax: Unsupport `foo! bar { ... }` macros in the parserVadim Petrochenkov-4/+1
Unreserve `macro_rules` as a macro name
2019-06-18syntax: Factor out common fields from `SyntaxExtension` variantsVadim Petrochenkov-15/+7
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-2/+2
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-4/+1
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-2/+2
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-2/+2
2019-06-10syntax: Rename variants of `SyntaxExtension` for consistencyVadim Petrochenkov-4/+4
2019-06-10syntax: Remove `SyntaxExtension::DeclMacro`Vadim Petrochenkov-24/+7
It's a less powerful duplicate of `SyntaxExtension::NormalTT`
2019-06-10syntax: Remove `SyntaxExtension::IdentTT` and `IdentMacroExpander`Vadim Petrochenkov-4/+1
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-21Move `edition` outside the hygiene lock and avoid accessing itJohn Kåre Alsaker-2/+1
2019-05-13Return a `Symbol` from `name_or_empty` functions.Nicholas Nethercote-5/+5
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-2/+2
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-5/+6
2019-05-05Rollup merge of #60131 - agnxy:doc-link, r=ehussManish Goregaokar-2/+3
Fix broken link in rustc_plugin doc fix #57489 r? @steveklabnik
2019-04-20Fix broken link in rustc_plugin docAndrew Xu-2/+3
2019-04-17Rename modulesYuki OKUSHI-1/+1
2019-04-17Rename diagnostics to error_codesYuki OKUSHI-0/+0
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