Mateusz Mikuła
87e4b43d51
Deny internal
in stage0
2019-04-17 05:15:00 +02:00
flip1995
d3f0cb9b62
Deny internal lints on non conflicting crates
...
- libarena
- librustc_allocator
- librustc_borrowck
- librustc_codegen_ssa
- librustc_codegen_utils
- librustc_driver
- librustc_errors
- librustc_incremental
- librustc_metadata
- librustc_passes
- librustc_privacy
- librustc_resolve
- librustc_save_analysis
- librustc_target
- librustc_traits
- libsyntax
- libsyntax_ext
- libsyntax_pos
2019-04-03 18:24:21 +02:00
Fabian Drinck
541c4999a9
Remove redundant imports
2019-03-30 22:37:02 +01:00
Steven Malis
266ca31f74
Stabilize Range*::contains.
2019-03-12 21:00:37 -07:00
Esteban Küber
a7563a30c0
fix bad logic
2019-03-07 08:46:18 -08:00
Esteban Küber
c41ddf1773
Keep current behavior while accepting error count
2019-03-07 03:17:39 -08:00
Esteban Küber
7a55a004fa
Make -Z treat-err-as-bug
take a number of errors to be emitted
...
`-Z treat-err-as-bug=0` will cause `rustc` to panic after the first
error is reported. `-Z treat-err-as-bug=2` will cause `rustc` to
panic after 3 errors have been reported.
2019-03-06 19:51:32 -08:00
Mazdak Farrokhzad
56e19160af
Rollup merge of #58296 - estebank:hidden-suggestion, r=oli-obk
...
Hidden suggestion support
Add way to hide suggestion snippet window from cli output to avoid cluttered spans that don't enhance understanding.
r? @pietroalbini CC @zackmdavis
2019-02-14 02:41:21 +01:00
bors
b244f61b77
Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik
...
Cosmetic improvements to doc comments
This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase).
r? @steveklabnik
Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-12 19:09:24 +00:00
Esteban Küber
235523c7d4
Add way to completely hide suggestion from cli output
2019-02-11 10:01:40 -08:00
Esteban Küber
05b4e7c8a9
Add way to hide suggestion snippet window from cli output
2019-02-11 10:01:40 -08:00
Alexander Regueiro
c3e182cf43
rustc: doc comments
2019-02-10 23:42:32 +00:00
Taiki Endo
2be0993c4e
Revert removed #![feature(nll)]
2019-02-10 16:13:30 +09:00
Guillaume Gomez
8b886e07f5
Remove images' url to make it work even without internet connection
2019-02-07 11:06:19 +01:00
Taiki Endo
950fe6686d
librustc_errors => 2018
2019-02-07 03:53:01 +09:00
Andy Russell
8eaa84c79f
document Applicability
2019-01-26 23:06:08 -05:00
Dan Robertson
e3ba6ed3f5
Fix suggestions given mulitple bad lifetimes
...
When given multiple lifetimes prior to type parameters in generic
parameters, do not ICE and print the correct suggestion.
2019-01-18 01:10:14 +00:00
John Kåre Alsaker
03b7cec2de
Replace LockCell with atomic types
2018-12-29 12:46:37 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Matthew Russo
f0f8aa9e05
adds DocTest filename variant, refactors doctest_offset out of source_map, fixes remaining test failures
2018-12-04 19:52:42 -05:00
David Lavati
6c9f6a1afd
Rename other occs of (Code/File)Map to Source(Map/File) #51574
2018-10-29 21:26:13 +01:00
Oliver Scherer
ab3f37ec43
Free some memory instead of just dropping elements
2018-10-19 14:34:44 +02:00
Oliver Scherer
3c9258e604
Prefer Default::default
over FxHash*::default
in struct constructors
2018-10-19 14:34:44 +02:00
Oliver Scherer
ee81739dc1
Deprecate the FxHashMap()
and FxHashSet()
constructor function hack
2018-10-19 14:34:44 +02:00
Josh Stone
ce034951fb
Bump to 1.31.0 and bootstrap from 1.30 beta
2018-09-27 20:52:53 -07:00
David Wood
874e08bdd8
Log when buffering a diagnostic.
...
This is useful in debugging when and where errors are emitted in
logs.
2018-09-18 13:45:24 +02:00
Felix S. Klock II
82e1750414
Add -Z dont-buffer-diagnostics, a way to force NLL to immediately emit its 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-17 14:30:01 +02:00
toidiu
731f4efae5
stabalize infer outlives requirements (RFC 2093).
...
Co-authored-by: nikomatsakis
2018-09-11 11:40:04 -04:00
Niko Matsakis
73fb1622b3
check that adding infer-outlives requirement to all crates works
2018-08-24 17:10:50 -04:00
Donato Sciarra
6138c82803
fix tidy errors
2018-08-19 23:01:01 +02:00
Donato Sciarra
cbd0595710
mv filemap source_file
2018-08-19 23:00:59 +02:00
Donato Sciarra
d6dcbcd4e1
mv FileMap SourceFile
2018-08-19 23:00:59 +02:00
Donato Sciarra
c655473378
mv CodeMap SourceMap
2018-08-19 23:00:59 +02:00
memoryruins
80e8e97d93
[nll] librustc_errors: enable feature(nll) for bootstrap
2018-08-09 04:08:45 -04:00
bors
a5c2d0fffa
Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakis
...
Misc cleanups
2018-07-29 06:32:24 +00:00
Shotaro Yamada
8296699fae
Remove unnecessary .collect()
2018-07-27 23:26:36 +09:00
Tatsuyuki Ishi
e098985939
Deny bare_trait_objects globally
2018-07-25 10:25:29 +09:00
Oliver Schneider
bab5eb41a7
Sequence-field should have plural name
2018-07-21 16:09:10 +02:00
Oliver Schneider
56c90774a9
Make sure the compiler actually panics on delay_span_bug
...
Even if that is just happening because of `abort_if_errors`
2018-07-20 15:59:21 +02:00
ljedrz
033924464f
Deny bare trait objects in src/librustc_errors
...
Enforce `#![deny(bare_trait_objects)]` in `src/librustc_errors`.
2018-07-14 07:23:32 +02:00
Andre Bogus
e333725664
use fmt::Result where applicable
2018-05-09 02:01:37 +02:00
Manish Goregaokar
4e2cd4104a
Approximate -> Applicability
2018-04-25 14:55:25 -07:00
Manish Goregaokar
b9c44ebd3f
Use enum for approximate suggestions
2018-04-24 15:42:27 -07:00
John Kåre Alsaker
bf06a53265
Make Handler more thread-safe
2018-04-17 16:43:30 +02:00
Mark Simulacrum
c115cc655c
Move deny(warnings) into rustbuild
...
This permits easier iteration without having to worry about warnings
being denied.
Fixes #49517
2018-04-08 16:59:14 -06:00
bors
8c2d7b2da3
Auto merge of #49661 - alexcrichton:bump-bootstrap, r=nikomatsakis
...
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-07 11:58:38 +00:00
John Kåre Alsaker
4fd188e5f3
Print query stack on ICEs
2018-04-06 16:23:31 +02:00
bors
7222241e7c
Auto merge of #49045 - Zoxc:tls, r=michaelwoerister
...
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-05 16:38:15 +00:00
Alex Crichton
8958815916
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-05 07:13:45 -07:00
Mark Mansi
7ce8191775
Stabilize i128_type
2018-03-26 08:36:50 -05:00