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
702676bfff
Use a QueryContext for try_mark_green.
2021-02-19 17:51:56 +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
bors
9b471a3f5f
Auto merge of #82020 - jyn514:mut-passes, r=camelid,GuillaumeGomez
...
Make `Clean` take &mut DocContext
- Take `FnMut` in `rustc_trait_selection::find_auto_trait_generics`
- Take `&mut DocContext` in most of `clean`
- Collect the iterator in auto_trait_impls instead of iterating lazily; the lifetimes were really bad.
This combined with https://github.com/rust-lang/rust/pull/82018 should hopefully help with https://github.com/rust-lang/rust/pull/82014 by allowing `cx.cache.exported_traits` to be modified in `register_res`. Previously it had to use interior mutability, which required either adding a RefCell to `cache.exported_traits` on *top* of the existing `RefCell<Cache>` or mixing reads and writes between `cx.exported_traits` and `cx.cache.exported_traits`. I don't currently have that working but I expect it to be reasonably easy to add after this.
2021-02-19 16:39:03 +00:00
Joshua Nelson
fdb32e997b
[intra-doc links] Don't check feature gates of items re-exported across crates
...
It should be never break another crate to re-export a public item.
Note that this doesn't check the feature gate at
*all* for other crates:
- Feature-gates aren't currently serialized, so the only way to check
the gate is with ad-hoc attribute checking.
- Checking the feature gate twice (once when documenting the original
crate and one when documenting the current crate) seems not great.
This should still catch using the feature most of the time though, since
people tend to document their own crates.
2021-02-19 11:38:14 -05:00
klensy
ec09d7fc8b
simplify eat_digits
2021-02-19 18:51:25 +03:00
Dan Gohman
1abcdfe449
x.py fmt
2021-02-19 07:31:01 -08:00
Matthias Krüger
1f4153aa1e
collapsible_match: fix lint message capitalization
...
(see https://rustc-dev-guide.rust-lang.org/diagnostics.html for details)
2021-02-19 10:02:17 +01:00
bors
8599bff5a3
Auto merge of #82281 - Dylan-DPC:rollup-raob2tu, r=Dylan-DPC
...
Rollup of 10 pull requests
Successful merges:
- #79747 (Add explanations and suggestions to `irrefutable_let_patterns` lint)
- #81496 (name async generators something more human friendly in type error diagnostic)
- #81873 (Add Mutex::unlock)
- #82093 (Add tests for Atomic*::fetch_{min,max})
- #82238 (ast: Keep expansion status for out-of-line module items)
- #82245 (Do not ICE when evaluating locals' types of invalid `yield`)
- #82259 (Fix popping singleton paths in when generating E0433)
- #82261 (rustdoc: Support argument files)
- #82274 (libtest: Fix unwrap panic on duplicate TestDesc)
- #82275 (Update cargo)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2021-02-19 08:24:01 +00:00
1000teslas
99f4573264
Add deref definition location
...
Update conflict_errors.rs
Add deref definition location
2021-02-19 18:43:57 +11:00
Ariadne Conill
62ee3ec7ba
remove checkboxes from s390x-unknown-linux-musl triplet
2021-02-19 03:16:34 +00:00
Ariadne Conill
597118baa8
add s390x-unknown-linux-musl target to platform support
2021-02-19 03:15:35 +00:00
Ariadne Conill
48b5c093d6
add s390x-unknown-linux-musl target
2021-02-19 03:14:28 +00:00
Cameron Steffen
46c91db1e1
Change known problems
2021-02-18 20:23:49 -06:00