Tomasz Miąsko
70f150b51e
liveness: Delay conversion from a symbol to a string until linting
2020-09-26 15:38:51 +02:00
Tomasz Miąsko
2fb1564457
liveness: Remove redundant fields for a number of live nodes and variables
2020-09-26 15:38:30 +02:00
Tomasz Miąsko
9b5835ec79
liveness: Remove redundant debug logging
...
The IrMaps::add_variable already contains debug logging. Don't duplicate it.
2020-09-26 15:38:22 +02:00
Jonas Schievink
4c5acc4ed7
Return values up to 128 bits in registers
2020-09-26 15:34:26 +02:00
Oliver Scherer
455f284496
Deduplicate and generalize some (de/)serializer impls
2020-09-26 14:55:42 +02:00
varkor
7dda2c4218
Normalise BITS
in UI test
2020-09-26 13:34:55 +01:00
varkor
b484e584ec
Bless mir-opt 32-bit tests
2020-09-26 13:34:55 +01:00
varkor
387e3ddded
Bless mir-opt tests
2020-09-26 13:34:53 +01:00
varkor
94c789b275
char
not char
2020-09-26 13:34:49 +01:00
varkor
8eb42ba0fb
Make invalid integer operation messages consistent
2020-09-26 13:34:49 +01:00
Ralf Jung
9e02642fb3
Rollup merge of #77211 - est31:remove_unused_allow, r=oli-obk
...
Remove unused #[allow(...)] statements from compiler/
2020-09-26 12:58:34 +02:00
Ralf Jung
259e9477f4
Rollup merge of #77207 - camelid:whence-to-span, r=jyn514
...
Rename `whence` to `span`
It's called `span` elsewhere in the compiler and `span` is also less
surprising. `whence` is whimsical, but not super clear :)
See [this Discord conversation](https://discord.com/channels/442252698964721669/459149231702278154/758731658689511444 ) for more.
r? @jyn514
2020-09-26 12:58:32 +02:00
Ralf Jung
67f8c5914f
Rollup merge of #77204 - LingMan:patch-3, r=jonas-schievink
...
Remove stray word from `ClosureKind::extends` docs
2020-09-26 12:58:30 +02:00
Ralf Jung
0a19836a81
Rollup merge of #77181 - GuillaumeGomez:add-pointer-alias, r=jyn514,pickfire
...
Add doc alias for pointer primitive
2020-09-26 12:58:28 +02:00
Ralf Jung
f614ae4a30
Rollup merge of #77166 - RalfJung:miri, r=RalfJung
...
update Miri
Fixes https://github.com/rust-lang/rust/issues/77130
2020-09-26 12:58:26 +02:00
Ralf Jung
7c47b1e5f4
Rollup merge of #77161 - est31:swich_len_already_trusted, r=petrochenkov
...
Remove TrustedLen requirement from BuilderMethods::switch
The main use case of TrustedLen is allowing APIs to specialize on it,
but no use of it uses that specialization. Instead, only the .len()
function provided by ExactSizeIterator is used, which is already
required to be accurate.
Thus, the TrustedLen requirement on BuilderMethods::switch is redundant.
2020-09-26 12:58:24 +02:00
Ralf Jung
7ff5b44a58
Rollup merge of #77127 - camelid:update-mdbook, r=Dylan-DPC
...
Update mdBook
0.4.2 -> 0.4.3
Also updated version requirement in `Cargo.toml` from 0.4.0 to 0.4.3.
2020-09-26 12:58:22 +02:00
Ralf Jung
3b544e73ae
Rollup merge of #77122 - ecstatic-morse:const-fn-arithmetic, r=RalfJung,oli-obk
...
Add `#![feature(const_fn_floating_point_arithmetic)]`
cc #76618
This is a template for splitting up `const_fn` into granular feature gates. I think this will make it easier, both for us and for users, to track stabilization of each individual feature. We don't *have* to do this, however. We could also keep stabilizing things out from under `const_fn`.
cc @rust-lang/wg-const-eval
r? @oli-obk
2020-09-26 12:58:20 +02:00
Ralf Jung
ac8169dc10
Rollup merge of #77093 - lcnr:const-generics-infer-warning, r=varkor
...
merge `need_type_info_err(_const)`
I hoped that this would automatically solve #76737 but it doesn't quite seem like it
fixes #77092
r? @varkor
2020-09-26 12:58:17 +02:00
Ralf Jung
31fd0ad69f
Rollup merge of #77076 - GuillaumeGomez:missing-code-examples-slice-iter, r=Dylan-DPC
...
Add missing code examples on slice iter types
r? @Dylan-DPC
2020-09-26 12:58:15 +02:00
Ralf Jung
c39598aeea
Rollup merge of #76631 - jyn514:x.py-setup, r=Mark-Simulacrum
...
Add `x.py setup`
Closes #76503 .
- Suggest `x.py setup` if config.toml doesn't exist yet
- Prompt for a profile if not given on the command line
- Print the configuration that will be used
- Print helpful starting commands after setup
- Link to the dev-guide after finishing
2020-09-26 12:58:13 +02:00
Ralf Jung
1e62382a4f
Rollup merge of #75454 - ltratt:option_optimisation_guarantees, r=dtolnay
...
Explicitly document the size guarantees that Option makes.
Triggered by a discussion on wg-unsafe-code-guidelines about which layouts of `Option<T>` one can guarantee are optimised to a single pointer.
CC @RalfJung
2020-09-26 12:58:12 +02:00
Ralf Jung
6f881b3b7d
might_permit_raw_init: also check aggregate fields
2020-09-26 12:29:01 +02:00
Mara Bos
6b8b9c4adb
Disable stdout-during-shutdown test on emscripten.
2020-09-26 12:10:49 +02:00
bors
6f9a8a7f9b
Auto merge of #76485 - estebank:format_arg_capture_spans, r=davidtwco
...
Point at named argument not found when using `format_args_capture` instead of whole format string
2020-09-26 10:05:49 +00:00
Guillaume Gomez
21ee1716ee
Add doc alias for pointer primitive
2020-09-26 11:21:24 +02:00
Bastian Kauschke
9a607c0a27
unused into
2020-09-26 10:31:34 +02:00
Bastian Kauschke
32195ac8f4
rename functions
2020-09-26 10:28:15 +02:00
bors
fd15e6180d
Auto merge of #70743 - oli-obk:eager_const_to_pat_conversion, r=eddyb
...
Fully destructure constants into patterns
r? `@varkor`
as discussed in https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/constants.20in.20patterns/near/192789924
we should probably crater it once reviewed
2020-09-26 06:44:28 +00:00
bors
9e1c436178
Auto merge of #74225 - poliorcetics:std-thread-unsafe-op-in-unsafe-fn, r=joshtriplett
...
Std/thread: deny unsafe op in unsafe fn
Partial fix of #73904 .
This encloses `unsafe` operations in `unsafe fn` in `libstd/thread`.
`@rustbot` modify labels: F-unsafe-block-in-unsafe-fn
2020-09-26 03:54:00 +00:00
bors
c6622d1d05
Auto merge of #76176 - marmeladema:fix-closure-path-printing, r=eddyb
...
Move from {{closure}}#0 syntax to {closure#0} for (def) path components
Part of #70334
I followed the approach described by `@eddyb` and introduced a `DefPathDataName` enum.
To preserve compatibility, in various places, I had to rely on formatting manually by calling `format!("{{{{{}}}}}", namespace)`.
My questions are:
* Do we want to convert for places to use the new naming scheme? Or shall I re-add `DefPathData::as_symbol` but renamed as `DefPathData::as_legacy_symbol` to avoid manually allocating the legacy symbols?
* Do we want to `impl Display for DisambiguatedDefPathData` to avoid manually calling `write!(s, "{{{}#{}}}", namespace, component.disambiguator)`?
* We might also want to improve naming for `DefPathDataName` and `DefPathData::get_name`
r? `@eddyb`
2020-09-26 01:36:50 +00:00
est31
12187b7f86
Remove unused #[allow(...)] statements from compiler/
2020-09-26 01:25:55 +02:00
Joshua Nelson
58d57f3f5e
Fix documentation highlighting in ty::BorrowKind
...
Previously it looked a little odd: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BorrowKind.html#variant.UniqueImmBorrow
2020-09-25 18:54:05 -04:00
Camelid
aa6a2f4035
Rename whence
to span
...
It's called `span` elsewhere in the compiler and `span` is also less
surprising. `whence` is whimsical, but not super clear :)
2020-09-25 14:59:00 -07:00
marmeladema
5946c12476
Move is_raw_guess
check in ty::print::pretty
2020-09-25 22:48:44 +01:00
marmeladema
35bad3edbf
Address review comment
2020-09-25 22:48:44 +01:00
marmeladema
601c284e1e
Fix tests
2020-09-25 22:48:43 +01:00
marmeladema
f25d0bc559
Remove now unused double_braced_*
symbols
2020-09-25 22:46:15 +01:00
marmeladema
23085b6360
Fix profiling query key creation
2020-09-25 22:46:15 +01:00
marmeladema
bb8e1764bb
Simplify some match statements on `DefPathDataName'
2020-09-25 22:46:15 +01:00
marmeladema
75130b06bf
Avoid calling Symbol::interner
in compute_codegen_unit_name
2020-09-25 22:46:15 +01:00
marmeladema
657ecdb75e
Rename DefPathData::get_name()
to DefPathData::name()
2020-09-25 22:46:15 +01:00
marmeladema
2708ad8bb4
Fix pretty-printing of DisambiguatedDefPathData
2020-09-25 22:46:15 +01:00
marmeladema
9f50c49117
Implement Display
for DisambiguatedDefPathData
and DefPathData
2020-09-25 22:46:15 +01:00
marmeladema
f1878d19fa
Move from {{closure}}#0 syntax to {closure#0} for (def) path components
2020-09-25 22:46:14 +01:00
bors
043f6d747c
Auto merge of #77201 - matthewjasper:rename-get-unchecked, r=spastorino
...
Rename Iterator::get_unchecked
Closes #76479
r? `@pnkfelix`
2020-09-25 21:44:26 +00:00
LingMan
900daba2cb
Remove stray word from ClosureKind::extends
docs
2020-09-25 23:35:07 +02:00
Dylan MacKenzie
6ce178f60e
Test for missing const-stability attributes
2020-09-25 14:31:32 -07:00
Dylan MacKenzie
76c6f2dc3f
No need to call is_min_const_fn
for side-effects
2020-09-25 14:31:32 -07:00
Dylan MacKenzie
11bfc60a4b
Change error in fn_queries
to delay_span_bug
...
This should be caught by the new check in `rustc_passes`. At some point,
this function will be removed entirely.
2020-09-25 14:31:32 -07:00