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 #100920

Merged
merged 25 commits into from
Aug 23, 2022
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f4bf8cd
Extend comma suggestion to cases where fields arent missing
compiler-errors Aug 9, 2022
586c84a
Fix rustc_parse_format precision & width spans
Alexendoo Aug 21, 2022
c31f296
Refactor query modifier parsing
camsteffen Aug 21, 2022
8be3764
InferCtxt emit error when incorrectly tainted by errors
chenyukang Aug 10, 2022
f466a75
remove hack fix since we don't have no overflow diagnostic
chenyukang Aug 22, 2022
15c8e55
net listen backlog update, follow-up from #97963.
devnexen Aug 21, 2022
8c2413c
Migrate rustc_plugin_impl to SessionDiagnostic
Facel3ss1 Aug 19, 2022
d7d701a
Create specific ConstantHasGenerics for ConstantItemRibKind.
cjgillot Jul 14, 2022
613dc22
Improve local generic parameter suggestions.
cjgillot Jul 14, 2022
362e636
Do not call generate_fn_name_span in typeck.
cjgillot Jul 14, 2022
6e88d73
Remove generate_fn_name_span and generate_local_type_param_snippet.
cjgillot Jul 14, 2022
da9ccc2
Remove FnItemRibKind.
cjgillot Jul 14, 2022
dff4280
Mark suggestion as MaybeIncorrect.
cjgillot Aug 22, 2022
8e6c5ad
Fix typo in UnreachableProp
Noratrieb Aug 23, 2022
fb5dc6b
Add some useful comments to `LitKind`.
nnethercote Aug 22, 2022
6087dc2
Remove the symbol from `ast::LitKind::Err`.
nnethercote Aug 22, 2022
4d1c273
Rollup merge of #99249 - cjgillot:no-reparse-fn, r=fee1-dead
Dylan-DPC Aug 23, 2022
8733550
Rollup merge of #100309 - compiler-errors:issue-100300, r=sanxiyn
Dylan-DPC Aug 23, 2022
f42cdf7
Rollup merge of #100368 - chenyukang:fix-100321, r=lcnr
Dylan-DPC Aug 23, 2022
35f2d12
Rollup merge of #100768 - Facel3ss1:plugin-impl-translation, r=davidtwco
Dylan-DPC Aug 23, 2022
a163659
Rollup merge of #100835 - devnexen:listener_followups, r=devnexen
Dylan-DPC Aug 23, 2022
110d8d9
Rollup merge of #100851 - Alexendoo:rpf-width-prec-spans, r=fee1-dead
Dylan-DPC Aug 23, 2022
fd93ab4
Rollup merge of #100857 - camsteffen:query-parse-refactor, r=davidtwco
Dylan-DPC Aug 23, 2022
12c1ac0
Rollup merge of #100907 - Nilstrieb:unrachable-typo-lol, r=Dylan-DPC
Dylan-DPC Aug 23, 2022
28ead17
Rollup merge of #100909 - nnethercote:minor-ast-LitKind-improvement, …
Dylan-DPC Aug 23, 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
Prev Previous commit
Next Next commit
net listen backlog update, follow-up from #97963.
FreeBSD and using system limit instead for others.
devnexen committed Aug 22, 2022
commit 15c8e55601515583cf169e0371f62867e5719f47
6 changes: 2 additions & 4 deletions library/std/src/os/unix/net/listener.rs
Original file line number Diff line number Diff line change
@@ -73,10 +73,8 @@ impl UnixListener {
unsafe {
let inner = Socket::new_raw(libc::AF_UNIX, libc::SOCK_STREAM)?;
let (addr, len) = sockaddr_un(path.as_ref())?;
#[cfg(target_os = "linux")]
const backlog: libc::c_int = -1;
#[cfg(not(target_os = "linux"))]
const backlog: libc::c_int = 128;
const backlog: libc::c_int =
if cfg!(any(target_os = "linux", target_os = "freebsd")) { -1 } else { 128 };

cvt(libc::bind(inner.as_inner().as_raw_fd(), &addr as *const _ as *const _, len as _))?;
cvt(libc::listen(inner.as_inner().as_raw_fd(), backlog))?;