about summary refs log tree commit diff
path: root/src/libsyntax/diagnostics
AgeCommit message (Collapse)AuthorLines
2020-01-08- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}Mazdak Farrokhzad-169/+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
2019-12-22Format the worldMark Rousskov-4/+4
2019-11-14Update to use new librustc_error_codes libraryGuillaume Gomez-23/+1
2019-09-05Replace diagnostic plugins with macro_rulesMark Rousskov-211/+29
2019-09-03use TokenStream rather than &[TokenTree] for built-in macrosAleksey Kladov-23/+23
That way, we don't loose the jointness info
2019-08-20Remove serialization of diagnostics to filesMark Rousskov-123/+4
This is no longer used by the index generator and was always an unstable compiler detail, so strip it out. This also leaves in RUSTC_ERROR_METADATA_DST since the stage0 compiler still needs it to be set.
2019-08-15`Ident::with_empty_ctxt` -> `Ident::with_dummy_span`Vadim Petrochenkov-1/+1
`Ident` has had a full span rather than just a `SyntaxContext` for a long time now.
2019-07-31Replace AstBuilder with inherent methodsMark Rousskov-1/+0
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-2/+1
rustbuild Remove some random unnecessary lint `allow`s
2019-07-13Make `register_[long_]diagnostics` hygienicMatthew Jasper-4/+4
2019-06-15Rollup merge of #61813 - matthewjasper:remove-unnecessary-symbol-ops, ↵Mazdak Farrokhzad-13/+1
r=petrochenkov Remove some unnecessary symbol interner ops * Don't gensym symbols that don't need to worry about colliding with other symbols * Use symbol constants instead of interning string literals in a few places. * Don't generate a module in `__register_diagnostic` r? @petrochenkov
2019-06-14Avoid some unnecessary symbol interner operationsMatthew Jasper-13/+1
2019-06-08use default binding mode in match clausesCedric-5/+5
2019-06-08fix bad style for structsCedric-5/+11
2019-06-08use pattern matching for slices destructuringCedric-15/+8
2019-06-06Some code cleanup and tidy/test fixesVadim Petrochenkov-1/+3
2019-06-06syntax: Remove duplicate span from `token::Ident`Vadim Petrochenkov-9/+9
2019-06-06syntax: Use `Token` in `TokenTree::Token`Vadim Petrochenkov-8/+8
2019-05-23syntax: Turn `token::Lit` into a structVadim Petrochenkov-2/+2
2019-05-22Simplify use of keyword symbolsVadim Petrochenkov-2/+2
2019-05-20Remove `Symbol::gensym()`.Nicholas Nethercote-3/+3
2019-04-05remove lookup_char_pos_adjAleksey Kladov-2/+2
It is now exactly equivalent to lookup_char_pos.
2019-02-13Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasperMazdak Farrokhzad-1/+1
Rename rustc_errors dependency in rust 2018 crates I think this is a better solution than `use rustc_errors as errors` in `lib.rs` and `use crate::errors` in modules. Related: rust-lang/cargo#5653 cc #58099 r? @Centril
2019-02-13Rename rustc_errors dependency in rust 2018 cratesTaiki Endo-1/+1
2019-02-10rustc: doc commentsAlexander Regueiro-2/+2
2019-02-07libsyntax => 2018Taiki Endo-18/+20
2019-01-08improve non_snake_case diagnosticsAndy Russell-5/+7
Use a structured suggestion and tighten the span to just the identifier.
2018-12-25Remove licensesMark Rousskov-30/+0
2018-12-12Bump to 1.33.0Alex Crichton-0/+1
* Update bootstrap compiler * Update version to 1.33.0 * Remove some `#[cfg(stage0)]` annotations Actually updating the version number is blocked on updating Cargo
2018-09-26Remove OneVectorljedrz-5/+4
2018-08-23Use optimized SmallVec implementationIgor Gutorov-2/+2
2018-08-19mv codemap() source_map()Donato Sciarra-1/+1
2018-08-19mv (mod) codemap source_mapDonato Sciarra-2/+2
2018-08-13Move SmallVec and ThinVec out of libsyntaxljedrz-3/+3
2018-07-10Deny bare trait objects in in src/libsyntaxljedrz-4/+4
2018-05-26Add `Ident::as_str` helperVadim Petrochenkov-1/+1
2018-05-19rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵Eduard-Mihai Burtescu-1/+4
constants".
2018-03-18Allow raw identifiers in diagnostic macros.Lymia Aluysia-5/+5
2018-03-18Initial implementation of RFC 2151, Raw IdentifiersLymia Aluysia-5/+5
2018-03-18Auto merge of #48917 - petrochenkov:import, r=oli-obkbors-1/+1
syntax: Make imports in AST closer to the source and cleanup their parsing This is a continuation of https://github.com/rust-lang/rust/pull/45846 in some sense.
2018-03-17Rename `Span::empty` to `Span::shrink_to_lo`, add `Span::shrink_to_hi`Vadim Petrochenkov-1/+1
2018-03-17syntax: Make `_` an identifierVadim Petrochenkov-2/+2
2018-03-08Move REGISTERED_DIAGNOSTICS to a ParseSess fieldJohn Kåre Alsaker-19/+4
2018-02-18Replace dummy spans with empty spansSeiichi Uchida-1/+1
2018-02-18Change ast::Visibility to Spanned typeSeiichi Uchida-1/+2
2018-01-15Add error code for unstable feature errorsGuillaume Gomez-0/+8
2018-01-04rustc: Don't use relative paths for extended errorsAlex Crichton-5/+6
These no longer work now that Cargo changes the cwd of rustc while it's running. Instead use an absolute path that's set by rustbuild.
2017-12-14Use PathBuf instead of String where applicableOliver Schneider-2/+2
2017-11-02Make the difference between lint codes and error codes explicitOliver Schneider-11/+54
2017-08-30Make fields of `Span` privateVadim Petrochenkov-1/+1