Krasimir Georgiev
df5d035f51
mark sys_common::once::generic::Once::new const-stable
2022-10-18 14:11:02 +00:00
bors
21b246587c
Auto merge of #103075 - SUPERCILEX:miri-metadata, r=thomcc
...
Support DirEntry metadata calls in miri
This should work as it uses lstat64 which is supported here: ~d9ad25ee4b/src/shims/unix/macos/foreign_items.rs (L42~) just noticed that's macos, linux would be using statx: 86f0e63b21/src/shims/unix/linux/foreign_items.rs (L112)
The failing syscall is `dirfd`, so maybe that should actually be added to the shims?
2022-10-18 10:54:53 +00:00
bors
e0f8e60ddd
Auto merge of #103177 - lnicola:rust-analyzer-2022-10-18, r=lnicola
...
⬆️ rust-analyzer
r? `@ghost`
2022-10-18 07:46:49 +00:00
Laurențiu Nicola
cb8fdff56d
⬆️ rust-analyzer
2022-10-18 09:12:49 +03:00
bors
a03ca01f47
Auto merge of #102992 - nnethercote:rm-RunCompiler-emitter, r=bjorn3
...
Remove `RunCompiler::emitter`.
It's no longer used.
r? `@bjorn3`
2022-10-18 05:06:04 +00:00
bors
98a5ac269c
Auto merge of #102543 - daym:patch-1, r=joshtriplett
...
Remove "execute" bit from lock file permissions
Previously, flock would set the "execute" bit on Rust lock files. That makes no sense.
This patch clears the "execute" bit on Rust lock files.
See issue #102531 .
2022-10-18 02:04:24 +00:00
bors
194140bef5
Auto merge of #103165 - matthiaskrgr:rollup-guw8oh6, r=matthiaskrgr
...
Rollup of 4 pull requests
Successful merges:
- #103152 (Use named arguments to make GUI test more clear)
- #103160 (rustdoc: factor JS mobile scroll lock into its own function)
- #103161 (rustdoc: remove redundant CSS on `#copy-path`)
- #103162 (rustdoc: remove redundant CSS `#crate-search { border-radius }`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-17 23:16:57 +00:00
Nicholas Nethercote
641f8249f9
Remove RunCompiler::emitter.
...
It's no longer used.
2022-10-18 08:48:58 +11:00
Matthias Krüger
8a467c3215
Rollup merge of #103162 - notriddle:notriddle/crate-search, r=GuillaumeGomez
...
rustdoc: remove redundant CSS `#crate-search { border-radius }`
This is the same border-radius that's always set on that ID:
a9d1cafa87/src/librustdoc/html/static/css/rustdoc.css (L825-L836)
2022-10-17 23:09:08 +02:00
Matthias Krüger
1e7b6ece88
Rollup merge of #103161 - notriddle:notriddle/copy-path-settings-help-button, r=GuillaumeGomez
...
rustdoc: remove redundant CSS on `#copy-path`
The border and background were removed in 5d004c1e20 , but not all the CSS was.
2022-10-17 23:09:07 +02:00
Matthias Krüger
0a19575591
Rollup merge of #103160 - notriddle:notriddle/js-mobile-scroll, r=GuillaumeGomez
...
rustdoc: factor JS mobile scroll lock into its own function
https://github.com/rust-lang/rust/pull/98775#issuecomment-1172728308
2022-10-17 23:09:07 +02:00
Matthias Krüger
245b12e26e
Rollup merge of #103152 - GuillaumeGomez:named-arguments, r=notriddle
...
Use named arguments to make GUI test more clear
As you suggested `@notriddle.` The result looks like this.
r? `@notriddle`
2022-10-17 23:09:06 +02:00
bors
06f049a355
Auto merge of #101837 - scottmcm:box-array-from-vec, r=m-ou-se
...
Add `Box<[T; N]>: TryFrom<Vec<T>>`
We have `[T; N]: TryFrom<Vec<T>>` (#76310 ) and `Box<[T; N]>: TryFrom<Box<[T]>>`, but not this combination.
`vec.into_boxed_slice().try_into()` isn't quite a replacement for this, as that'll reallocate unnecessarily in the error case.
**Insta-stable, so needs an FCP**
(I tried to make this work with `, A`, but that's disallowed because of `#[fundamental]` https://github.com/rust-lang/rust/issues/29635#issuecomment-1247598385 )
2022-10-17 19:46:04 +00:00
Michael Howell
642bb0d54f
rustdoc: remove redundant CSS #crate-search { border-radius }
...
This is the same border-radius that's always set on that ID:
a9d1cafa87/src/librustdoc/html/static/css/rustdoc.css (L825-L836)
2022-10-17 12:16:40 -07:00
Danny Milosavljevic
e07e5104fe
Remove execute bit from lock file permissions
2022-10-17 21:10:46 +02:00
Michael Howell
3aa3b8be4e
rustdoc: remove redundant CSS on #copy-path
...
The border and background were removed in
5d004c1e20 , but not all the CSS was.
2022-10-17 11:59:01 -07:00
Michael Howell
3932b2c21d
rustdoc: factor JS mobile scroll lock into its own function
...
https://github.com/rust-lang/rust/pull/98775#issuecomment-1172728308
2022-10-17 11:44:02 -07:00
bors
9c2797de22
Auto merge of #103151 - matthiaskrgr:rollup-t3mmnsg, r=matthiaskrgr
...
Rollup of 4 pull requests
Successful merges:
- #102454 (Suggest parentheses for possible range method calling)
- #102466 (only allow `ConstEquate` with `feature(gce)`)
- #102945 (Do not register placeholder `RegionOutlives` obligations when `considering_regions` is false)
- #103091 (rustdoc: remove unused HTML class `sidebar-title`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-17 17:05:17 +00:00
Guillaume Gomez
885d69093f
Use named arguments to make test clearer
2022-10-17 18:08:53 +02:00
Guillaume Gomez
a3eab0ba67
Update browser-ui-test version to 0.12.6
2022-10-17 18:08:40 +02:00
Matthias Krüger
e1d72a485a
Rollup merge of #103091 - notriddle:notriddle/sidebar-title, r=GuillaumeGomez
...
rustdoc: remove unused HTML class `sidebar-title`
Since 6a5f8b1aef , this class is no longer styled.
2022-10-17 17:15:51 +02:00
Matthias Krüger
d02a221d31
Rollup merge of #102945 - compiler-errors:placeholder-region-outlives, r=lcnr
...
Do not register placeholder `RegionOutlives` obligations when `considering_regions` is false
**NOTE:** I'm kinda just putting this up for discussion. I'm not certain this is correct...?
This was introduced in [`608625d`](608625dae9 (diff-6e54b18681342ec725d75591dbf384ad08cd73df29db00485fe51b4e90f76ff7R361) ).
Interestingly, we only check `data.has_placeholders()` for `RegionOutlives`, and not for `TypeOutlives`... why? For the record, that different treatment between `RegionOutlives` and `TypeOutlives` is why the fix "The compiling succeeds when all `'a : 'b` are replaced with `&'a () : 'b`" in #100689 _"works"_, but it seems like an implementation detail considering this.
Also, why do we care about placeholder regions being registered if `considering_regions` is false? It doesn't seem to affect any UI tests, for example.
r? `@lcnr`
Fixes #102899
Fixes #100689
2022-10-17 17:15:50 +02:00
Matthias Krüger
e91fd0b514
Rollup merge of #102466 - lcnr:const-equate-uwu, r=BoxyUwU
...
only allow `ConstEquate` with `feature(gce)`
2022-10-17 17:15:50 +02:00
Matthias Krüger
66de34b035
Rollup merge of #102454 - chenyukang:fix-102396-missing-parentheses, r=lcnr
...
Suggest parentheses for possible range method calling
Fixes #102396
2022-10-17 17:15:49 +02:00
bors
a9d1cafa87
Auto merge of #102355 - lcnr:bye-bye-type-traversal, r=oli-obk
...
remove type traversal for mir constants
r? `@oli-obk` cc `@b-naber`
2022-10-17 14:19:28 +00:00
bors
abd7744101
Auto merge of #103145 - matthiaskrgr:rollup-mxwsysv, r=matthiaskrgr
...
Rollup of 4 pull requests
Successful merges:
- #102962 (remote-test-server: Show command line arguments)
- #103129 (rustdoc: remove unused `.sub-logo-container` DOM on non-source pages)
- #103136 (Fix types in documentation for `Alignment::as_usize` and `Alignmnet::as_nonzero`)
- #103139 (Duplicate comment in mod.rs)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-17 11:33:40 +00:00
Matthias Krüger
bb3f60b847
Rollup merge of #103139 - smoelius:patch-2, r=Dylan-DPC
...
Duplicate comment in mod.rs
2022-10-17 13:11:08 +02:00
Matthias Krüger
0c2017ff54
Rollup merge of #103136 - tmccombs:alignment-doc-fixes, r=Dylan-DPC
...
Fix types in documentation for `Alignment::as_usize` and `Alignmnet::as_nonzero`
2022-10-17 13:11:07 +02:00
Matthias Krüger
81ea72b38e
Rollup merge of #103129 - notriddle:notriddle/sub-logo-container, r=GuillaumeGomez
...
rustdoc: remove unused `.sub-logo-container` DOM on non-source pages
2022-10-17 13:11:07 +02:00
Matthias Krüger
9a615fd4e4
Rollup merge of #102962 - flba-eb:remote_test_server_help, r=pietroalbini
...
remote-test-server: Show command line arguments
The user of remote-test-server should get at least some minimal command line help as this is often started manually.
r? `@pietroalbini`
2022-10-17 13:11:07 +02:00
lcnr
d04bff6583
add inline to TrivialTypeTraversalImpls
2022-10-17 10:54:03 +02:00
lcnr
face090ef1
rm try_normalize_mir_const_after_erasing_regions
2022-10-17 10:54:03 +02:00
lcnr
e8150fa60c
mir constants: type traversing bye bye
2022-10-17 10:54:01 +02:00
bors
c19a893f87
Auto merge of #103116 - TaKO8Ki:fix-103053, r=lcnr
...
Fix `own_substs` ICE
Fixes #103053
2022-10-17 08:04:52 +00:00
Samuel Moelius
bf3a29f590
Duplicate comment in mod.rs
2022-10-17 03:54:56 -04:00
Thayne McCombs
63a7fdf61b
Fix types in documentation for Alignment::as_usize and Alignmnet::as_nonzero
2022-10-16 23:44:06 -06:00
bors
1536ab1b38
Auto merge of #103096 - petrochenkov:indresdoc, r=cjgillot
...
resolve: Shadow erroneous glob imports with erroneous single imports
If such shadowing doesn't happen we end up in a weird state that may cause ICEs.
(In non-erroneous cases single imports always shadow glob imports too.)
Fixes https://github.com/rust-lang/rust/issues/100047
Fixes https://github.com/rust-lang/rust/issues/100241
2022-10-17 02:06:25 +00:00
Michael Howell
bcf4cfe790
rustdoc: clean up .sub-logo-container CSS
...
* Since it's used exclusively on source pages, no need to explicitly
select.
* No need to hide it when the sidebar is open, since it fills the whole
page.
2022-10-16 17:57:26 -07:00
Michael Howell
b979697992
rustdoc: remove unused .sub-logo-container DOM on non-source pages
2022-10-16 17:57:26 -07:00
yukang
151001c1cb
trivial fix for comments feedback
2022-10-17 08:32:08 +08:00
bors
a501e6699e
Auto merge of #103125 - matthiaskrgr:rollup-82xttcl, r=matthiaskrgr
...
Rollup of 5 pull requests
Successful merges:
- #103087 (Documentation BTreeMap::append's behavior for already existing keys)
- #103089 (Mark derived StructuralEq as automatically derived.)
- #103102 (Clarify the possible return values of `len_utf16`)
- #103109 (PhantomData: inline a macro that is used only once)
- #103120 (rustdoc: Do not expect `doc(primitive)` modules to always exist)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-16 23:15:20 +00:00
Matthias Krüger
db30a25781
Rollup merge of #103120 - petrochenkov:docice, r=GuillaumeGomez
...
rustdoc: Do not expect `doc(primitive)` modules to always exist
The second commit fixes one more ICE by processing impls in crates loaded through the "load all `--extern`s" hack.
Fixes https://github.com/rust-lang/rust/issues/96288
Fixes https://github.com/rust-lang/rust/issues/103028
2022-10-16 22:36:07 +02:00
Matthias Krüger
0602d6484b
Rollup merge of #103109 - RalfJung:phantom-data-impl, r=thomcc
...
PhantomData: inline a macro that is used only once
I suspect this macro used to have more uses, but right now it just obfuscates the code.
2022-10-16 22:36:06 +02:00
Matthias Krüger
bdfc262742
Rollup merge of #103102 - H4x5:len_utf16_docs, r=scottmcm
...
Clarify the possible return values of `len_utf16`
`char::len_utf16` always return 1 or 2. Clarify this in the docs, in the same way as `char::len_utf8`.
2022-10-16 22:36:06 +02:00
Matthias Krüger
2c0bfbed43
Rollup merge of #103089 - cjgillot:automatic-structural-eq, r=oli-obk
...
Mark derived StructuralEq as automatically derived.
Fixes https://github.com/rust-lang/rust/issues/69952
Drive-by: use correct spans for generic params.
2022-10-16 22:36:05 +02:00
Matthias Krüger
e31ae4f9c0
Rollup merge of #103087 - phimuemue:btreemap_append_doc, r=Mark-Simulacrum
...
Documentation BTreeMap::append's behavior for already existing keys
`BTreeMap::append` overwrites existing values with new ones. This commit adds explicit documentation for that.
2022-10-16 22:36:05 +02:00
bors
b8b5caee04
Auto merge of #102026 - Bryanskiy:resolve_update, r=petrochenkov
...
Populate effective visibilities in 'rustc_resolve'
Next part of RFC https://github.com/rust-lang/rust/issues/48054 .
previous: https://github.com/rust-lang/rust/pull/101713
`@rustbot` author
r? `@petrochenkov`
2022-10-16 20:34:38 +00:00
Alex Saveau
727335878d
Support DirEntry metadata calls in miri
...
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
2022-10-16 12:14:27 -07:00
Bryanskiy
496ccd982c
Populate effective visibilities in 'rustc_resolve'
2022-10-16 21:47:14 +03:00
Vadim Petrochenkov
dd7411d848
rustdoc: Process extern impls in all loaded crates
...
including those loaded through hacks.
2022-10-16 21:55:55 +04:00