Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #106266

Merged
merged 74 commits into from
Dec 29, 2022
Merged
Changes from 2 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
055f349
Avoid `match_wildcard_for_single_variants` on guarded wild matches
koka831 Dec 10, 2022
3b6bbf7
Fix match_single_binding suggestion introduced an extra semicolon
alex-semenyuk Nov 7, 2022
5b3a666
fix manual_filter false positive
ericwu17 Dec 16, 2022
3c14075
manual_filter: add a related test
ericwu17 Dec 16, 2022
033f1ec
Add 2018/2021 edition tests for wildcard_imports
chansuke Dec 12, 2022
1c42252
Merge commit '4bdfb0741dbcecd5279a2635c3280726db0604b5' into clippyup
flip1995 Dec 17, 2022
af39a8a
Identify more cases of useless `into_iter()` calls
samueltardieu Dec 1, 2022
6afe547
Add lint `transmute_null_to_fn`
Niki4tap Dec 17, 2022
3cc67d0
Relax clippy_utils::consts::miri_to_const pointer type restrictiveness
Niki4tap Dec 17, 2022
42106e0
Add lint `fn_null_check`
Niki4tap Dec 17, 2022
54a9168
Remove useless pattern matching
Niki4tap Dec 17, 2022
dae54fa
Doc codeblock fixup
Niki4tap Dec 18, 2022
ebb0759
Add a test for regular wildcard
koka831 Dec 11, 2022
b1ca307
Address some of the code style issues
Niki4tap Dec 18, 2022
910a97d
Auto merge of #10020 - samueltardieu:more-into-iter-removal, r=xFrednet
bors Dec 18, 2022
9b2fc8e
Make clippy happy
Niki4tap Dec 18, 2022
20f501a
Improve code style further
Niki4tap Dec 18, 2022
cc98574
Fix comments, use `constant` instead of raw `constant_context`
Niki4tap Dec 18, 2022
62061b8
Move manual_clamp to nursery
flip1995 Dec 19, 2022
8a6aca3
Auto merge of #10101 - flip1995:manual_clamp_nursery, r=xFrednet
bors Dec 19, 2022
691df70
Inline some `const`s
Niki4tap Dec 19, 2022
b3145fe
Auto merge of #10099 - Niki4tap:null_fn_lints, r=llogiq
bors Dec 19, 2022
d0ac6ba
Fix overflow ICE in large_stack/const_arrays
Niki4tap Dec 19, 2022
30e6e85
add [`permissions_set_readonly_false`] #9702
Oct 28, 2022
e1d3c1e
refactor: fix style
chansuke Dec 17, 2022
09cfcaf
Auto merge of #10103 - Niki4tap:overflow_ice, r=flip1995
bors Dec 19, 2022
2444494
Make Clippy test no longer unsound
compiler-errors Dec 16, 2022
1e68973
Auto merge of #10067 - chansuke:issue-7943, r=giraffate
bors Dec 20, 2022
cd3d38a
Use `rustc_mir_dataflow::impls::MaybeStorageLive`
smoelius Oct 11, 2022
c6477eb
Add tests
smoelius Oct 12, 2022
ed519ad
Improve `possible_borrower`
smoelius Oct 12, 2022
26df551
Fix adjacent code
smoelius Oct 12, 2022
c7dc961
Address review comments
smoelius Dec 13, 2022
4dbd8ad
Address https://github.com/rust-lang/rust/pull/105659
smoelius Dec 20, 2022
b21cc36
hotfix: add help dialog for `PermissionExt`
chansuke Dec 17, 2022
4a09068
Auto merge of #10063 - chansuke:issue-9702, r=Alexendoo
bors Dec 20, 2022
065c6f7
Auto merge of #10091 - EricWu2003:manual-filter-FP, r=llogiq
bors Dec 21, 2022
b6882f6
Fix FP in needless_return when using yeet
Niki4tap Dec 22, 2022
f0d331a
Auto merge of #10109 - Niki4tap:yeet_not_return, r=flip1995
bors Dec 22, 2022
8a6e6fd
Auto merge of #10056 - koka831:fix/9993, r=Jarcho
bors Dec 22, 2022
4fe3727
Auto merge of #9701 - smoelius:improve-possible-borrower, r=Jarcho
bors Dec 22, 2022
faebca3
Changelog fix
alex-semenyuk Dec 23, 2022
e2a687d
Auto merge of #10111 - alex-semenyuk:changelog_fix, r=flip1995
bors Dec 23, 2022
d7b9e19
Add size_of_ref lint
lukaslueg Dec 17, 2022
e8703a0
Auto merge of #10098 - lukaslueg:size_of_ref, r=Jarcho
bors Dec 24, 2022
12f2dea
`not_unsafe_ptr_arg_deref` update documentation
tgross35 Dec 25, 2022
4f1bae0
Auto merge of #10116 - tgross35:patch-1, r=llogiq
bors Dec 25, 2022
fae19a9
Place default values near its definitions
koka831 Dec 25, 2022
6bb6dd6
fix incorrect suggestion in `suboptimal_flops`
ericwu17 Dec 23, 2022
d98e714
Auto merge of #10113 - EricWu2003:suboptimal_flops_incorrect_suggesti…
bors Dec 26, 2022
b6453a4
Trim more paths in obligation types
estebank Dec 28, 2022
266eef7
Auto merge of #10119 - koka831:doc/config-default-value, r=xFrednet
bors Dec 28, 2022
fefe309
rustdoc: simplify settings, help, and copy button CSS by not reusing
notriddle Dec 28, 2022
da7fcc7
docs/test: add UI test and long-form error docs for `E0519`
Ezrashaw Dec 21, 2022
726519d
docs: add long-form error docs for `E0514`
Ezrashaw Dec 23, 2022
e5281c3
Provide a better error for `Fn` traits with lifetime params
ohno418 Nov 17, 2022
22af8fe
Auto merge of #10060 - alex-semenyuk:match_single_binding_fix, r=llogiq
bors Dec 29, 2022
50a8ca5
`./x doc library --open` opens `std`
Dec 19, 2022
0853540
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Dec 29, 2022
1f97186
Bump nightly version -> 2022-12-29
flip1995 Dec 29, 2022
4f3ab69
Auto merge of #10126 - flip1995:rustup, r=flip1995
bors Dec 29, 2022
56ab392
Merge commit '4f3ab69ea0a0908260944443c739426cc384ae1a' into clippyup
flip1995 Dec 29, 2022
c6b90d2
Fix index out of bounds issues in rustdoc
chenyukang Dec 29, 2022
7ebcc78
fix #106261, formater should not try to format non-Rust files
chenyukang Dec 29, 2022
af74ca0
Account for multiple multiline spans with empty padding
estebank Dec 27, 2022
81c2b72
Rollup merge of #104531 - ohno418:recover-fn-traits-with-lifetime-par…
matthiaskrgr Dec 29, 2022
10374d3
Rollup merge of #105899 - lukas-code:stage-1-docs, r=jyn514
matthiaskrgr Dec 29, 2022
be56dc0
Rollup merge of #106190 - estebank:multiline-start-tweak, r=jackh726
matthiaskrgr Dec 29, 2022
6b792e9
Rollup merge of #106202 - estebank:trim-paths, r=Nilstrieb
matthiaskrgr Dec 29, 2022
0e953ed
Rollup merge of #106234 - notriddle:notriddle/button-width, r=Guillau…
matthiaskrgr Dec 29, 2022
51534b8
Rollup merge of #106236 - Ezrashaw:add-test+docs-e0519-e0514, r=Guill…
matthiaskrgr Dec 29, 2022
b75b0a8
Rollup merge of #106259 - flip1995:clippyup, r=matthiaskrgr
matthiaskrgr Dec 29, 2022
caa33bf
Rollup merge of #106260 - chenyukang:yukang/fix-106213-doc, r=Guillau…
matthiaskrgr Dec 29, 2022
65fb703
Rollup merge of #106263 - chenyukang:yukang/fix-106261-formater, r=jy…
matthiaskrgr Dec 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/librustdoc/clean/types.rs
Original file line number Diff line number Diff line change
@@ -1740,7 +1740,7 @@ impl Type {
fn inner_def_id(&self, cache: Option<&Cache>) -> Option<DefId> {
let t: PrimitiveType = match *self {
Type::Path { ref path } => return Some(path.def_id()),
DynTrait(ref bounds, _) => return Some(bounds[0].trait_.def_id()),
DynTrait(ref bounds, _) => return bounds.get(0).map(|b| b.trait_.def_id()),
Primitive(p) => return cache.and_then(|c| c.primitive_locations.get(&p).cloned()),
BorrowedRef { type_: box Generic(..), .. } => PrimitiveType::Reference,
BorrowedRef { ref type_, .. } => return type_.inner_def_id(cache),
3 changes: 1 addition & 2 deletions src/librustdoc/html/render/search_index.rs
Original file line number Diff line number Diff line change
@@ -322,8 +322,7 @@ fn get_index_type_id(clean_type: &clean::Type) -> Option<RenderTypeId> {
match *clean_type {
clean::Type::Path { ref path, .. } => Some(RenderTypeId::DefId(path.def_id())),
clean::DynTrait(ref bounds, _) => {
let path = &bounds[0].trait_;
Some(RenderTypeId::DefId(path.def_id()))
bounds.get(0).map(|b| RenderTypeId::DefId(b.trait_.def_id()))
}
clean::Primitive(p) => Some(RenderTypeId::Primitive(p)),
clean::BorrowedRef { ref type_, .. } | clean::RawPointer(_, ref type_) => {
7 changes: 7 additions & 0 deletions src/test/rustdoc-ui/issue-106213.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// compile-flags: --document-private-items
// edition:2021

fn use_avx() -> dyn {
//~^ ERROR at least one trait is required for an object type
!( ident_error )
}
9 changes: 9 additions & 0 deletions src/test/rustdoc-ui/issue-106213.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0224]: at least one trait is required for an object type
--> $DIR/issue-106213.rs:4:17
|
LL | fn use_avx() -> dyn {
| ^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0224`.