Michael Goulet
f6bfb4bf8e
Erase regions when confirming transmutability candidate
2023-04-16 19:12:34 +00:00
Josh Stone
6fe2406155
Test python2.7 in dist-x86_64-illumos
2023-04-16 11:50:20 -07:00
Josh Stone
33036159a4
ci: add a runner for vanilla LLVM 16
...
Like #107044 , this will let us track compatibility with LLVM 16 going
forward, especially after we eventually upgrade our own to the next.
This also drops `tidy` here and in `x86_64-gnu-llvm-15`, syncing with
that change in #106085 .
2023-04-16 11:50:20 -07:00
Weihang Lo
103ed0e5c8
bootstrap: switch from stream_cargo
to try_run_quiet
...
It is unnecessary to stream cargo JSON output.
2023-04-16 19:32:20 +01:00
Weihang Lo
befa5c98c9
chore: remove rustc-workspace-hack
...
Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
Co-authored-by: Eric Huss <eric@huss.org>
2023-04-16 19:32:20 +01:00
Weihang Lo
1cfaa3431e
chore: remove Cargo features in rustc-workspace-hack
2023-04-16 19:32:20 +01:00
Weihang Lo
82950f6895
bootstrap: treat src/tools/cargo as a workspace member
...
We remove `src/tools/cargo` from rust-lang/rust root workspace, but
some underlying mechanism still needs it to be a member. for example,
`./x.py doc`. This little hack make cargo's metadata available by
invoking an extra `cargo metadata` for cargo the package itself.
Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
Co-authored-by: Eric Huss <eric@huss.org>
2023-04-16 19:32:20 +01:00
Weihang Lo
4c777710c6
tidy: check_crate_duplicate
is no longer useful
...
After cargo becomes a workspace, no one uses `check_crate_duplicate` to
check if cargo is a dependency anymore.
2023-04-16 19:32:20 +01:00
Weihang Lo
f795a150fe
chore: allow cargo
to have its own workspace
...
This also
* bumps cargo to the latest in rust-lang/cargo.
* adds 0BSD to allowed list of licenses
Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
Co-authored-by: Eric Huss <eric@huss.org>
2023-04-16 19:32:12 +01:00
Josh Soref
b1da6a750b
Spelling src/doc
...
* incompatibilities
* invocation
* keywords
* nonexistent
* shakespeare
* the
* toolchain
* transparent
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-16 14:06:53 -04:00
Camille GILLOT
8fc1d68413
Account for variance in outlives verification.
2023-04-16 17:39:52 +00:00
Nilstrieb
34ed5c3efc
Alloc hir::Lit
in an arena to remove the destructor from Expr
...
This allows allocating `Expr`s into a dropless arena, which is useful
for using length prefixed thing slices in HIR, since these can only be
allocated in the dropless arena and not in a typed arena. This is
something I'm working on.
2023-04-16 15:35:51 +00:00
John Bobbo
3dba5872a3
Add a message indicating overflow in
...
`core::intrinsics::is_nonoverlapping`.
2023-04-16 07:35:18 -07:00
Ben Kimock
fb68292b24
Improve doc comment of AllocExtra's backtrace
...
Co-authored-by: Ralf Jung <post@ralfj.de>
2023-04-16 10:00:02 -04:00
Ben Kimock
cbc7f94f11
Add a flag to disable leak backtraces
2023-04-16 10:00:00 -04:00
Ben Kimock
ad8d304163
Implement StableHasher::write_u128 via write_u64
2023-04-16 09:44:03 -04:00
bors
8a778ca1e3
Auto merge of #110405 - fee1-dead-contrib:rollup-9rkree6, r=fee1-dead
...
Rollup of 4 pull requests
Successful merges:
- #110397 (Move some utils out of `rustc_const_eval`)
- #110398 (use matches! macro in more places)
- #110400 (more clippy fixes: clippy::{iter_cloned_collect, unwarp_or_else_defau…)
- #110402 (Remove the loop in `Align::from_bytes`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-04-16 13:12:53 +00:00
Nilstrieb
7859a8e9a5
Don't use serde_json
to serialize a simple JSON object
...
This avoids `rustc_data_structures` depending on `serde_json` which
allows it to be compiled much earlier, unlocking most of rustc.
2023-04-16 15:00:06 +02:00
Ben Kimock
606ca4da7e
Report a backtrace for memory leaks under Miri
2023-04-16 08:52:00 -04:00
Deadbeef
4c6ddc036b
fix library and rustdoc tests
2023-04-16 11:38:52 +00:00
fee1-dead
38215fb77a
Rollup merge of #110402 - scottmcm:align-tz, r=fee1-dead
...
Remove the loop in `Align::from_bytes`
Perf is almost certainly irrelevant, but might as well simplify it, since `trailing_zeros` does exactly what's needed.
2023-04-16 19:36:03 +08:00
fee1-dead
1d30adb068
Rollup merge of #110400 - matthiaskrgr:style_mix, r=fee1-dead
...
more clippy fixes: clippy::{iter_cloned_collect, unwarp_or_else_defau…
…lt, option_map_or_none}
r? `@Nilstrieb`
2023-04-16 19:36:02 +08:00
fee1-dead
fba49a7ee2
Rollup merge of #110398 - matthiaskrgr:clippy_match, r=Nilstrieb,fee1-dead
...
use matches! macro in more places
r? `@Nilstrieb`
2023-04-16 19:36:02 +08:00
fee1-dead
508d661105
Rollup merge of #110397 - Nilstrieb:speedy-bootstrap-2, r=fee1-dead,jyn514
...
Move some utils out of `rustc_const_eval`
This allows us to get rid of the `rustc_const_eval->rustc_borrowck` dependency edge which was delaying the compilation of borrowck.
The added utils in `rustc_middle` are small and should not affect compile times there.
2023-04-16 19:36:01 +08:00
Matthias Krüger
543f8bc38c
fix clippy::toplevel_ref_arg and ::manual_map
2023-04-16 13:28:13 +02:00
klensy
e4a9d137d0
bolt: remove deprecated option value
2023-04-16 14:13:14 +03:00
Scott McMurray
99fd9cb697
Remove the loop in Align::from_bytes
...
Perf is almost certainly irrelevant, but might as well simplify it, since `trailing_zeros` does exactly what's needed.
2023-04-16 04:01:34 -07:00
bors
1b50ea9abb
Auto merge of #110401 - fee1-dead-contrib:rollup-1f2smz2, r=fee1-dead
...
Rollup of 3 pull requests
Successful merges:
- #109665 (Remove `remap_env_constness` in queries)
- #110345 (Remove `TypeSuper{Foldable,Visitable}` impls for `Region`.)
- #110396 (Use lint via `lint_defs` instead of `lints`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-04-16 10:57:28 +00:00
fee1-dead
7fb14ae84d
Rollup merge of #110396 - Nilstrieb:speedy-bootstrap, r=jyn514
...
Use lint via `lint_defs` instead of `lints`
This gets rid of a blocking dependency edge from `rustc_lint->rustc_analysis->rustc_hir_typeck->rustc_interface`
![image](https://user-images.githubusercontent.com/48135649/232291152-fc61e6c5-9b1e-4db1-8101-dfaa3b7d30c6.png )
2023-04-16 18:55:39 +08:00
fee1-dead
eba419195c
Rollup merge of #110345 - nnethercote:rm-Super-impls-for-Region, r=compiler-errors
...
Remove `TypeSuper{Foldable,Visitable}` impls for `Region`.
These traits exist so that folders/visitors can recurse into types of interest: binders, types, regions, predicates, and consts. But `Region` is non-recursive and cannot contain other types of interest, so its methods in these traits are trivial.
This commit inlines and removes those trivial methods.
r? `@compiler-errors`
2023-04-16 18:55:38 +08:00
fee1-dead
a5136f14ae
Rollup merge of #109665 - fee1-dead-contrib:rm-remap-queries, r=oli-obk
...
Remove `remap_env_constness` in queries
This removes some of the complexities with const traits. #88119 used to be caused by this but was fixed by `param_env = param_env.without_const()`.
2023-04-16 18:55:38 +08:00
Erik Hofmayer
bfa87984d2
Fix error due to renaming of ignore_git
2023-04-16 12:50:33 +02:00
Erik Hofmayer
550df4d34b
Change mode of Makefile of test for issue 107094
2023-04-16 12:50:32 +02:00
Erik Hofmayer
135e6201fc
Add regression test for issue 107094
2023-04-16 12:50:32 +02:00
Erik Hofmayer
d535af3625
Add needs-git-hash header to compiletest
...
This header can be used for tests which check the output of `--version --verbose` commands.
2023-04-16 12:50:32 +02:00
Matthias Krüger
6ef8648a48
more clippy fixes: clippy::{iter_cloned_collect, unwarp_or_else_default, option_map_or_none}
2023-04-16 12:45:51 +02:00
Erik Hofmayer
28d27fd164
Set git info env variables when building tools
...
This should fix issue #107094 .
2023-04-16 12:09:00 +02:00
Matthias Krüger
bcc15bba95
use matches! macro in more places
2023-04-16 12:08:30 +02:00
Nilstrieb
2109fe4e4e
Move some utils out of rustc_const_eval
...
This allows us to get rid of the `rustc_const_eval->rustc_borrowck`
dependency edge which was delaying the compilation of borrowck.
The added utils in `rustc_middle` are small and should not affect
compile times there.
2023-04-16 12:05:54 +02:00
Camille GILLOT
8889c6fa0e
Account for variance in outlives obligations.
2023-04-16 10:01:15 +00:00
Camille GILLOT
4e7edf3684
Add tests.
2023-04-16 09:58:08 +00:00
Nilstrieb
ee8f92ba0a
Use lints via lint_defs
instead of lints
...
This gets rid of a blocking dependency edge from
`rustc_lint->rustc_analysis->rustc_hir_typeck->rustc_interface`
2023-04-16 11:48:01 +02:00
Scott McMurray
c98895d9f2
Various minor Idx-related tweaks
...
Nothing particularly exciting here, but a couple of things I noticed as I was looking for more index conversions to simplify.
2023-04-16 02:42:50 -07:00
Deadbeef
147e850691
revive raw pointer comp error
2023-04-16 09:25:48 +00:00
Deadbeef
eac922e721
readd const_trait
to Drop
, Destruct
, and Fn*
2023-04-16 09:25:23 +00:00
bors
18109d5032
Auto merge of #110391 - est31:remove_allow_unused, r=fee1-dead
...
Remove unused unused_macros
The macro is always used
2023-04-16 08:39:32 +00:00
Deadbeef
34097b2f33
fix tidy
2023-04-16 07:27:28 +00:00
Deadbeef
ede7bc032a
make rustc compilable
2023-04-16 07:25:13 +00:00
Deadbeef
4ecbd3be52
fix alloc
2023-04-16 07:21:33 +00:00
Deadbeef
63e0ddbf1d
core is now compilable
2023-04-16 07:20:26 +00:00