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

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
dee1c26
xous: ffi: fix lend_impl() return values
xobs Dec 7, 2023
944dc21
xous: ffi: correct size of freed memory
xobs Dec 24, 2023
118e8f7
xous: std: thread_parking: fix deadlocks
bunnie Dec 22, 2023
626926f
std: xous: rework condvar to fix soundness issues
xobs Dec 24, 2023
f732d2b
std: xous: pass entire memory range to flag updater
xobs Dec 29, 2023
b5c1c47
std: xous: use blocking_scalars for mutex unlock
xobs Dec 29, 2023
eabd445
std: xous: rewrite rwlock to be more robust
xobs Dec 24, 2023
762e58a
std: once: use queue implementation on Xous
xobs Dec 24, 2023
007bf7a
std: xous: fix thread_local_key under tests
xobs Dec 24, 2023
ef4f722
std: xous: share allocator symbol in tests
xobs Dec 29, 2023
aa8acc2
xous: net: initial commit of network support
xobs Nov 7, 2023
aa73860
std: xous: mark stdio structs as `repr(C)`
xobs Dec 29, 2023
99b0659
std: xous: use constants for stdout and stderr
xobs Dec 29, 2023
50e4fed
xous: thread: mark thread_main() as divergent
xobs Dec 29, 2023
89cf177
std::net: bind update for using backlog as `-1` too.
devnexen Jan 13, 2024
a8bb418
make unsafe_op_in_unsafe_fn MachineApplicable and add it to 2024 comp…
asquared31415 Jan 13, 2024
755cfbf
core: introduce split_at{,_mut}_checked
mina86 Dec 3, 2023
9c3091e
exclude unexported macro bindings from extern crate
bvanjoi Dec 28, 2023
1afd216
use u64 to represent file size
onur-ozkan Jan 21, 2024
50cbbef
review
mina86 Jan 21, 2024
4b81878
Sort attributes in `compiler/rustc_errors/src/lib.rs`.
nnethercote Jan 13, 2024
d2fe1e5
Remove bogus `{code}` attributes on `TraitImplMismatch`.
nnethercote Jan 14, 2024
9ddc424
Stop using `String` for error codes.
nnethercote Jan 13, 2024
802d16c
Don't actually make bound ty/const for RTN
compiler-errors Jan 21, 2024
4e2f6ec
Rename `LintContext::struct_span_lint` as `LintContext::span_lint`.
nnethercote Jan 16, 2024
109a03b
Rename `LintContext::lookup` as `LintContext::opt_span_lint`.
nnethercote Jan 16, 2024
1c58e6e
Rename `LintContext::lookup_with_diagnostics` as `LintContext::span_l…
nnethercote Jan 16, 2024
46ef313
Rename `LintContext::emit_spanned_lint` as `LintContext::emit_span_li…
nnethercote Jan 16, 2024
3617f7c
Rename `LintLevelsBuilder::struct_lint` as `LintLevelsBuilder::opt_sp…
nnethercote Jan 16, 2024
cbc05f0
Rename `LintLevelsBuilder::emit_spanned_lint` as `LintLevelsBuilder::…
nnethercote Jan 16, 2024
303dab9
Rename `TyCtxt::struct_lint_node` as `TyCtxt::node_lint`.
nnethercote Jan 16, 2024
40636b9
Rename `TyCtxt::struct_span_lint_hir` as `TyCtxt::node_span_lint`.
nnethercote Jan 16, 2024
0f3dc6c
Rename `TyCtxt::emit_lint` as `TyCtxt::emit_node_lint`.
nnethercote Jan 16, 2024
6952531
Rename `TyCtxt::emit_spanned_lint` as `TyCtxt::emit_node_span_lint`.
nnethercote Jan 16, 2024
0a03a9f
Rename `struct_lint_level` as `lint_level`.
nnethercote Jan 16, 2024
4b3cc3a
Rollup merge of #118578 - mina86:c, r=dtolnay
matthiaskrgr Jan 22, 2024
c1f9361
Rollup merge of #119369 - bvanjoi:fix-119301, r=petrochenkov
matthiaskrgr Jan 22, 2024
9cab607
Rollup merge of #119408 - betrusted-io:xous-fixes-add-network, r=Mark…
matthiaskrgr Jan 22, 2024
621981d
Rollup merge of #119943 - devnexen:listener_update3, r=thomcc
matthiaskrgr Jan 22, 2024
80678b6
Rollup merge of #119948 - asquared31415:unsafe_op_in_unsafe_fn_fix, r…
matthiaskrgr Jan 22, 2024
f988b92
Rollup merge of #119972 - nnethercote:add-ErrCode, r=oli-obk
matthiaskrgr Jan 22, 2024
affaead
Rollup merge of #119999 - onur-ozkan:remote-test-tools, r=Mark-Simula…
matthiaskrgr Jan 22, 2024
05828b1
Rollup merge of #120017 - nnethercote:lint-api, r=compiler-errors
matthiaskrgr Jan 22, 2024
1254ebe
Rollup merge of #120213 - compiler-errors:dont-make-non-lifetime-bind…
matthiaskrgr Jan 22, 2024
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
4 changes: 2 additions & 2 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,6 @@ name = "error_index_generator"
version = "0.0.0"
dependencies = [
"mdbook",
"rustc_error_codes",
]

