Commit Graph

125157 Commits

Author SHA1 Message Date
Joshua Nelson
9914f73f14 Add doc-comment for kind_side_channel 2020-08-06 23:17:15 -04:00
bors
63e34422bb Auto merge of #75233 - RalfJung:miri, r=RalfJung
update Miri

Fixes https://github.com/rust-lang/rust/issues/74999
Cc @rust-lang/miri r? @ghost
2020-08-07 03:04:38 +00:00
Ryan1729
fe9ad57e98 copy over *.fixed file 2020-08-06 20:28:29 -06:00
Ryan1729
c04c4cb6e4 copy over *.fixed file 2020-08-06 20:28:29 -06:00
bors
6396dbbd62 Auto merge of #75238 - JohnTitor:rollup-llbk0sq, r=JohnTitor
Rollup of 12 pull requests

Successful merges:

 - #74888 (compiletest: ignore-endian-big, fixes #74829, fixes #74885)
 - #75175 (Make doctests of Ipv4Addr::from(u32) easier to read)
 - #75179 (Remove unused FromInner impl for Ipv4Addr)
 - #75181 (Fix typo in  `librustc_feature/active.rs`)
 - #75183 (Label rustfmt toolstate issues with A-rustfmt)
 - #75188 (Handle fieldless tuple structs in diagnostic code)
 - #75190 (Clean up E0746 explanation)
 - #75210 (Change the type of `AssertModuleSource::available_cgus`.)
 - #75211 (Note about endianness of returned value of {integer}::from_be_bytes and friends)
 - #75217 (Clean up E0747 explanation)
 - #75232 (Fix typo "TraitObligatiom" -> "TraitObligation")
 - #75236 (Fix typo "biset" -> "bitset")

Failed merges:

r? @ghost
2020-08-07 01:16:47 +00:00
Yuki Okushi
3c131d6738
Rollup merge of #75236 - syntacticsugarglider:patch-1, r=jonas-schievink
Fix typo "biset" -> "bitset"
2020-08-07 09:35:31 +09:00
Yuki Okushi
6f2fa1ef51
Rollup merge of #75232 - leijurv:patch-1, r=jonas-schievink
Fix typo "TraitObligatiom" -> "TraitObligation"
2020-08-07 09:35:29 +09:00
Yuki Okushi
76086a2d76
Rollup merge of #75217 - GuillaumeGomez:cleanup-e0747, r=Dylan-DPC
Clean up E0747 explanation

r? @Dylan-DPC
2020-08-07 09:35:28 +09:00
Yuki Okushi
26705d5bcb
Rollup merge of #75211 - lzutao:native-endian-notes, r=lcnr
Note about endianness of returned value of {integer}::from_be_bytes and friends

