about summary refs log tree commit diff
path: root/src/librustc_errors/lib.rs
AgeCommit message (Collapse)AuthorLines
2019-02-11Add way to hide suggestion snippet window from cli outputEsteban Küber-1/+23
2019-02-10rustc: doc commentsAlexander Regueiro-1/+1
2019-02-10Revert removed #![feature(nll)]Taiki Endo-0/+1
2019-02-07Remove images' url to make it work even without internet connectionGuillaume Gomez-3/+1
2019-02-07librustc_errors => 2018Taiki Endo-19/+11
2019-01-26document `Applicability`Andy Russell-2/+18
2019-01-18Fix suggestions given mulitple bad lifetimesDan Robertson-4/+5
When given multiple lifetimes prior to type parameters in generic parameters, do not ICE and print the correct suggestion.
2018-12-29Replace LockCell with atomic typesJohn Kåre Alsaker-8/+6
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-04adds DocTest filename variant, refactors doctest_offset out of source_map, ↵Matthew Russo-1/+1
fixes remaining test failures
2018-10-29Rename other occs of (Code/File)Map to Source(Map/File) #51574David Lavati-1/+1
2018-10-19Free some memory instead of just dropping elementsOliver Scherer-1/+2
2018-10-19Prefer `Default::default` over `FxHash*::default` in struct constructorsOliver Scherer-4/+4
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-4/+4
2018-09-27Bump to 1.31.0 and bootstrap from 1.30 betaJosh Stone-1/+1
2018-09-18Log when buffering a diagnostic.David Wood-0/+2
This is useful in debugging when and where errors are emitted in logs.
2018-09-17Add -Z dont-buffer-diagnostics, a way to force NLL to immediately emit its ↵Felix S. Klock II-0/+11
diagnostics. This is mainly intended for `rustc` developers who want to see a diagnostic in its original context in the control flow. Two uses cases for that are: * `-Z treat-err-as-bug` which then allows extraction of a stack-trace to the origin of the error (a case that is so important that we make that flag imply this one, effectively). * `RUST_LOG=... rustc`, in which case it is often useful to see the logging statements that occurred immediately prior to the point where the diagnostic was signalled. Drive-by: Added some documentation pointing future devs at HandlerFlags, and documented the fields of `HandlerFlags` itself.
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-1/+0
Co-authored-by: nikomatsakis
2018-08-24check that adding infer-outlives requirement to all crates worksNiko Matsakis-0/+1
2018-08-19fix tidy errorsDonato Sciarra-1/+8
2018-08-19mv filemap source_fileDonato Sciarra-1/+1
2018-08-19mv FileMap SourceFileDonato Sciarra-2/+2
2018-08-19mv CodeMap SourceMapDonato Sciarra-5/+5
2018-08-09[nll] librustc_errors: enable feature(nll) for bootstrapmemoryruins-0/+1
2018-07-29Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakisbors-3/+2
Misc cleanups
2018-07-27Remove unnecessary `.collect()`Shotaro Yamada-3/+2
2018-07-25Deny bare_trait_objects globallyTatsuyuki Ishi-2/+0
2018-07-21Sequence-field should have plural nameOliver Schneider-4/+4
2018-07-20Make sure the compiler actually panics on `delay_span_bug`Oliver Schneider-6/+26
Even if that is just happening because of `abort_if_errors`
2018-07-14Deny bare trait objects in src/librustc_errorsljedrz-4/+7
Enforce `#![deny(bare_trait_objects)]` in `src/librustc_errors`.
2018-05-09use fmt::Result where applicableAndre Bogus-2/+2
2018-04-25Approximate -> ApplicabilityManish Goregaokar-2/+2
2018-04-24Use enum for approximate suggestionsManish Goregaokar-1/+9
2018-04-17Make Handler more thread-safeJohn Kåre Alsaker-21/+26
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-1/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-07Auto merge of #49661 - alexcrichton:bump-bootstrap, r=nikomatsakisbors-2/+0
Bump the bootstrap compiler to 1.26.0 beta Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-06Print query stack on ICEsJohn Kåre Alsaker-0/+5
2018-04-05Auto merge of #49045 - Zoxc:tls, r=michaelwoeristerbors-17/+8
Make queries thread safe This makes queries thread safe by removing the query stack and making queries point to their parents. Queries write to the query map when starting and cycles are detected by checking if there's already an entry in the query map. This makes cycle detection O(1) instead of O(n), where `n` is the size of the query stack. This is mostly corresponds to the method I described [here](https://internals.rust-lang.org/t/parallelizing-rustc-using-rayon/6606). cc @rust-lang/compiler r? @michaelwoerister
2018-04-05Bump the bootstrap compiler to 1.26.0 betaAlex Crichton-2/+0
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-03-26Stabilize i128_typeMark Mansi-1/+1
2018-03-26Stabilize conservative_impl_traitTaylor Cramer-1/+1
2018-03-25Rollup merge of #49046 - Zoxc:error-summary, r=michaelwoeristerkennytm-16/+18
Always print `aborting due to n previous error(s)` r? @michaelwoerister
2018-03-24Make queries thread safe. Remove the query stack and make queries point to ↵John Kåre Alsaker-17/+8
their parents instead.
2018-03-16Always print `aborting due to n previous error(s)` and only print it once ↵John Kåre Alsaker-16/+18
for multi-threaded code
2018-03-15Require the code mapper to be thread-safeJohn Kåre Alsaker-4/+7
2018-03-14test for putting back check on jsonGuillaume Gomez-4/+47
2018-03-07rustc: Migrate to `termcolor` crate from `term`Alex Crichton-10/+21
This crate moves the compiler's error reporting to using the `termcolor` crate from crates.io. Previously rustc used a super-old version of the `term` crate in-tree which is basically unmaintained at this point, but Cargo has been using `termcolor` for some time now and tools like `rg` are using `termcolor` as well, so it seems like a good strategy to take! Note that the `term` crate remains in-tree for libtest. Changing libtest will be a bit tricky due to how the build works, but we can always tackle that later. cc #45728
2018-03-02Replace Rc with Lrc for shared dataJohn Kåre Alsaker-4/+4
2018-02-01Auto merge of #47540 - Manishearth:suggestion, r=nrcbors-0/+6
Add approximate suggestions for rustfix This adds `span_approximate_suggestion()` that lets you emit a suggestion marked as "non-machine applicable" in the JSON output. UI users see no difference. This is for when rustc and clippy wish to emit suggestions which will make sense to the reader (e.g. they may have placeholders like `<type>`) but are not source-applicable, so that rustfix/etc can ignore these. fixes #39254
2018-01-29Toggle span highlighting on `-Zteach`Esteban Küber-1/+1