mejrs
f3ac328d58
Address feedback
2022-09-27 21:42:09 +02:00
mejrs
c4c9415132
Wrapper suggestions
2022-09-27 21:42:09 +02:00
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
Nilstrieb
8a96884981
Flush delayed bugs before codegen
...
Sometimes it can happen that invalid code like a TyKind::Error makes
its way through the compiler without triggering any errors (this is
always a bug in rustc but bugs do happen sometimes :)). These ICEs
will manifest in the backend like as cg_llvm not being able to get
the layout of `[type error]`, which makes it hard to debug. By flushing
before codegen, we display all the delayed bugs, making it easier to
trace it to the root of the problem.
2022-09-27 20:56:05 +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
cd3f4da244
, 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
92561f43f1
Support bindings with anon consts in generics
2022-09-27 17:42:15 +00:00
Michael Goulet
05267b5a50
Make type_of work correctly for const arg bindings
2022-09-27 17:42:14 +00:00
Michael Goulet
cca48285b8
Format type_of
2022-09-27 17:42:13 +00: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
Takayuki Maeda
d7b6bd8f13
improve errors for incomplete functions in struct definitions
2022-09-28 01:03:18 +09: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
Deadbeef
27b280e1b5
Fix ICE in const_trait check code
...
This fixes #102156 .
2022-09-27 13:47:32 +00: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