Byron Zhong
c0472a5450
Fix E0433 diagnostics ignoring typo suggestions and outputing wrong message
2022-10-27 00:49:39 -05:00
Pointerbender
166d8b8c2b
add "Memory layout" subsection to documentation of UnsafeCell
for additional clarity
2022-10-27 06:32:36 +02:00
Michael Howell
4d4b567bcc
rustdoc: remove CSS workaround for Firefox 29
...
CSS variables, which rustdoc now relies on, are only supported in Firefox 31 and later: https://www.mozilla.org/en-US/firefox/31.0/releasenotes/
This means it’s fine to also rely on unprefixed box-sizing, which is supported in Firefox 29 and later: https://www.mozilla.org/en-US/firefox/29.0/releasenotes/
2022-10-26 21:13:20 -07:00
bors
44fcfb0a96
Auto merge of #103605 - ehuss:mentions-spec, r=Mark-Simulacrum
...
Add Target Tier Policy notification.
This adds a notification posted to PRs when they add/modify a target spec.
This was hard-coded in highfive. I forgot to include this in https://github.com/rust-lang/rust/pull/103492 .
2022-10-27 03:15:31 +00:00
Rageking8
2f2a97ee16
add tests and slight formatting
2022-10-27 10:17:27 +08:00
Ben Kimock
458aaa5a23
Print the precondition we violated, and visible through output capture
...
Co-authored-by: Ralf Jung <post@ralfj.de>
2022-10-26 22:09:17 -04:00
Wesley Wiser
7c6345d175
Allow use of -Clto=thin
with -Ccodegen-units=1
in general
...
The current logic to ignore ThinLTO when `-Ccodegen-units=1` makes sense
for local ThinLTO but even in this scenario, a user may still want
(non-local) ThinLTO for the purpose of optimizing dependencies into the
final crate which is being compiled with 1 CGU.
The previous behavior was even more confusing because if you were
generating a binary (`--emit=link`), then you would get ThinLTO but if
you asked for LLVM IR or bytecode, then it would silently change to
using regular LTO.
With this change, we only override the defaults for local ThinLTO if you
ask for a single output such as LLVM IR or bytecode and in all other
cases honor the requested LTO setting.
2022-10-26 21:03:28 -04:00
Michael Goulet
b1cc95da23
Remap early bound lifetimes too
2022-10-27 00:28:54 +00:00
bors
df57f7b438
Auto merge of #103604 - JohnTitor:rollup-q4ns2gh, r=JohnTitor
...
Rollup of 10 pull requests
Successful merges:
- #103432 (rustdoc: don't mark Box<T> as Iterator, Read, etc)
- #103526 (More dupe typos again)
- #103537 (rustdoc: combine shared CSS between `.*-line-numbers`)
- #103549 (llvm-16: Don't initialize removed legacy passes)
- #103558 (Update cargo)
- #103567 (ptr::eq: clarify that comparing dyn Trait is fragile)
- #103579 (⬆️ rust-analyzer)
- #103580 (Fix typo in docs for `guaranteed_ne`)
- #103596 (thread::set_name: debug-assert that things went well)
- #103598 (rustc_lexer::TokenKind improve docs)
Failed merges:
- #103585 (Migrate source line numbers CSS to CSS variables)
r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-26 23:58:24 +00:00
Eric Huss
27a6280eca
Add Target Tier Policy notification.
2022-10-26 16:45:24 -07:00
Yuki Okushi
132883e455
Rollup merge of #103598 - tshepang:token-kind-docs, r=jackh726
...
rustc_lexer::TokenKind improve docs
2022-10-27 08:30:59 +09:00
Yuki Okushi
b4b3ff4e6b
Rollup merge of #103596 - RalfJung:thread-setname, r=cuviper
...
thread::set_name: debug-assert that things went well
r? `@cuviper`
2022-10-27 08:30:59 +09:00
Yuki Okushi
77145c042d
Rollup merge of #103580 - lukas-code:guaranteed_ne, r=GuillaumeGomez
...
Fix typo in docs for `guaranteed_ne`
`==` -> `!=`
2022-10-27 08:30:58 +09:00
Yuki Okushi
1d5f32897a
Rollup merge of #103579 - lnicola:rust-analyzer-2022-10-26, r=lnicola
...
⬆️ rust-analyzer
r? ``@ghost``
2022-10-27 08:30:57 +09:00
Yuki Okushi
26ad51ff87
Rollup merge of #103567 - RalfJung:ptr-eq-dyn-trait, r=dtolnay
...
ptr::eq: clarify that comparing dyn Trait is fragile
Also remove the dyn trait example from `ptr::eq` since those tests are not actually guaranteed to pass due to how unstable vtable comparison is.
Cc ``@rust-lang/libs-api``
Cc discussion following https://github.com/rust-lang/rust/pull/80505
2022-10-27 08:30:57 +09:00
Yuki Okushi
3bfe39ee26
Rollup merge of #103558 - weihanglo:update-cargo, r=weihanglo
...
Update cargo
5 commits in 071eeaf210708219a5a1b2c4728ca2f97df7f2ae..9210810d1fd7b51ae0439a0a363cc50e36963455 2022-10-22 01:17:55 +0000 to 2022-10-25 22:31:50 +0000
- Fix 410 gone response handling (rust-lang/cargo#11286 )
- Fix inequality in "stale mtime" log messages (rust-lang/cargo#11281 )
- doc(cargo-tree): mention it considering feature unification (rust-lang/cargo#11282 )
- Improve the error message if `publish` is `false` or empty list (rust-lang/cargo#11280 )
- Add test for deleted index entry (rust-lang/cargo#11278 )
2022-10-27 08:30:56 +09:00
Yuki Okushi
6e1de0e9aa
Rollup merge of #103549 - maurer:llvm-main, r=cuviper
...
llvm-16: Don't initialize removed legacy passes
LLVM removed initialization for legacy passes:
https://reviews.llvm.org/D136615
2022-10-27 08:30:56 +09:00
Yuki Okushi
49076141fa
Rollup merge of #103537 - notriddle:notriddle/line-numbers, r=GuillaumeGomez
...
rustdoc: combine shared CSS between `.*-line-numbers`
Example: https://notriddle.com/notriddle-rustdoc-demos/line-numbers/test_dingus/fn.test.html
This PR should result in no visible changes. The example is here, so it can be easily tested in different browsers.
2022-10-27 08:30:55 +09:00
Yuki Okushi
cafb63d869
Rollup merge of #103526 - Rageking8:more-dupe-typos-again, r=Mark-Simulacrum
...
More dupe typos again
There are some others in submodules, which I will file separate PRs for in their respective repos. Thanks.
2022-10-27 08:30:55 +09:00
Yuki Okushi
ec7ffdfbaf
Rollup merge of #103432 - jsha:box-is-not-notable, r=GuillaumeGomez
...
rustdoc: don't mark Box<T> as Iterator, Read, etc
Because Box<T> has pass-through implementations, rustdoc was giving it the "Notable Traits" treatment for Iterator, Read, Write, and Future, even when the type of T was unspecified.
Pin had the same problem, but just for Future.
Fixes #100320
2022-10-27 08:30:54 +09:00
Michael Goulet
901649eeb7
No need to probe when relating opaques in nll_relate
2022-10-26 22:10:12 +00:00
Michael Howell
a7a0b360a8
rustdoc: add test case for positioning of notable trait tooltip
2022-10-26 14:42:53 -07:00
Tshepang Mbambo
b66f92197a
rustc_lexer::TokenKind improve docs
2022-10-26 23:32:14 +02:00
bors
1898c34e92
Auto merge of #103571 - RalfJung:miri, r=RalfJung
...
update Miri
r? `@ghost`
2022-10-26 21:06:38 +00:00
Ralf Jung
d1132fb805
thread::set_name: debug-assert that things went well
2022-10-26 22:11:12 +02:00
nils
da407ed38f
Fix typo
...
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
2022-10-26 22:06:35 +02:00
Michael Goulet
d380d0387d
remove unused parser fn
2022-10-26 19:19:44 +00:00
Michael Howell
3dd7009f1f
rustdoc: remove redundant CSS selector .notable-traits .notable
...
The margin was already being set to 0 only a few lines lower.
2022-10-26 12:15:58 -07:00
Nilstrieb
796114a5b0
Add documentation
2022-10-26 21:09:28 +02:00
bors
0340b51ff7
Auto merge of #13484 - lnicola:position-encoding, r=lnicola
...
Switch to upstream `positionEncoding`
Closes #13481
This drops support for the custom extension, but that's probably fine.
Draft because it's not tested yet.
2022-10-26 18:12:47 +00:00
bors
36285c5de8
Auto merge of #103492 - ehuss:highfive-triagebot, r=Mark-Simulacrum
...
Migrate from highfive to triagebot
This migrates rust-lang/rust from highfive to triagebot.
2022-10-26 18:02:49 +00:00
Weihang Lo
06692ea444
fix(rustdoc): add missing URL component for error messages
2022-10-27 00:17:16 +08:00
Weihang Lo
ddba6c1e6c
doc(rustdoc): redirect more urls
2022-10-27 00:17:16 +08:00
Michael Goulet
db3b01d2bf
Process registered region obligation in resolve_regions_with_wf_tys
2022-10-26 16:06:54 +00:00
Lukas Markeffsky
cce46e9ae2
Fix typo in docs for guaranteed_ne
2022-10-26 16:50:08 +02:00
Laurențiu Nicola
22a6bc4da0
⬆️ rust-analyzer
2022-10-26 17:40:41 +03:00
Ben Kimock
bd947632b5
Update library/core/src/ptr/mod.rs
...
Co-authored-by: Ralf Jung <post@ralfj.de>
2022-10-26 07:14:20 -07:00
bors
0a6b941df3
Auto merge of #103572 - Dylan-DPC:rollup-a8bnxrw, r=Dylan-DPC
...
Rollup of 6 pull requests
Successful merges:
- #95710 (Stabilize arbitrary_enum_discriminant, take 2)
- #102706 (Support excluding the generation of the standalone docs)
- #103428 (Removed verbose printing from the `PrettyPrinter` when printing constants)
- #103543 (Update books)
- #103546 (interpret: a bit of cast cleanup)
- #103554 (rustdoc: add visible focus outline to rustdoc-toggle)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-26 14:12:16 +00:00
Xiretza
2eeb7802b3
Remove #[suggestion_*] attributes
2022-10-26 15:04:09 +02:00
Xiretza
cd621be782
Convert all #[suggestion_*] attributes to #[suggestion(style = "...")]
...
Using the following command:
find compiler/ -type f -name '*.rs' -exec perl -i -gpe \
's/(#\[\w*suggestion)_(short|verbose|hidden)\(\s*(\S+,)?/\1(\3style = "\2",/g' \
'{}' +
2022-10-26 15:04:09 +02:00
Xiretza
20f2958b8a
Add "tool-only" suggestion style
2022-10-26 15:04:09 +02:00
Xiretza
29334b951a
rustfmt diagnostic derive tests
2022-10-26 15:04:09 +02:00
Xiretza
368c4a35b9
Add style= parameter to suggestion attributes
2022-10-26 15:04:09 +02:00
Oli Scherer
de5517c3ae
Remove unneeded sub-comparison
2022-10-26 12:47:04 +00:00
Vadim Petrochenkov
34eb73c72d
privacy: Rename "accessibility levels" to "effective visibilities"
...
And a couple of other naming tweaks
Related to https://github.com/rust-lang/rust/issues/48054
2022-10-26 16:34:53 +04:00
bors
859da657d9
Auto merge of #2622 - RalfJung:ci, r=RalfJung
...
simplify GHA
I think we can just list the cases with `include:` and don't also need this `build` array.
2022-10-26 12:26:43 +00:00
Ralf Jung
1946a1842e
explicitly mention that both components of wide prts are compared
2022-10-26 14:20:31 +02:00
bors
feefbe7918
Auto merge of #13475 - lowr:fix/lookup-impl-method-trait-ref, r=flodiebold
...
fix: Test all generic args for trait when finding matching impl
Addresses https://github.com/rust-lang/rust-analyzer/pull/13463#issuecomment-1287816680
When finding matching impl for a trait method, we've been testing the unifiability of self type. However, there can be multiple impl of a trait for the same type with different generic arguments for the trait. This patch takes it into account and tests the unifiability of all type arguments for the trait (the first being the self type) thus enables rust-analyzer to find the correct impl even in such cases.
2022-10-26 12:06:26 +00:00
Ralf Jung
27e5cc8898
simplify GHA
2022-10-26 14:05:52 +02:00
Dylan DPC
74a4c679b3
Rollup merge of #103554 - notriddle:notriddle/summary-focus-visible, r=jsha
...
rustdoc: add visible focus outline to rustdoc-toggle
The change in opacity is inconsistent with most of rustdoc, which uses default browser styles for the focus outline. Unfortunately, just using the default focus outline here won't work, because it gets applied to the summary itself instead of the pseudo-element "real button."
Preview: https://notriddle.com/notriddle-rustdoc-demos/focus-outline/test_dingus/fn.test.html
## Screenshots
### light
![image](https://user-images.githubusercontent.com/1593513/197903818-61ce09e2-024e-4ca9-9aba-764039561d0a.png )
### dark
![image](https://user-images.githubusercontent.com/1593513/197903765-76e428ea-71e8-4724-ad21-7a4f9d923ea2.png )
### ayu
![image](https://user-images.githubusercontent.com/1593513/197903790-322e22ae-64b5-4138-b931-9ff3ff54f3b0.png )
2022-10-26 17:32:56 +05:30