Rune Tynan
9f4b4e46a3
constify remaining layout methods
...
Remove bad impl for Eq
Update Cargo.lock and fix last ValidAlign
2022-11-20 15:01:21 -05:00
bors
26562973b3
Auto merge of #13653 - VannTen:fix/doc-typo-vim-lsp, r=Veykril
...
Fix typo on 'configuration' anchor
https://rust-analyzer.github.io/manual.html#_configuration lands you at
the start of the page, while
https://rust-analyzer.github.io/manual.html#configuration correctly puts
you at the correct anchor
2022-11-20 19:59:43 +00:00
bjorn3
9723c79af7
Fix running rustc tests
2022-11-20 19:32:44 +00:00
Nicholas Bishop
01a2a546be
test-various: Use clang for the UEFI test
...
This syncs it with how the UEFI targets are built in dist-various-2.
2022-11-20 19:16:43 +00:00
bors
a28f3c88e5
Auto merge of #104646 - matthiaskrgr:rollup-7xnhzf0, r=matthiaskrgr
...
Rollup of 6 pull requests
Successful merges:
- #104537 (fix std::thread docs are unclear regarding stack sizes)
- #104558 (Don't assume `FILE_ID_BOTH_DIR_INFO` will be aligned)
- #104564 (interpret: use Either over Result when it is not representing an error condition)
- #104568 (clarify that realloc refreshes pointer provenance even when the allocation remains in-place)
- #104611 (rustdoc: use real buttons for scrape examples controls)
- #104640 (Migrate kdb style to CSS variables)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-11-20 19:14:14 +00:00
bors
75e1de88f8
Auto merge of #13649 - ZZzzaaKK:master, r=lnicola
...
Improve grammar of architecture.md
Corrects a few grammar mistakes I found while reading the documentation 😄
2022-11-20 18:31:50 +00:00
Ralf Jung
7f5adddb25
enable fuzzy_provenance_casts lint in libstd
2022-11-20 19:23:28 +01:00
Ralf Jung
644a5a34dd
enable fuzzy_provenance_casts lint in liballoc
2022-11-20 19:12:18 +01:00
Matthias Krüger
2aa7f54df2
Rollup merge of #104640 - GuillaumeGomez:migrate-kdb-css, r=notriddle
...
Migrate kdb style to CSS variables
r? `@notriddle`
2022-11-20 18:21:49 +01:00
Matthias Krüger
c5f92ce2a0
Rollup merge of #104611 - notriddle:notriddle/scrape-examples-button, r=GuillaumeGomez
...
rustdoc: use real buttons for scrape examples controls
This makes the expand and switch controls keyboard-accessible.
Preview: https://notriddle.com/notriddle-rustdoc-demos/scrape-examples-button/test_dingus/fn.test.html
2022-11-20 18:21:49 +01:00
Matthias Krüger
db5f005f35
Rollup merge of #104568 - RalfJung:realloc, r=Amanieu
...
clarify that realloc refreshes pointer provenance even when the allocation remains in-place
This [matches what C does](https://en.cppreference.com/w/c/memory/realloc ):
> The original pointer ptr is invalidated and any access to it is undefined behavior (even if reallocation was in-place).
Cc `@rust-lang/wg-allocators`
2022-11-20 18:21:48 +01:00
Matthias Krüger
820a41580e
Rollup merge of #104564 - RalfJung:either, r=oli-obk
...
interpret: use Either over Result when it is not representing an error condition
r? `@oli-obk`
2022-11-20 18:21:48 +01:00
Matthias Krüger
379d3365fd
Rollup merge of #104558 - thomcc:unalign-diriter, r=ChrisDenton
...
Don't assume `FILE_ID_BOTH_DIR_INFO` will be aligned
Fixes #104530 . See that issue for info.
r? `@ChrisDenton`
2022-11-20 18:21:47 +01:00
Matthias Krüger
ddb12348ca
Rollup merge of #104537 - HintringerFabian:docs_default_min_stack_size, r=the8472
...
fix std::thread docs are unclear regarding stack sizes
Improves the documentation about the default stack size of a spawned thread
Fixes #102671
2022-11-20 18:21:47 +01:00
Ralf Jung
bf9e73f6d4
some things don't need to be mutable
2022-11-20 18:15:24 +01:00
Ralf Jung
7225524744
add a weak form of protection that justifies Box noalias
2022-11-20 18:15:24 +01:00
Felix S. Klock II
98993af828
add examples to chunks remainder methods. Also fixed some links to rchunk remainder methods.
2022-11-20 11:43:23 -05:00
Marvin Löbel
3fe37b8c6e
Add get_many_mut methods to slice
2022-11-20 11:19:11 -05:00
Sosthène Guédon
1f2f50c34e
Fix many false negatives caused by autoderef
2022-11-20 17:03:53 +01:00
Tshepang Mbambo
bebe5db517
replace unusual grammar
2022-11-20 17:28:34 +02:00
bjorn3
be1006be50
Rustup to rustc 1.67.0-nightly ( c5d82ed7a 2022-11-19)
2022-11-20 16:26:37 +01:00
Ralf Jung
428ab59fb7
enable fuzzy_provenance_casts in libcore+tests
2022-11-20 16:04:16 +01:00
Sosthène Guédon
0411edfbbd
Improve diagnostic for cases where autoderef is used
2022-11-20 15:49:09 +01:00
Markus Everling
a1bf25e2bd
Update VecDeque implementation
2022-11-20 15:21:16 +01:00
Guillaume Gomez
b01502a398
Extend GUI tests to check kbd colors
2022-11-20 14:32:49 +01:00
Guillaume Gomez
18b45d8144
Migrate kdb colors to CSS variables
2022-11-20 14:32:49 +01:00
bors
d445ced166
Auto merge of #9879 - Alexendoo:allow, r=Manishearth
...
Fix `#[allow]` for `module_name_repetitions` & `single_component_path_imports`
Fixes #7511
Fixes #8768
Fixes #9401
`single_component_path_imports` needed some changes to the lint itself, it now buffers the found single component paths to emit in the equivalent `check_item`
changelog: Fix `#[allow(clippy::module_name_repetitions)]` and `#[allow(clippy::single_component_path_imports)]`
2022-11-20 13:17:02 +00:00
bors
911cbf8e46
Auto merge of #104617 - RalfJung:miri, r=RalfJung
...
update Miri
r? `@thomcc` for the lib changes (removing a `cfg(miri)` that is no longer needed)
2022-11-20 12:57:48 +00:00
ozkanonur
7e28df9561
refactor doc copying process
...
Signed-off-by: ozkanonur <work@onurozkan.dev>
2022-11-20 15:51:50 +03:00
Martin Nordholts
30b7e44a3c
rustdoc JSON: Clarify that Function is also used for methods
2022-11-20 13:48:49 +01:00
Sosthène Guédon
6178ddaded
misname-getters: Fix documentation
2022-11-20 13:46:38 +01:00
Sosthène Guédon
d9993cb133
Remove error when fields use autoderef
2022-11-20 13:45:12 +01:00
Sosthène Guédon
77374a9527
Add failing test
2022-11-20 13:45:12 +01:00
Sosthène Guédon
3f1a186bd1
misnamed_getters: Trigger on unsafe with _unchecked
2022-11-20 13:45:12 +01:00
Sosthène Guédon
a867c17ab3
Improve code
2022-11-20 13:45:12 +01:00
Sosthène Guédon
3428da6e00
Fix typo missnamed -> misnamed
2022-11-20 13:45:12 +01:00
Sosthène Guédon
3e2e81b2db
Fix internal warnings
2022-11-20 13:45:12 +01:00
Sosthène Guédon
5fa0e07cdf
Document missname_getters
2022-11-20 13:45:12 +01:00
Sosthène Guédon
81d4590834
missnamed_getters: use all_fields iterator
2022-11-20 13:45:12 +01:00
Sosthène Guédon
ddc49966dc
Fix suggestion to point to the whole method
2022-11-20 13:45:12 +01:00
Sosthène Guédon
9891af348c
missnamed_getters: Match owned methods
2022-11-20 13:45:12 +01:00
Sosthène Guédon
31b83d0895
Add missnamed_getters lint
2022-11-20 13:45:11 +01:00
Alex Macleod
4d8af99365
Fix #[allow] for module_name_repetitions & single_component_path_imports
2022-11-20 12:39:19 +00:00
Nilstrieb
a1e5fea136
Move macro_rules diagnostics to diagnostics module
2022-11-20 13:06:44 +01:00
Max Gautier
ebbc5492f5
Fix typo on 'configuration' anchor
...
https://rust-analyzer.github.io/manual.html#_configuration lands you at
the start of the page, while
https://rust-analyzer.github.io/manual.html#configuration correctly puts
you at the correct anchor
2022-11-20 12:47:28 +01:00
Tethys Svensson
00bf999fcf
Incorporate review feedback
2022-11-20 12:30:14 +01:00
Ralf Jung
c043a0e7d6
cfg(miri) no longer needed in sys/unix/time.rs
2022-11-20 12:13:48 +01:00
Ralf Jung
a689eb0ded
update lockfile
2022-11-20 12:13:48 +01:00
bors
8459a16869
Auto merge of #2683 - RalfJung:align_offset, r=RalfJung
...
make align_offset always work on no-provenance pointers
Fixes https://github.com/rust-lang/miri/issues/2682
2022-11-20 10:16:02 +00:00
bors
9cdfe03b06
Auto merge of #103390 - compiler-errors:metadata-mod-regions, r=eholk
...
Check fat pointer metadata compatibility modulo regions
Regions don't really mean anything anyways during hir typeck.
If this `erase_regions` makes anyone nervous, it's probably equally valid to just equate the types using a type relation, but regardless we should _not_ be using strict type equality while region variables are present.
Fixes #103384
2022-11-20 10:09:39 +00:00