[[package]]
Expand Down Expand Up @@ -3703,7 +3702,6 @@ dependencies = [
"rustc_codegen_ssa",
"rustc_const_eval",
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_expand",
"rustc_feature",
Expand Down Expand Up @@ -3776,9 +3774,11 @@ dependencies = [
"rustc_ast",
"rustc_ast_pretty",
"rustc_data_structures",
"rustc_error_codes",
"rustc_error_messages",
"rustc_fluent_macro",
"rustc_hir",
"rustc_index",
"rustc_lint_defs",
"rustc_macros",
"rustc_serialize",
Expand Down
20 changes: 10 additions & 10 deletions compiler/rustc_ast_lowering/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use rustc_errors::DiagnosticArgFromDisplay;
use rustc_errors::{codes::*, DiagnosticArgFromDisplay};
use rustc_macros::{Diagnostic, Subdiagnostic};
use rustc_span::{symbol::Ident, Span, Symbol};

#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_generic_type_with_parentheses, code = "E0214")]
#[diag(ast_lowering_generic_type_with_parentheses, code = E0214)]
pub struct GenericTypeWithParentheses {
#[primary_span]
#[label]
Expand All @@ -22,7 +22,7 @@ pub struct UseAngleBrackets {
}

#[derive(Diagnostic)]
#[diag(ast_lowering_invalid_abi, code = "E0703")]
#[diag(ast_lowering_invalid_abi, code = E0703)]
#[note]
pub struct InvalidAbi {
#[primary_span]
Expand Down Expand Up @@ -89,7 +89,7 @@ pub enum AssocTyParenthesesSub {
}

#[derive(Diagnostic)]
#[diag(ast_lowering_misplaced_impl_trait, code = "E0562")]
#[diag(ast_lowering_misplaced_impl_trait, code = E0562)]
#[note]
pub struct MisplacedImplTrait<'a> {
#[primary_span]
Expand All @@ -114,15 +114,15 @@ pub struct UnderscoreExprLhsAssign {
}

#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_base_expression_double_dot, code = "E0797")]
#[diag(ast_lowering_base_expression_double_dot, code = E0797)]
pub struct BaseExpressionDoubleDot {
#[primary_span]
#[suggestion(code = "/* expr */", applicability = "has-placeholders", style = "verbose")]
pub span: Span,
}

#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_await_only_in_async_fn_and_blocks, code = "E0728")]
#[diag(ast_lowering_await_only_in_async_fn_and_blocks, code = E0728)]
pub struct AwaitOnlyInAsyncFnAndBlocks {
#[primary_span]
#[label]
Expand All @@ -132,14 +132,14 @@ pub struct AwaitOnlyInAsyncFnAndBlocks {
}

#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_coroutine_too_many_parameters, code = "E0628")]
#[diag(ast_lowering_coroutine_too_many_parameters, code = E0628)]
pub struct CoroutineTooManyParameters {
#[primary_span]
pub fn_decl_span: Span,
}

#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_closure_cannot_be_static, code = "E0697")]
#[diag(ast_lowering_closure_cannot_be_static, code = E0697)]
pub struct ClosureCannotBeStatic {
#[primary_span]
pub fn_decl_span: Span,
Expand All @@ -154,14 +154,14 @@ pub struct FunctionalRecordUpdateDestructuringAssignment {
}

#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_async_coroutines_not_supported, code = "E0727")]
#[diag(ast_lowering_async_coroutines_not_supported, code = E0727)]
pub struct AsyncCoroutinesNotSupported {
#[primary_span]
pub span: Span,
}

#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_inline_asm_unsupported_target, code = "E0472")]
#[diag(ast_lowering_inline_asm_unsupported_target, code = E0472)]
pub struct InlineAsmUnsupportedTarget {
#[primary_span]
pub span: Span,
Expand Down
38 changes: 19 additions & 19 deletions compiler/rustc_ast_passes/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Errors emitted by ast_passes.

use rustc_ast::ParamKindOrd;
use rustc_errors::{AddToDiagnostic, Applicability};
use rustc_errors::{codes::*, AddToDiagnostic, Applicability};
use rustc_macros::{Diagnostic, Subdiagnostic};
use rustc_span::{symbol::Ident, Span, Symbol};

Expand All @@ -23,7 +23,7 @@ pub struct InvalidLabel {
}

#[derive(Diagnostic)]
#[diag(ast_passes_visibility_not_permitted, code = "E0449")]
#[diag(ast_passes_visibility_not_permitted, code = E0449)]
pub struct VisibilityNotPermitted {
#[primary_span]
pub span: Span,
Expand All @@ -44,7 +44,7 @@ pub enum VisibilityNotPermittedNote {
}

#[derive(Diagnostic)]
#[diag(ast_passes_trait_fn_const, code = "E0379")]
#[diag(ast_passes_trait_fn_const, code = E0379)]
pub struct TraitFnConst {
#[primary_span]
#[label]
Expand Down Expand Up @@ -302,14 +302,14 @@ pub struct ItemUnderscore<'a> {
}

#[derive(Diagnostic)]
#[diag(ast_passes_nomangle_ascii, code = "E0754")]
#[diag(ast_passes_nomangle_ascii, code = E0754)]
pub struct NoMangleAscii {
#[primary_span]
pub span: Span,
}

#[derive(Diagnostic)]
#[diag(ast_passes_module_nonascii, code = "E0754")]
#[diag(ast_passes_module_nonascii, code = E0754)]
#[help]
pub struct ModuleNonAscii {
#[primary_span]
Expand All @@ -318,7 +318,7 @@ pub struct ModuleNonAscii {
}

#[derive(Diagnostic)]
#[diag(ast_passes_auto_generic, code = "E0567")]
#[diag(ast_passes_auto_generic, code = E0567)]
pub struct AutoTraitGeneric {
#[primary_span]
#[suggestion(code = "", applicability = "machine-applicable")]
Expand All @@ -328,7 +328,7 @@ pub struct AutoTraitGeneric {
}

#[derive(Diagnostic)]
#[diag(ast_passes_auto_super_lifetime, code = "E0568")]
#[diag(ast_passes_auto_super_lifetime, code = E0568)]
pub struct AutoTraitBounds {
#[primary_span]
#[suggestion(code = "", applicability = "machine-applicable")]
Expand All @@ -338,7 +338,7 @@ pub struct AutoTraitBounds {
}

#[derive(Diagnostic)]
#[diag(ast_passes_auto_items, code = "E0380")]
#[diag(ast_passes_auto_items, code = E0380)]
pub struct AutoTraitItems {
#[primary_span]
pub spans: Vec<Span>,
Expand Down Expand Up @@ -384,28 +384,28 @@ impl AddToDiagnostic for EmptyLabelManySpans {
}

#[derive(Diagnostic)]
#[diag(ast_passes_pattern_in_fn_pointer, code = "E0561")]
#[diag(ast_passes_pattern_in_fn_pointer, code = E0561)]
pub struct PatternFnPointer {
#[primary_span]
pub span: Span,
}

#[derive(Diagnostic)]
#[diag(ast_passes_trait_object_single_bound, code = "E0226")]
#[diag(ast_passes_trait_object_single_bound, code = E0226)]
pub struct TraitObjectBound {
#[primary_span]
pub span: Span,
}

#[derive(Diagnostic)]
#[diag(ast_passes_impl_trait_path, code = "E0667")]
#[diag(ast_passes_impl_trait_path, code = E0667)]
pub struct ImplTraitPath {
#[primary_span]
pub span: Span,
}

#[derive(Diagnostic)]
#[diag(ast_passes_nested_impl_trait, code = "E0666")]
#[diag(ast_passes_nested_impl_trait, code = E0666)]
pub struct NestedImplTrait {
#[primary_span]
pub span: Span,
Expand Down Expand Up @@ -443,7 +443,7 @@ pub struct ObsoleteAuto {
}

#[derive(Diagnostic)]
#[diag(ast_passes_unsafe_negative_impl, code = "E0198")]
#[diag(ast_passes_unsafe_negative_impl, code = E0198)]
pub struct UnsafeNegativeImpl {
#[primary_span]
pub span: Span,
Expand All @@ -468,7 +468,7 @@ pub struct InherentImplCannot<'a> {
}

#[derive(Diagnostic)]
#[diag(ast_passes_inherent_cannot_be, code = "E0197")]
#[diag(ast_passes_inherent_cannot_be, code = E0197)]
pub struct InherentImplCannotUnsafe<'a> {
#[primary_span]
pub span: Span,
Expand Down Expand Up @@ -536,7 +536,7 @@ pub struct GenericDefaultTrailing {
}

#[derive(Diagnostic)]
#[diag(ast_passes_nested_lifetimes, code = "E0316")]
#[diag(ast_passes_nested_lifetimes, code = E0316)]
pub struct NestedLifetimes {
#[primary_span]
pub span: Span,
Expand Down Expand Up @@ -655,15 +655,15 @@ pub struct ConstAndCVariadic {
}

#[derive(Diagnostic)]
#[diag(ast_passes_pattern_in_foreign, code = "E0130")]
#[diag(ast_passes_pattern_in_foreign, code = E0130)]
pub struct PatternInForeign {
#[primary_span]
#[label]
pub span: Span,
}

#[derive(Diagnostic)]
#[diag(ast_passes_pattern_in_bodiless, code = "E0642")]
#[diag(ast_passes_pattern_in_bodiless, code = E0642)]
pub struct PatternInBodiless {
#[primary_span]
#[label]
Expand Down Expand Up @@ -711,14 +711,14 @@ pub struct AssociatedSuggestion2 {
}

#[derive(Diagnostic)]
#[diag(ast_passes_stability_outside_std, code = "E0734")]
#[diag(ast_passes_stability_outside_std, code = E0734)]
pub struct StabilityOutsideStd {
#[primary_span]
pub span: Span,
}

#[derive(Diagnostic)]
#[diag(ast_passes_feature_on_non_nightly, code = "E0554")]
#[diag(ast_passes_feature_on_non_nightly, code = E0554)]
pub struct FeatureOnNonNightly {
#[primary_span]
pub span: Span,
Expand Down
Loading
Loading