Dylan DPC
3f4b039e33
word wrpa
2022-02-24 00:37:06 +01:00
Dylan DPC
eb795c24fb
word wrpa
2022-02-24 00:30:07 +01:00
Dylan DPC
c46d9f6c89
Update library/std/src/io/error.rs
...
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2022-02-23 23:18:42 +01:00
Tomasz Miąsko
f047af24b3
Normalize main return type during mono item collection & codegen
2022-02-23 22:33:50 +01:00
Ralf Jung
182d335870
Miri: relax fn ptr check
2022-02-23 15:11:38 -05:00
bors
532d3cda90
Auto merge of #94286 - matthiaskrgr:rollup-6i1spjg, r=matthiaskrgr
...
Rollup of 12 pull requests
Successful merges:
- #94128 (rustdoc: several minor fixes)
- #94137 (rustdoc-json: Better Header Type)
- #94213 (fix names in feature(...) suggestion)
- #94240 (Suggest calling .display() on `PathBuf` too)
- #94253 (Use 2021 edition in ./x.py fmt)
- #94259 (Bump download-ci-llvm-stamp for llvm-nm inclusion)
- #94260 (Fix rustdoc infinite redirection generation)
- #94263 (Typo fix: Close inline-code backtick)
- #94264 (Fix typo.)
- #94271 (Miri: extend comments on downcast operation)
- #94280 (Rename `region_should_not_be_omitted` to `should_print_region`)
- #94285 (Sync rustc_codegen_cranelift)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-02-23 18:18:23 +00:00
Waffle Maybe
715262f151
Fix a typo in documentation of array::IntoIter::new_unchecked
2022-02-23 21:10:04 +03:00
bjorn3
512cc355b3
Always check cg_llvm with ./x.py check
...
Previously it would be skipped if codegen-backends doesn't contain llvm.
2022-02-23 18:53:05 +01:00
Arlo Siemsen
be454f056f
Change char
type in debuginfo to DW_ATE_UTF
...
Rust previously encoded the `char` type as DW_ATE_unsigned_char. The more
appropriate encoding is DW_ATE_UTF.
Clang uses this same debug encoding for char32_t.
This fixes the display of `char` types in Windows debuggers as well as LLDB.
2022-02-23 08:31:10 -08:00
Michael Goulet
c73a2f8a65
properly handle fat pointers to uninhabitable types
2022-02-23 08:20:12 -08:00
lcnr
d9230a3c0f
backport from stable and fix link
2022-02-23 16:16:34 +01:00
lcnr
adc8a8a30a
update rel notes for cg stabilization
2022-02-23 16:11:26 +01:00
Laurențiu Nicola
dbe0007a49
⬆️ rust-analyzer
2022-02-23 17:11:18 +02:00
Scott Mabin
65614e91ad
riscv32imc_esp_espidf: set max_atomic_width to 64
2022-02-23 13:11:26 +00:00
Loïc BRANSTETT
a556a2a8e6
Add compiler flag --check-cfg
to the unstable book
2022-02-23 13:22:23 +01:00
Loïc BRANSTETT
8d3de56da1
Continue improvements on the --check-cfg implementation
...
- Test the combinations of --check-cfg with partial values() and --cfg
- Test that we detect unexpected value when none are expected
2022-02-23 13:22:23 +01:00
Matthias Krüger
8f53bdb45f
Rollup merge of #94285 - bjorn3:sync_cg_clif-2022-02-23, r=bjorn3
...
Sync rustc_codegen_cranelift
r? `@ghost`
`@rustbot` label +A-codegen +A-cranelift +T-compiler
2022-02-23 12:26:48 +01:00
Matthias Krüger
ecf2faacff
Rollup merge of #94280 - tmiasko:should-print-region, r=oli-obk
...
Rename `region_should_not_be_omitted` to `should_print_region`
to avoid double negation
2022-02-23 12:26:47 +01:00
Matthias Krüger
81794bed12
Rollup merge of #94271 - RalfJung:downcast, r=oli-obk
...
Miri: extend comments on downcast operation
r? `@oli-obk`
2022-02-23 12:26:46 +01:00
Matthias Krüger
efe6a979b5
Rollup merge of #94264 - NyantasticUwU:patch-1, r=yaahc
...
Fix typo.
Yeah just a typo (probably some breaking changes in here be careful) :)
2022-02-23 12:26:45 +01:00
Matthias Krüger
6550671fa5
Rollup merge of #94263 - anko:patch-1, r=GuillaumeGomez
...
Typo fix: Close inline-code backtick
A drop in the ocean.
2022-02-23 12:26:45 +01:00
Matthias Krüger
a9eb5f077c
Rollup merge of #94260 - GuillaumeGomez:infinite-redirection, r=notriddle
...
Fix rustdoc infinite redirection generation
Someone came to me about a funny bug they had when clicking on any link on [this page](https://world.pages.gitlab.gnome.org/Rust/libadwaita-rs/stable/latest/docs/libadwaita/builders/index.html ): it ended one page redirecting to itself indefinitely.
I was able to make a minimum reproducible case to trigger this bug which I now use as a test.
r? ``@notriddle``
2022-02-23 12:26:44 +01:00
Matthias Krüger
09e4f34583
Rollup merge of #94259 - krasimirgg:bump-llvm-ci, r=Mark-Simulacrum
...
Bump download-ci-llvm-stamp for llvm-nm inclusion
We started using it in https://github.com/rust-lang/rust/pull/94023 .
2022-02-23 12:26:44 +01:00
Matthias Krüger
86ee06a6ab
Rollup merge of #94253 - bjorn3:xpy-fmt-2021, r=Mark-Simulacrum
...
Use 2021 edition in ./x.py fmt
2022-02-23 12:26:43 +01:00
Matthias Krüger
40afbdd148
Rollup merge of #94240 - compiler-errors:pathbuf-display, r=lcnr
...
Suggest calling .display() on `PathBuf` too
Fixes #94210
2022-02-23 12:26:42 +01:00
Matthias Krüger
14ac74d438
Rollup merge of #94213 - digama0:patch-4, r=Dylan-DPC
...
fix names in feature(...) suggestion
2022-02-23 12:26:41 +01:00
Matthias Krüger
8bb6051317
Rollup merge of #94137 - aDotInTheVoid:abi-enum, r=CraftSpider
...
rustdoc-json: Better Header Type
- Make ABI an enum, instead of being stringly typed
- Replace Qualifier HashSet with 3 bools
- Merge ABI field into header, as they always occor together
r? ``@CraftSpider``
``@rustbot`` modify labels: +A-rustdoc-json +T-rustdoc
2022-02-23 12:26:41 +01:00
Matthias Krüger
0c676a8a84
Rollup merge of #94128 - mqy:master, r=Dylan-DPC
...
rustdoc: several minor fixes
``@rustbot`` label A-docs
2022-02-23 12:26:40 +01:00
bjorn3
f596dce542
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
2022-02-23 11:49:34 +01:00
bjorn3
35d9c6bf25
Rustup to rustc 1.61.0-nightly ( 68369a041
2022-02-22)
2022-02-23 11:45:41 +01:00
bjorn3
ca1f3e752e
Sync from rust bafe8d06e0
2022-02-23 11:38:28 +01:00
Marcel Hellwig
c403424203
remove feature gate in control_flow examples
2022-02-23 10:42:46 +01:00
bors
c651ba8a54
Auto merge of #94277 - ehuss:update-cargo, r=ehuss
...
Update cargo
8 commits in ea2a21c994ca1e4d4c49412827b3cf4dcb158b1d..d6cdde584a1f15ea086bae922e20fd27f7165431
2022-02-15 04:24:07 +0000 to 2022-02-22 19:55:51 +0000
- Add common profile validation. (rust-lang/cargo#10411 )
- Add -Z check-cfg-features to enable compile-time checking of features (rust-lang/cargo#10408 )
- Remove invalid target-specific dependency example. (rust-lang/cargo#10401 )
- Fix errors in `cargo fetch` usage guide (rust-lang/cargo#10398 )
- Fix some broken doc links. (rust-lang/cargo#10404 )
- Implement "artifact dependencies" (RFC-3028) (rust-lang/cargo#9992 )
- Print executable name on cargo test --no-run rust-lang/cargo#2 (rust-lang/cargo#10346 )
- Avoid new deprecation warnings from clap 3.1.0 (rust-lang/cargo#10396 )
2022-02-23 08:04:34 +00:00
Tomasz Miąsko
1113cd5bbe
Rename region_should_not_be_omitted
to should_print_region
...
to avoid double negation
2022-02-23 08:58:36 +01:00
Eric Huss
474803f9a1
Update cargo
2022-02-22 23:22:42 -08:00
Eduard-Mihai Burtescu
b7e95dee65
rustc_errors: let DiagnosticBuilder::emit
return a "guarantee of emission".
2022-02-23 06:38:52 +00:00
Eduard-Mihai Burtescu
0b9d70cf6d
rustc_errors: take self
by value in DiagnosticBuilder::cancel
.
2022-02-23 06:08:06 +00:00
Eduard-Mihai Burtescu
8562d6b752
rustc_errors: remove struct_dummy
.
2022-02-23 05:38:24 +00:00
Eduard-Mihai Burtescu
d4fc5ae25c
rustc_errors: handle force_warn
only through DiagnosticId::Lint
.
2022-02-23 05:38:24 +00:00
Eduard-Mihai Burtescu
02ff9e0aef
Replace &mut DiagnosticBuilder
, in signatures, with &mut Diagnostic
.
2022-02-23 05:38:19 +00:00
pierwill
516e965bfd
Remove unused ordering derivations and bounds for SimplifiedTypeGen
2022-02-22 22:29:13 -06:00
Eduard-Mihai Burtescu
f24ff1815f
rustc_errors: add downgrade_to_delayed_bug
to Diagnostic
itself.
2022-02-23 03:46:51 +00:00
Dylan DPC
057dc09eae
add some more summary from pr discussion
2022-02-23 03:29:02 +01:00
Dylan DPC
37cbc7d120
add some more summary from pr discussion
2022-02-23 03:28:27 +01:00
Dylan DPC
4905814249
add matching to errorkind
2022-02-23 03:22:23 +01:00
bors
bafe8d06e0
Auto merge of #93984 - nnethercote:ChunkedBitSet, r=Mark-Simulacrum
...
Introduce `ChunkedBitSet` and use it for some dataflow analyses.
This reduces peak memory usage significantly for some programs with very
large functions.
r? `@ghost`
2022-02-23 01:26:07 +00:00
Ralf Jung
d0192e6291
Miri: extend comments on downcast operation
2022-02-22 19:09:11 -05:00
Nicholas Nethercote
36b495f3cf
Introduce ChunkedBitSet
and use it for some dataflow analyses.
...
This reduces peak memory usage significantly for some programs with very
large functions, such as:
- `keccak`, `unicode_normalization`, and `match-stress-enum`, from
the `rustc-perf` benchmark suite;
- `http-0.2.6` from crates.io.
The new type is used in the analyses where the bitsets can get huge
(e.g. 10s of thousands of bits): `MaybeInitializedPlaces`,
`MaybeUninitializedPlaces`, and `EverInitializedPlaces`.
Some refactoring was required in `rustc_mir_dataflow`. All existing
analysis domains are either `BitSet` or a trivial wrapper around
`BitSet`, and access in a few places is done via `Borrow<BitSet>` or
`BorrowMut<BitSet>`. Now that some of these domains are `ClusterBitSet`,
that no longer works. So this commit replaces the `Borrow`/`BorrowMut`
usage with a new trait `BitSetExt` containing the needed bitset
operations. The impls just forward these to the underlying bitset type.
This required fiddling with trait bounds in a few places.
The commit also:
- Moves `static_assert_size` from `rustc_data_structures` to
`rustc_index` so it can be used in the latter; the former now
re-exports it so existing users are unaffected.
- Factors out some common "clear excess bits in the final word"
functionality in `bit_set.rs`.
- Uses `fill` in a few places instead of loops.
2022-02-23 10:18:49 +11:00
Mark Rousskov
f1bcb0f3af
Delete Decoder::read_unit
2022-02-22 18:14:51 -05:00
Mark Rousskov
2098ea6eba
Provide copy-free access to raw Decoder bytes
2022-02-22 18:11:59 -05:00