bors
b75baad5c3
Auto merge of #78181 - GuillaumeGomez:sized-trait, r=jyn514
...
Add Sized trait display when implemented on type
Fixes https://github.com/rust-lang/rust/issues/24183 .
I'm not too happy about the hack I had to add in here, however, it seems like the `Sized` trait is **very** special.
cc `@jyn514`
r? `@ollie27`
2021-02-20 04:35:58 +00:00
Eric Huss
bf8563dc9b
Fix minor mistake in LTO docs.
...
`-C lto=true` isn't a valid option.
2021-02-19 19:34:46 -08:00
Jacob Hoffman-Andrews
7acb10514b
Re-minify normalize.css.
...
This bypasses tidy's complaints about tab indent. Also, this lets us
remove comments while keeping the MIT license comment.
2021-02-19 18:49:00 -08:00
Jacob Hoffman-Andrews
9bbd48256d
Update normalize.css to 8.0.1
...
From https://github.com/necolas/normalize.css/releases/tag/8.0.1 .
2021-02-19 18:28:53 -08:00
Jacob Hoffman-Andrews
7ad4b7a62f
Replace normalize.css 3.0.0 with unminified version.
...
This is in preparation to upgrade to 8.0.1, so the next commit
can contain more meaningful diffs.
2021-02-19 18:26:19 -08:00
Nixon Enraght-Moony
dd4b938c7f
Implement using @set values
2021-02-20 01:50:12 +00:00
Alexander Ronald Altman
1839748772
impl PartialEq<Punct> for char
; symmetry for #78636
...
Also fixes the "since" version of the original.
2021-02-19 17:28:19 -08:00
Nixon Enraght-Moony
cd5f603c31
Implement @set
2021-02-20 01:25:09 +00:00
Esteban Küber
f0637e4e18
Lower condition of if
expression before it's "then" block
...
Fix #82290 , fix #82250 .
2021-02-19 17:00:31 -08:00
Nixon Enraght-Moony
a00eb7ee1d
Add @is command to jsondocck
2021-02-20 00:43:02 +00:00
bors
2746632917
Auto merge of #6766 - matthiaskrgr:nestedmatch, r=flip1995
...
collapsible_match: fix lint message capitalization
(see https://rustc-dev-guide.rust-lang.org/diagnostics.html for details)
---
*Please write a short comment explaining your change (or "none" for internal only changes)*
changelog: collapsible_match: fix lint message capitalization
2021-02-20 00:36:53 +00:00
bors
23de8013a6
Auto merge of #6764 - matthiaskrgr:lintcheck_par_iter, r=flip1995
...
lintcheck: parallelize
By default we use a single thread and one target dir as before.
If `-j n` is passed, use `n` target dirs and run one clippy in each of them.
We need several target dirs because cargo would lock them for a single process otherwise which would prevent the parallelism.
`-j 0` makes rayon use $thread_count/2 (which I assume is the number of physical cores of a machine) for the number of threads.
Other change:
Show output of clippy being compiled when building it for lintcheck (makes it easier to spot compiler errors etc)
Show some progress indication in the "Linting... foo 1.2.3" message.
Sort crates before linting (previously crates would be split randomly between target dirs, with the sorting, we try to make sure that even crates land in target dir 0 and odd ones in target dir 1 etc..)
*Please write a short comment explaining your change (or "none" for internal only changes)*
changelog: parallelize lintcheck with rayon
2021-02-20 00:25:10 +00:00
Matthias Krüger
8499a32859
lintcheck: add -j <N> option to configure threads.
...
defaults to 1
-j 0 choses the number of threads automtically (= number of physical cores)
2021-02-19 23:20:05 +01:00
Guillaume Gomez
46f24c912f
Add tests for !Sized trait display
2021-02-19 22:38:07 +01:00
Guillaume Gomez
d20e05b78b
Show negative implementation of Sized trait
2021-02-19 22:38:07 +01:00
Matthias Krüger
22aeec09e4
lintcheck: sort crates before linting
2021-02-19 22:16:53 +01:00
Matthias Krüger
4974734a24
lintcheck: show progress percentage in the "Linting..." message
2021-02-19 22:06:50 +01:00
Camille GILLOT
9823c2cc70
Workaround rustdoc not honouring cfg(parallel_compiler).
2021-02-19 22:05:27 +01:00
Matthias Krüger
d198551311
lintheck: show output (and compiler errors!) when compiling clippy for lintcheck
2021-02-19 21:52:34 +01:00
Matthias Krüger
bb5f9d18a0
lintcheck: tweak some comments
2021-02-19 21:48:52 +01:00
bool
c4b8d87ab9
Fixed the known problems section
2021-02-19 22:00:23 +02:00
bool
bf55aee7b1
Updated from_str_radix_10 sugg to be slightly smarter and ran bless
2021-02-19 21:56:21 +02:00
LeSeulArtichaut
dd3772e4f0
A few more code cleanups
2021-02-19 19:19:50 +01:00
Ricky (deg4uss3r)
f10fbbbd53
added aarch64_apple_ios_sim as a rustc target
2021-02-19 13:17:05 -05:00
Santiago Pastorino
b3000ec0cd
Update pub_macro_rules since version
2021-02-19 13:53:02 -03:00
Vadim Petrochenkov
0fddc2f780
Support pub
on macro_rules
2021-02-19 13:52:57 -03:00
Camille GILLOT
4581d16bcb
Move the query system to rustc_query_impl.
2021-02-19 17:51:58 +01:00
Camille GILLOT
71f749a683
Introduce a QueryEngine trait object.
2021-02-19 17:51:57 +01:00
Camille GILLOT
23f9d10ea7
Make encode_query_results more generic.
2021-02-19 17:51:57 +01:00
Camille GILLOT
24dbb61e58
Move query names and Providers to parent module.
2021-02-19 17:51:57 +01:00
Camille GILLOT
8e5d613a11
Wrap QueryDescription into a macro.
2021-02-19 17:51:57 +01:00
Camille GILLOT
cdc0b199a9
Split DepKindStruct in two.
2021-02-19 17:51:56 +01:00
Camille GILLOT
1ac21e4571
Use QueryCtxt in DepKindStruct.
2021-02-19 17:51:56 +01:00
Camille GILLOT
b27266fdb2
Use a QueryContext for try_mark_green.
2021-02-19 17:51:56 +01:00
Camille GILLOT
3bd14c7bbe
Select caching strategy per query.
...
The per-Key choice was not used.
2021-02-19 17:51:56 +01:00
Camille GILLOT
6e4af4a2d1
Move definition of callbacks to parent module.
2021-02-19 17:51:56 +01:00
Camille GILLOT
4334f57feb
Move try_print_query_stack to rustc_interface.
2021-02-19 17:51:55 +01:00
Camille GILLOT
a4b1158f78
Move handle_deadlock where it is used.
2021-02-19 17:51:55 +01:00
Camille GILLOT
ea3d465c95
Move try_load_from_on_disk_cache to the QueryContext.
2021-02-19 17:51:55 +01:00
Camille GILLOT
4dbf83a209
Move try_print_query_stack to rustc_interface.
2021-02-19 17:51:55 +01:00
Camille GILLOT
0e9cac40a6
Make alloc_self_profile_query_strings a standalone function.
2021-02-19 17:51:55 +01:00
Camille GILLOT
5d71b99690
Make QueryEngine opaque to TyCtxt.
2021-02-19 17:51:54 +01:00
Camille GILLOT
3f868b1791
Opacify query invocation.
2021-02-19 17:51:50 +01:00
Camille GILLOT
2db2776589
Wrap TyCtxt inside a QueryCtxt for queries.
2021-02-19 17:51:50 +01:00
Camille GILLOT
dab9b89221
Decouple the on-disk cache from the query engine.
2021-02-19 17:51:50 +01:00
Camille GILLOT
49c1b07a9e
Decouple QueryContext from DepContext.
2021-02-19 17:51:49 +01:00
Camille GILLOT
6f04883023
Remove QueryAccessors::to_dep_node.
2021-02-19 17:51:49 +01:00
Camille GILLOT
211b05aef3
Don't require a QueryContext to access the DepGraph.
2021-02-19 17:51:49 +01:00
Camille GILLOT
7794fbb478
Group logic about the Providers struct.
2021-02-19 17:51:48 +01:00
LeSeulArtichaut
3ed189e8af
Cleanup PpMode
and friends
2021-02-19 17:50:23 +01:00