about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/const_eval/error.rs
AgeCommit message (Expand)AuthorLines
2025-07-18Show the memory of uninit readsOli Scherer-5/+20
2025-07-16format pointer later instead of eagerly converting to stringDeadbeef-6/+6
2025-07-16add `const_make_global`; err for `const_allocate` ptrs if didn't callDeadbeef-2/+30
2025-06-02Use the informative error as the main const eval error messageOli Scherer-12/+8
2025-02-28Shorten span of panic failures in const contextEsteban Küber-5/+16
2025-02-25Teach structured errors to display short `Ty`Esteban Küber-4/+4
2025-01-27Add `TooGeneric` variant to `LayoutError` and emit `Unknown` oneFedericoBruzzone-1/+1
2024-12-09fix ICE on type error in promotedRalf Jung-1/+1
2024-12-01fix ICE when promoted has layout size overflowRalf Jung-5/+12
2024-11-18interpret: do not ICE when a promoted fails with OOMRalf Jung-1/+8
2024-10-19interpret errors: add map_err_kind, rename InterpError -> InterpErrorKindRalf Jung-3/+4
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-2/+2
2024-08-17make writes_through_immutable_pointer a hard errorRalf Jung-1/+7
2024-07-29Reformat `use` declarations.Nicholas Nethercote-5/+7
2024-06-13const-eval: make lint scope computation consistentRalf Jung-10/+2
2024-06-13rename CompileTimeInterpreter -> CompileTimeMachine, CompileTimeEvalContext -...Ralf Jung-2/+2
2024-05-27interpret: the MIR is actually at lifetime 'tcxRalf Jung-8/+5
2024-05-24Run rustfmt on files that need it.Nicholas Nethercote-4/+3
2024-05-23Allow const eval failures if the cause is a type layout issueOli Scherer-4/+5
2024-05-13Remove `extern crate rustc_middle` from `rustc_const_eval`.Nicholas Nethercote-0/+1
2024-05-07replace another Option<Span> by DUMMY_SPRalf Jung-6/+6
2024-03-14Directly pass in the stack instead of computing it from a machineOli Scherer-3/+4
2024-03-14Move generate_stacktrace_from_stack away from InterpCx to avoid having to kno...Oli Scherer-6/+3
2024-03-11Rename `DecorateLint` as `LintDiagnostic`.Nicholas Nethercote-1/+1
2024-03-11Rename `IntoDiagnostic` as `Diagnostic`.Nicholas Nethercote-2/+2
2024-03-11Rename `IntoDiagnosticArg` as `IntoDiagArg`.Nicholas Nethercote-5/+5
2024-03-05Rename `DiagnosticMessage` as `DiagMessage`.Nicholas Nethercote-4/+2
2024-02-28Rename `DiagnosticArg{,Map,Name,Value}` as `DiagArg{,Map,Name,Value}`.Nicholas Nethercote-2/+2
2024-02-15Do not allocate a second "background" alloc id for the main allocation of a s...Oli Scherer-1/+3
2024-02-12Remove `dcx` arg from `ReportErrorExt::add_args`.Nicholas Nethercote-1/+1
2024-02-10unstably allow constants to refer to statics and read from immutable staticsRalf Jung-3/+3
2024-02-05Rollup merge of #119600 - aDotInTheVoid:comment-fix, r=compiler-errorsMatthias Krüger-3/+1
2024-02-03Use `DiagnosticArgName` in a few more places.Nicholas Nethercote-5/+4
2024-01-30Remove the lifetime from `DiagnosticArgValue`.Nicholas Nethercote-1/+1
2024-01-23Rename `TyCtxt::emit_spanned_lint` as `TyCtxt::emit_node_span_lint`.Nicholas Nethercote-1/+1
2024-01-05Remove outdated references to `librustc_middle`.Alona Enraght-Moony-3/+1
2023-12-24Remove `Session` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-2/+2
2023-12-23Use `IntoDiagnostic` default.Nicholas Nethercote-2/+2
2023-12-18Rename `Session::span_diagnostic` as `Session::dcx`.Nicholas Nethercote-1/+1
2023-12-07compile-time evaluation: emit a lint when a write through an immutable pointe...Ralf Jung-8/+36
2023-12-02Use `Session::diagnostic` in more places.Nicholas Nethercote-1/+1
2023-09-14move required_consts check to general post-mono-check functionRalf Jung-5/+5
2023-09-12cleanup leftovers of const_err lintRalf Jung-22/+3
2023-08-20interpret: have assert_* intrinsics call the panic machinery instead of a dir...Ralf Jung-3/+1
2023-07-27Dont report CTFE errors that are due to references-error layoutsMichael Goulet-1/+4
2023-07-12Re-format let-else per rustfmt updateMark Rousskov-2/+2
2023-06-01Use translatable diagnostics in `rustc_const_eval`Deadbeef-144/+136
2023-05-17Finish move of query.rsJohn Kåre Alsaker-1/+2
2023-05-15Suppress "erroneous constant used" for constants tainted by errorsTomasz Miąsko-2/+2
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-3/+3