Michael Howell
a63a03dc54
rustdoc: remove clean::TraitWithExtraInfo
...
Instead, it gathers the extra info later, when it's actually requested.
2022-09-27 12:27:04 -07:00
Camille GILLOT
dd69ce3b27
Bless stats.
2022-09-27 21:11:43 +02:00
Xiretza
d7c64574e0
Implement IntoDiagnosticArg for rustc_ast::token::Token(Kind)
2022-09-27 20:29:19 +02:00
Xiretza
37fdcb4b36
Don't unnecessarily stringify paths in diagnostics
2022-09-27 20:29:19 +02:00
Xiretza
caefac034e
Document use of Symbol::to_string()
2022-09-27 20:29:19 +02:00
Xiretza
00f95468c4
Migrate even more diagnostics in rustc_parse to diagnostic structs
2022-09-27 20:29:19 +02:00
Xiretza
760c4352d6
Migrate "struct literal body without path" error to diagnostic struct
2022-09-27 20:29:19 +02:00
Xiretza
ba10f2c0f2
Migrate "expected semicolon" diagnostics to diagnostic structs
2022-09-27 20:29:19 +02:00
Xiretza
7507ee29fc
Migrate "expected identifier" diagnostics to diagnostic structs
2022-09-27 20:29:19 +02:00
Xiretza
21b5194a3a
Rework "inner attribute not permitted" errors
2022-09-27 20:29:19 +02:00
Xiretza
4d0519a4e7
Remove error condition in parse_attribute
...
This function is only ever called when the `#` has already been
consumed, no need to produce an error message here.
2022-09-27 20:29:19 +02:00
Xiretza
e1b1d7b029
Migrate more rustc_parse diagnostics to diagnostic structs
2022-09-27 20:29:18 +02:00
Xiretza
e56d6a68db
Move rustc_parse diagnostic structs to separate module
2022-09-27 20:29:18 +02:00
Xiretza
6ae7a30927
Migrate "invalid literal suffix" diagnostic to diagnostic structs
2022-09-27 20:29:18 +02:00
Xiretza
ab7c7dc7ce
Migrate more diagnostics in rustc_parse to diagnostic structs
2022-09-27 20:29:18 +02:00
Xiretza
4d02892acf
Allow raw identifiers to be used as fluent arguments
2022-09-27 20:29:18 +02:00
Xiretza
8489a67f0b
Implement IntoDiagnosticArg for rustc_ast::Path
2022-09-27 20:29:18 +02:00
Xiretza
495e271883
Migrate rustc_session::expr_parentheses_needed to Subdiagnostic struct
2022-09-27 20:29:18 +02:00
Guillaume Gomez
a925e203d1
Add GUI regression test for search results colors
2022-09-27 20:23:00 +02:00
Guillaume Gomez
ef410f1b01
Fix regression for results colors
2022-09-27 20:22:46 +02:00
Michael Howell
3bbb328e68
rustdoc: remove redundant #help-button
CSS
...
When the separate top and bottom styles were added in
cd3f4da244578a2ab4d17d10016c61b9191b21e4, some of the CSS rules were
needlessly duplicated.
The `text-align: initial` rule on `.side-by-side` was always redundant, since
the rules that centered the text were set on children, not parents.
2022-09-27 10:52:08 -07:00
Jacob Hoffman-Andrews
b5b77a2959
Update src/test/rustdoc-gui/sidebar-mobile-scroll.goml
...
Co-authored-by: Michael Howell <michael@notriddle.com>
2022-09-27 10:52:05 -07:00
Michael Goulet
ca2e0bb51a
Deny associated type bindings within associated type bindings
2022-09-27 17:41:34 +00:00
Camille GILLOT
337a73da6e
Do not overwrite binders for another HirId.
2022-09-27 18:58:37 +02:00
Weihang Lo
5095f54219
Update cargo
...
22 commits in 73ba3f35e0205844418260722c11602113179c4a..f5fed93ba24607980647962c59863bbabb03ce14
2022-09-18 06:38:16 +0000 to 2022-09-27 12:03:57 +0000
- build-scripts.md: Use em dash consistently. (rust-lang/cargo#11150 )
- Indicate how Cargo locates the manifest (rust-lang/cargo#10770 )
- Reduce references to `[project]` within cargo (rust-lang/cargo#11135 )
- Iteratively construct target cfg (rust-lang/cargo#11114 )
- update comment about `CARGO_BIN_EXE_` (rust-lang/cargo#11146 )
- Call out that not all config values can be set via env vars (rust-lang/cargo#11139 )
- Bump to 0.67.0, update changelog (rust-lang/cargo#11137 )
- ci: update toolchain for building api doc (rust-lang/cargo#11134 )
- Http publish not noop (rust-lang/cargo#11111 )
- Improve errors for TOML fields that support workspace inheritance (rust-lang/cargo#11113 )
- switch to `std::task::ready!()` where possible (rust-lang/cargo#11130 )
- Report cmd aliasing failure with more contexts (rust-lang/cargo#11087 )
- minor: remove unused mut (rust-lang/cargo#11127 )
- fix(cli): Forward non-UTF8 arguments to external subcommands (rust-lang/cargo#11118 )
- This change adds an example to the authors attribute in the manifest. (rust-lang/cargo#10938 )
- Add support for relative git submodule paths (rust-lang/cargo#11106 )
- make unknown features on `cargo add` more discoverable (rust-lang/cargo#11098 )
- Unlink old final artifacts before compilation (rust-lang/cargo#11122 )
- refactor(cli): Prepare for clap v4 (rust-lang/cargo#11116 )
- fix(cli): Error trailing args rather than ignore (rust-lang/cargo#11119 )
- Add a minor clarification (rust-lang/cargo#11093 )
- doc(changelog): mention CVE fixes (rust-lang/cargo#11104 )
2022-09-27 17:46:42 +01:00
Jacob Hoffman-Andrews
8846c0853d
rustdoc: use CSS containment to speed up render
...
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Containment
This affected layout a little and required adjustments to the CSS to
keep spacing the same. In particular, the margins of adjacent items
usually overlap with each other. However, when an item has contain:
layout, any margins of child nodes push out the size of the item itself.
This was making spacing between items a little too big. To solve that, I
removed margins in some places: in particular for certain classes that
often occur at the end of a `details.rustdoc-toggle` block, I removed
their bottom margin. Generally, the margins provided by the next item
down are sufficient.
Also remove an unnecessary margin-top on .code-header.
2022-09-27 09:21:24 -07:00
Urgau
9ad2f00f6a
Stabilize bench_black_box
2022-09-27 17:38:51 +02:00
Ralf Jung
67fd09d3b8
also query type_uninhabited_from
2022-09-27 16:20:23 +02:00
Arthur Cohen
99d57ee23d
core: Mark all safe intrinsics with #[rustc_safe_intrinsic]
2022-09-27 15:55:42 +02:00
Arthur Cohen
0ab2c91a2d
attributes: Add #[rustc_safe_intrinsic] builtin
2022-09-27 15:55:42 +02:00
Mara Bos
20bb600849
Remove confusing drop.
2022-09-27 13:31:52 +02:00
Mara Bos
ba7bf1d8ef
Update doc comments.
2022-09-27 13:31:52 +02:00
Mara Bos
cf53fef0d6
Turn format arguments Vec into its own struct.
...
With efficient lookup through a hash map.
2022-09-27 13:31:52 +02:00
Mara Bos
14065639ca
Update test.
2022-09-27 13:31:51 +02:00
Mara Bos
c1c6e3ae7c
Add clarifying comments.
2022-09-27 13:31:51 +02:00
Mara Bos
8d9a5881ea
Flatten if-let and match into one.
2022-09-27 13:31:51 +02:00
Mara Bos
15754f5ea1
Move enum definition closer to its usage.
2022-09-27 13:31:51 +02:00
Mara Bos
df7fd119d2
Use if let chain.
2022-09-27 13:31:51 +02:00
Mara Bos
e65c96e4ad
Tweak comments.
2022-09-27 13:31:51 +02:00
Mara Bos
ae238efe91
Prefer new_v1_formatted instead of new_v1 with duplicates.
2022-09-27 13:31:51 +02:00
Mara Bos
00074926bb
Fix typo.
2022-09-27 13:31:51 +02:00
Mara Bos
8efc383047
Move FormatArgs structure to its own module.
2022-09-27 13:31:51 +02:00
Mara Bos
3ffcb65518
Update tests.
2022-09-27 13:31:50 +02:00
Mara Bos
9bec0de397
Rewrite and refactor format_args!() builtin macro.
2022-09-27 13:13:08 +02:00
bors
57ee5cf5a9
Auto merge of #102306 - lcnr:rustc_hir_analysis, r=compiler-errors
...
rename rustc_typeck to rustc_hir_analysis
first part of https://github.com/rust-lang/compiler-team/issues/529
r? `@compiler-errors`
2022-09-27 10:45:57 +00:00
David Wood
2286888ef9
session: remove now-unnecessary lint #[allow]
s
...
In #101230 , the internal diagnostic migration lints -
`diagnostic_outside_of_impl` and `untranslatable_diagnostic` - were
modified so that they wouldn't trigger on functions annotated with
`#[rustc_lint_diagnostics]`. However, this change has to make it into
the bootstrap compiler before the `#[allow]` annotations that it aims to
remove can be removed, which is possible now that #102051 has landed.
Signed-off-by: David Wood <david.wood@huawei.com>
2022-09-27 11:01:49 +01:00
lcnr
1fc86a63f4
rustc_typeck to rustc_hir_analysis
2022-09-27 10:37:23 +02:00
bors
d9297d22ad
Auto merge of #102314 - TaKO8Ki:add-label-to-struct-enum-union-ident, r=estebank
...
Add a label to struct/enum/union ident name
Based on https://github.com/rust-lang/rust/pull/94996#discussion_r831694150
cc: `@estebank`
2022-09-27 07:30:11 +00:00
Nicholas Nethercote
b69c335327
Tweak FulfillProcessor
.
...
Avoids some unnecessary references and lifetimes.
2022-09-27 16:37:00 +10:00
Nicholas Nethercote
c91c64708b
Fix an incorrect comment.
...
If a `\x` escape occurs in a non-byte literals (e.g. char literal,
string literal), it must be <= 0xff.
2022-09-27 15:25:34 +10:00