Vanille-N
3a01493433
SbTag -> BorTag everywhere
2022-12-02 13:27:41 +01:00
Vanille-N
2528f4e668
move stacked_borrows to borrow_tracker/stacked_borrows
2022-12-02 13:23:57 +01:00
Vanille-N
2d42d265ea
extract common borrow tracking logic
2022-12-02 13:23:37 +01:00
bors
cef44f5303
Auto merge of #105166 - matthiaskrgr:rollup-s9l6vt2, r=matthiaskrgr
...
Rollup of 6 pull requests
Successful merges:
- #104614 (Add `type_ascribe!` macro as placeholder syntax for type ascription)
- #105126 (Make `VecDeque::new_in` unstably const)
- #105132 (Migrate summary toggle filter to CSS variable)
- #105136 (clarify comment on Deref promotion)
- #105137 (Add tracking issue number for `file_create_new` feature)
- #105143 (rustdoc: use simpler CSS for setting the font on scraped examples)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-12-02 12:03:59 +00:00
Takayuki Maeda
5c7278a364
return when expr has error
...
fmt
add a comment
2022-12-02 17:01:21 +09:00
Tomoaki Kawada
ae7633f434
kmc-solid: Don't do Box::from_raw(&*(x: Box<T>) as *const T as *mut T)
...
This pattern seems to be considered illegal by Miri.
2022-12-02 16:58:41 +09:00
Matthias Krüger
8e059d5968
Rollup merge of #105143 - notriddle:notriddle/scraped-example-list-font, r=GuillaumeGomez
...
rustdoc: use simpler CSS for setting the font on scraped examples
2022-12-02 08:28:12 +01:00
Matthias Krüger
c7edfddc2f
Rollup merge of #105137 - yjhn:patch-1, r=Dylan-DPC
...
Add tracking issue number for `file_create_new` feature
It was missing a tracking issue, so I opened one (#105135 ).
2022-12-02 08:28:11 +01:00
Matthias Krüger
46c50af977
Rollup merge of #105136 - RalfJung:deref-promotion-comment, r=oli-obk
...
clarify comment on Deref promotion
r? `@oli-obk`
2022-12-02 08:28:10 +01:00
Matthias Krüger
f95385b5d4
Rollup merge of #105132 - GuillaumeGomez:migrate-summary-toggle-to-var, r=notriddle
...
Migrate summary toggle filter to CSS variable
r? `@notriddle`
2022-12-02 08:28:09 +01:00
Matthias Krüger
4c4dec4408
Rollup merge of #105126 - Sp00ph:const_new_in, r=dtolnay
...
Make `VecDeque::new_in` unstably const
(See #105072 )
2022-12-02 08:28:09 +01:00
Matthias Krüger
4fdc3eb176
Rollup merge of #104614 - Nilstrieb:type-ascribe!, r=TaKO8Ki
...
Add `type_ascribe!` macro as placeholder syntax for type ascription
This makes it still possible to test the internal semantics of type ascription even once the `:`-syntax is removed from the parser. The macro now gets used in a bunch of UI tests that test the semantics and not syntax of type ascription.
I might have forgotten a few tests but this should hopefully be most of them. The remaining ones will certainly be found once type ascription is removed from the parser altogether.
Part of #101728
2022-12-02 08:28:08 +01:00
Yiming Lei
0e19fb92e1
While parsing enum variant, the error message always disappear
...
Because the error message that emit out is from main error of parser
The information of enum variant disappears while parsing enum variant with error
We only check the syntax of expecting token, i.e, in case #103869
It will error it without telling the message that this error is from pasring enum variant.
Propagate the sub-error from parsing enum variant to the main error of parser by chaining it with map_err
Check the sub-error before emitting the main error of parser and attach it.
Fix #103869
2022-12-01 22:48:52 -08:00
Michael Goulet
dc45eb93f7
Revert 88f2140
2022-12-02 00:05:35 -05:00
Michael Goulet
5809a0591d
Properly synthesize fn sig value during cycle
2022-12-01 23:56:57 -05:00
bors
11663b1b48
Auto merge of #104963 - petrochenkov:noaddids2, r=cjgillot
...
rustc_ast_lowering: Stop lowering imports into multiple items
Lower them into a single item with multiple resolutions instead.
This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
2022-12-02 04:24:57 +00:00
Nicholas Nethercote
406dace6f2
Inline and remove early_lint_node
.
...
It has a single call site.
2022-12-02 15:24:01 +11:00
Nicholas Nethercote
a9b02af62b
Merge builtins
into EarlyLintPassObjects
.
...
This avoids calling `early_lint_node` twice.
Note: one `early_lint_node` call had `!pre_expansion` for the second
argument and the other had `false`. The new single call just has
`!pre_expansion`. This results in a reduction of duplicate error
messages in some `ui-fulldeps` tests. The order of some `ui-fulldeps`
output also changes, but that doesn't matter.
2022-12-02 15:23:28 +11:00
Michael Goulet
3e7e1b1f83
Avoid InferCtxt::build in suggest_missing_break_or_return_expr
2022-12-02 04:11:48 +00:00
Michael Goulet
bd7ee07d02
Check lifetime param count in collect_trait_impl_trait_tys
2022-12-02 04:05:39 +00:00
Nicholas Nethercote
44cb4f70a8
Remove some unnecessary Send
bounds.
...
Required to get the parallel compiler building again.
2022-12-02 13:59:28 +11:00
Nicholas Nethercote
357aee9320
Inline and remove late_lint_pass_crate
.
...
It has a single call site.
2022-12-02 13:59:28 +11:00
Nicholas Nethercote
0e4f55d63f
Inline and remove late_lint_mod_pass
.
...
It has a single call site.
2022-12-02 13:59:28 +11:00
Nicholas Nethercote
890c5ead20
Merge builtins
into LateLintPassObjects
.
...
This avoids calling the `late_lint_{mod_pass,pass_crate}` twice.
2022-12-02 13:59:28 +11:00
Nicholas Nethercote
99e9c1ddb7
Remove six macros relating to lint definitions.
...
These were enabled by the removal of `-Zno-interleave-lints`.
2022-12-02 13:59:28 +11:00
Nicholas Nethercote
67cfe2cfbb
Remove -Zno-interleave-lints
.
...
Because it complicates lint implementation greatly.
2022-12-02 13:59:28 +11:00
Nicholas Nethercote
33faf01690
Eliminate four unnecessary lint macros.
...
The lint definitions use macros heavily. This commit merges some of them
that are split unnecessarily. I find the reduced indirection makes it
easier to imagine what the generated code will look like.
2022-12-02 13:59:28 +11:00
Jakob Degen
f4f777772e
Disable top-down inlining
2022-12-01 18:32:45 -08:00
Michael Howell
efdec6d093
rustdoc: clean up help and settings button CSS
...
The old version of this code specified a bunch of different numbers that had
to line up just right to get the size it wanted. This version uses flexbox
centering, specifies the font size, and lets the browser figure out the
rest of the layout automatically.
2022-12-01 14:24:33 -07:00
bors
56c241c862
Auto merge of #105140 - flip1995:clippyup, r=Manishearth
...
Update Clippy
r? `@Manishearth`
2022-12-01 20:57:23 +00:00
Michael Howell
6ab34f49f0
rustdoc: clean up button-hiding mobile CSS
2022-12-01 13:44:28 -07:00
Oli Scherer
e59025867d
Create a hacky fail-fast mode that stops tests at the first failure
2022-12-01 20:29:18 +00:00
Michael Howell
935def4df1
rustdoc: use simpler CSS for setting the font on scraped examples
2022-12-01 12:34:02 -07:00
Michael Goulet
02b64c5d26
Document normalization methods on At
2022-12-01 19:00:09 +00:00
Michael Goulet
e45daa9856
Drive-by: remove unused type alias
2022-12-01 19:00:09 +00:00
Gary Guo
171b7d62ad
Make inline const block ExprWithBlock
2022-12-01 17:54:50 +00:00
bors
c090c6880c
Auto merge of #105125 - matthiaskrgr:rollup-fr0snmj, r=matthiaskrgr
...
Rollup of 4 pull requests
Successful merges:
- #105078 (Fix `expr_to_spanned_string` ICE)
- #105087 (Extract llvm datalayout parsing out of spec module)
- #105088 (rustdoc: remove redundant CSS `div.desc { display: block }`)
- #105106 (Fix ICE from #105101 )
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-12-01 17:47:12 +00:00
Maybe Waffle
083ef45458
rustc_data_structures
deref in a more humane way
2022-12-01 17:34:45 +00:00
Maybe Waffle
f2b97a8bfe
Remove useless borrows and derefs
2022-12-01 17:34:43 +00:00
Philipp Krones
ebf579932d
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
2022-12-01 18:29:38 +01:00
Vadim Petrochenkov
b32a4edb20
rustc_ast_lowering: Stop lowering imports into multiple items
...
Lower them into a single item with multiple resolutions instead.
This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
2022-12-01 18:51:20 +03:00
Vadim Petrochenkov
1f259ae679
rustc_hir: Change representation of import paths to support multiple resolutions
2022-12-01 18:51:05 +03:00
Ralf Jung
b7f2b1cd5c
clarify comment on Deref promotion
2022-12-01 16:42:33 +01:00
Andrius Pukšta
0af5b7265d
Add tracking issue for file_create_new
2022-12-01 17:42:31 +02:00
Guillaume Gomez
188f31eba0
Add GUI test for toggle filter and opacity
2022-12-01 15:58:16 +01:00
Guillaume Gomez
f76c4b84c9
Migrate summary toggle filter to CSS variable
2022-12-01 15:55:09 +01:00
bors
4a12a13b58
Auto merge of #2707 - oli-obk:ui_test_bump, r=RalfJung
...
Bump ui_test crate
All commands can now be revisioned: https://github.com/oli-obk/ui_test/pull/33
2022-12-01 14:51:45 +00:00
Oli Scherer
e8ff9b1836
Bump ui_test crate
2022-12-01 14:43:29 +00:00
bors
367ecffe52
Auto merge of #105003 - flba-eb:only_windows, r=Mark-Simulacrum
...
Run Windows-only tests only on Windows
This removes the need to maintain an ignore-list of all other OSs.
See https://github.com/rust-lang/rust/pull/102305 for a similar change.
2022-12-01 14:27:34 +00:00
Vadim Petrochenkov
6cd4dd3091
rustc_hir: Relax lifetime requirements on Visitor::visit_path
2022-12-01 17:04:02 +03:00