[`u32::from_be`](https://doc.rust-lang.org/nightly/src/core/num/mod.rs.html#2883-2892) documents about endianness of returned value.

I was confused by endianness of `from_be_bytes` in #75086 .
2020-08-07 09:35:26 +09:00
Yuki Okushi
19d4e1dcac
Rollup merge of #75210 - nnethercote:change-type-of-available_cgus, r=ecstatic-morse
Change the type of `AssertModuleSource::available_cgus`.

It's currently a `BTreeSet<Symbol>`, which is a strange type. The
`BTreeSet` suggests that element order is important, but `Symbol` is a
type whose ordering isn't useful to humans. The ordering of the
collection only manifests in an obscure error message ("no module named
`...`") that doesn't appear in any tests.

This commit changes the `Symbol` to a `String`, which is more
typical.
2020-08-07 09:35:24 +09:00
Yuki Okushi
f49e47348d
Rollup merge of #75190 - GuillaumeGomez:cleanup-e0746, r=Dylan-DPC
Clean up E0746 explanation

r? @Dylan-DPC
2020-08-07 09:35:23 +09:00
Yuki Okushi
665138c977
Rollup merge of #75188 - Aaron1011:fix/fieldless-tuple-error, r=varkor
Handle fieldless tuple structs in diagnostic code

Fixes #75062
2020-08-07 09:35:21 +09:00
Yuki Okushi
5542fba2d3
Rollup merge of #75183 - Aaron1011:toolstate/a-rustfmt, r=nikomatsakis
Label rustfmt toolstate issues with A-rustfmt

This makes it easier to filter toolstate issues by the tool involved.
2020-08-07 09:35:19 +09:00
Yuki Okushi
d36087bdac
Rollup merge of #75181 - WaffleLapkin:patch-2, r=ecstaticmorse
Fix typo in  `librustc_feature/active.rs`
2020-08-07 09:35:18 +09:00
Yuki Okushi
1b61fd3ccf
Rollup merge of #75179 - lzutao:unsed-ipv4-frominner, r=alexcrichton
Remove unused FromInner impl for Ipv4Addr

The removed is a unused unstable implementation.
2020-08-07 09:35:16 +09:00
Yuki Okushi
c9c7048038
Rollup merge of #75175 - lzutao:doctest-ipv4-fromu32, r=cuviper
Make doctests of Ipv4Addr::from(u32) easier to read

There are many zeroes in `0x0d0c0b0au32` which makes it hard to read.
2020-08-07 09:35:14 +09:00
Yuki Okushi
9d5bd597ac
Rollup merge of #74888 - infinity0:ignore-endian-big, r=nikomatsakis
compiletest: ignore-endian-big, fixes #74829, fixes #74885

See discussion on #74829

I tested it on a Debian s390x machine, works well.
2020-08-07 09:35:13 +09:00
Izzy Swart
b809f453ca
Fix typo "biset" -> "bitset" 2020-08-06 16:13:29 -07:00
Joshua Nelson
17263bc2da Remove dead code 2020-08-06 18:57:56 -04:00
Joshua Nelson
d240490229 Fix outdated code 2020-08-06 18:53:12 -04:00
Joshua Nelson
ef54cde625 Improve tests 2020-08-06 18:33:29 -04:00
Amanieu d'Antras
b5cef24f5f Update asm! documentation in unstable book
- Update the list of supported architectures.
- Clarify issues with LLVM's use of reserved registers.
2020-08-06 23:22:07 +01:00
Joshua Nelson
0c99d806ea Use the proper kind for associated items
See comments in the diff; this is such a hack.

The reason this can't be done properly in `register_res` is because
there's no way to get back the parent type: calling
`tcx.parent(assoc_item)` gets you the _impl_, not the type.
You can call `tcx.impl_trait_ref(impl_).self_ty()`, but there's no way
to go from that to a DefId without unwrapping.
2020-08-06 18:16:10 -04:00
Ralf Jung
854d8e8ceb update Miri 2020-08-06 23:55:30 +02:00
Leijurv
6eeae7d420
Fix typo "TraitObligatiom" -> "TraitObligation" 2020-08-06 14:37:32 -07:00
Joshua Nelson
f05e9da493 Still print help even if there's no span 2020-08-06 17:10:52 -04:00
Nicholas Nethercote
ebbf07a154 Change the type of AssertModuleSource::available_cgus.
It's currently a `BTreeSet<Symbol>`, which is a strange type. The
`BTreeSet` suggests that element order is important, but `Symbol` is a
type whose ordering isn't useful to humans. The ordering of the
collection only manifests in an obscure error message ("no module named
`...`") that doesn't appear in any tests.

This commit changes the `Symbol` to a `String`, which is more
typical.
2020-08-07 06:58:14 +10:00
Bastian Kauschke
37c29adabc allow complex expressions in assoc consts 2020-08-06 22:37:20 +02:00
bors
71f8d0c8f1 Auto merge of #75228 - tmiasko:keep-stdout-open, r=ecstatic-morse
Keep stdout open in limit_vector_count test
2020-08-06 20:22:20 +00:00
Vadim Petrochenkov
a285b58368 Add some comments for magic numbers + Add tests 2020-08-06 22:55:26 +03:00
Vadim Petrochenkov
a7eabec1df Add some comments for magic numbers + Add tests 2020-08-06 22:55:26 +03:00
Vadim Petrochenkov
d642c3b6f8 Fix clippy 2020-08-06 22:13:11 +03:00
Vadim Petrochenkov
6b25c50ed4 Fix clippy 2020-08-06 22:13:11 +03:00
Vadim Petrochenkov
712de2b521 rustc_expand: Don not beautify doc comments before passing them to macros
Beautify all doc strings in rustdoc instead, including those in `#[doc]` attributes
2020-08-06 22:13:11 +03:00
Vadim Petrochenkov
000c070b70 rustc_ast/comments: Modernize some enum reexports 2020-08-06 22:13:11 +03:00
Vadim Petrochenkov
46f48d31fe rustc_ast: Stop using "string typing" for doc comment tokens
Explicitly store their kind and style retrieved during lexing in the token
2020-08-06 22:13:11 +03:00
Amanieu d'Antras
9abdb6db6f Fix ICE when using asm! on an unsupported architecture
Fixes #75220
2020-08-06 19:52:15 +01:00
bors
0d75c91def Auto merge of #75218 - Aaron1011:feature/prof-metadata-query, r=Mark-Simulacrum
Record query name when profiling "metadata_decode_entry"
2020-08-06 18:26:50 +00:00
Aaron Hill
bbcacddef6
Don't call a function in function-arguments-naked.rs
Fixes #75096

It's U.B. to use anything other than inline assmebling in a naked
function. Fortunately, the `#break` directive works fine without
anything in the function body.
2020-08-06 12:12:59 -04:00
bors
c15bae53b5 Auto merge of #75086 - lzutao:u32const, r=oli-obk
Use u32::from_ne_bytes to fix a FIXME and add comment about that

`u32::from_ne_bytes` has been const stable since 1.44.
2020-08-06 14:21:48 +00:00
Ryan Wiedemann
49c7e39d03 Apply suggestions from code review
Co-authored-by: Philipp Krones <hello@philkrones.com>
2020-08-06 07:57:31 -06:00
Ryan Wiedemann
d897fd28ae
Apply suggestions from code review
Co-authored-by: Philipp Krones <hello@philkrones.com>
2020-08-06 07:57:31 -06:00
Aaron Hill
c9bd9431d0
Record query name when profiling "metadata_decode_entry" 2020-08-06 09:33:34 -04:00
Ryan1729
42f3d39a54 run clippy_dev fmt
This seemed to overdo it a bit, affecting multiple submodules, and changing a file I didn't touch, so I didn't commit those changes
2020-08-06 06:15:57 -06:00
Ryan1729
32691da3d9 run clippy_dev fmt
This seemed to overdo it a bit, affecting multiple submodules, and changing a file I didn't touch, so I didn't commit those changes
2020-08-06 06:15:57 -06:00
bors
4b0882cfaa Auto merge of #74889 - JohnTitor:hrtb-tests, r=nikomatsakis
Add HRTB-related regression test

Closes #59311 and cc #71546
This closes the former but the test is taken from https://github.com/rust-lang/rust/issues/71546#issuecomment-620638437 since it seems they have the same cause and it's simplified.
2020-08-06 12:12:59 +00:00
Ryan1729
0d2a378547 run clippy_dev update_lints 2020-08-06 06:11:23 -06:00
Ryan1729
007dc944da run clippy_dev update_lints 2020-08-06 06:11:23 -06:00
Ryan1729
4027f15dd6 run ./x.py fmt 2020-08-06 06:08:32 -06:00
Guillaume Gomez
57b517bf1d Clean up E0747 explanation 2020-08-06 13:33:54 +02:00