about summary refs log tree commit diff
path: root/src/librustc_resolve/diagnostics.rs
AgeCommit message (Collapse)AuthorLines
2020-03-11resolve: Simplify `fn report_privacy_error`Vadim Petrochenkov-36/+31
by factoring out `fn ctor_fields_span` into a separate function
2020-03-08Rollup merge of #69805 - petrochenkov:importname, r=CentrilMazdak Farrokhzad-13/+11
resolve: Modernize some naming `ImportDirective` -> `Import` `ImportDirectiveSubclass` -> `ImportKind` `ImportKind::SingleImport` -> `ImportKind::Single` `ImportKind::GlobImport` -> `ImportKind::Glob`
2020-03-07resolve: `directive` -> `import`Vadim Petrochenkov-9/+9
2020-03-07Rollup merge of #69773 - matthiaskrgr:typos, r=petrochenkovMazdak Farrokhzad-1/+1
fix various typos
2020-03-07resolve: `ImportDirective` -> `Import`Vadim Petrochenkov-6/+4
`ImportDirectiveSubclass` -> `ImportKind` `ImportKind::SingleImport` -> `ImportKind::Single` `ImportKind::GlobImport` -> `ImportKind::Glob`
2020-03-06fix various typosMatthias Krüger-1/+1
2020-03-04resolve, inconsistent binding mode: tweak wording.Mazdak Farrokhzad-2/+1
2020-03-01Auto merge of #69592 - petrochenkov:nosyntax, r=Centrilbors-2/+2
Rename `libsyntax` to `librustc_ast` This was the last rustc crate that wasn't following the `rustc_*` naming convention. Follow-up to https://github.com/rust-lang/rust/pull/67763.
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-2/+2
2020-02-29Rollup merge of #69572 - matthiaskrgr:try_err_and_iter_on_ref, r=CentrilDylan DPC-1/+1
use .iter() instead of .into_iter() on references
2020-02-29use .iter() instead of .into_iter() on references.Matthias Krüger-1/+1
2020-02-29use .to_string() instead of format!() macro to create stringsMatthias Krüger-2/+3
2020-02-28Rollup merge of #69541 - dotdash:format, r=Mark-SimulacrumMazdak Farrokhzad-2/+2
Remove unneeded calls to format!()
2020-02-27Remove unneeded calls to format!()Björn Steinbrink-2/+2
2020-02-24resolve: `lifetimes.rs` -> `late/lifetime.rs`Vadim Petrochenkov-242/+1
2020-02-22Rename CodeMap to SourceMap follow upMaxim Zholobak-7/+7
2020-02-05Account for `impl Trait`Esteban Küber-34/+55
Address #49287
2020-02-05Move code to `diagnostics.rs`Esteban Küber-91/+207
2020-02-05review commentsEsteban Küber-17/+4
2020-02-05review comments: wordingEsteban Küber-1/+1
2020-02-05Account for `fn()` types in lifetime suggestionsEsteban Küber-6/+18
2020-02-05Account for `'_` in suggestionsEsteban Küber-0/+3
2020-02-05review commentsEsteban Küber-10/+10
2020-02-05Suggest `'r` instead of `'lifetime`Esteban Küber-8/+8
2020-02-05When suggesting lifetimes, propose adding the new lifetime to all argumentsEsteban Küber-1/+11
2020-02-05Account for HKTB when suggesting introduction of named lifetimeEsteban Küber-16/+36
2020-02-02Rollup merge of #68740 - JohnTitor:do-not-sugg-underscore, r=CentrilYuki Okushi-0/+5
Do not suggest things named underscore Fixes #68719 r? @estebank
2020-02-02Do not suggest things named underscoreYuki Okushi-0/+5
2020-02-01syntax::print -> new crate rustc_ast_prettyMazdak Farrokhzad-1/+1
2020-01-26Suggest defining type parameter when appropriateEsteban Küber-0/+5
``` error[E0412]: cannot find type `T` in this scope --> file.rs:3:12 | 3 | impl Trait<T> for Struct {} | - ^ not found in this scope | | | help: you might be missing a type parameter: `<T>` ``` Fix #64298.
2020-01-21Auto merge of #68267 - estebank:lt-sugg, r=petrochenkovbors-1/+73
Tweak lifetime definition errors Taking inspiration from the narrative in @fasterthanlime's https://fasterthanli.me/blog/2019/declarative-memory-management/, add suggestions to some lifetime definition errors.
2020-01-19review commentsEsteban Küber-1/+73
2020-01-18remove rustc_error_codes deps except in rustc_driverMazdak Farrokhzad-2/+0
2020-01-16resolve: Say "import" when reporting private importsVadim Petrochenkov-0/+3
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-9/+15
2020-01-16resolve: Move privacy error reporting into a separate methodVadim Petrochenkov-2/+151
Give named fields to `struct PrivacyError` Move `fn report_ambiguity_error` to `diagnostics.rs`
2020-01-11Auto merge of #65912 - estebank:variants-orig, r=petrochenkovbors-3/+9
Point at the span for the definition of crate foreign ADTs Follow up to #65421. Partially addresses #65386. Blocked on #53081.
2020-01-10./x.py fmtEsteban Küber-4/+5
2020-01-10Use `def_span` to minimize definition span to first line when possibleEsteban Küber-1/+4
2020-01-10Point at the span for the definition of crate foreign ADTsEsteban Küber-3/+5
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+1
2020-01-08- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}Mazdak Farrokhzad-2/+1
- 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-3/+3
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::source_map` imports.Mazdak Farrokhzad-1/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-2/+2
2019-12-30Rename `rustc_resolve/resolve_imports.rs` -> `rustc_resolve/imports.rs`Vadim Petrochenkov-1/+1
2019-12-22Format the worldMark Rousskov-248/+346
2019-12-09resolve: Make visibility resolution more speculativeVadim Petrochenkov-0/+40
To avoid potential duplicate diagnostics and separate the error reporting logic