about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-11-25Remove unused ObligationCauseCode::ProjectionWfMichael Goulet-6/+0
2023-11-26Remove unnecessary dependencies.Nicholas Nethercote-4/+0
2023-11-26Use `rustc_fluent_macro::fluent_messages!` directly.Nicholas Nethercote-345/+275
Currently we always do this: ``` use rustc_fluent_macro::fluent_messages; ... fluent_messages! { "./example.ftl" } ``` But there is no need, we can just do this everywhere: ``` rustc_fluent_macro::fluent_messages! { "./example.ftl" } ``` which is shorter.
2023-11-26Add a useful comment.Nicholas Nethercote-0/+4
2023-11-26Avoid need for `{D,Subd}iagnosticMessage` imports.Nicholas Nethercote-58/+22
The `fluent_messages!` macro produces uses of `crate::{D,Subd}iagnosticMessage`, which means that every crate using the macro must have this import: ``` use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage}; ``` This commit changes the macro to instead use `rustc_errors::{D,Subd}iagnosticMessage`, which avoids the need for the imports.
2023-11-26Remove `rustc_error_messages/messages.ftl`.Nicholas Nethercote-7/+0
It's empty, and it doesn't even make sense, because `rustc_error_messages` is a lower-level crate than `rustc_errors`.
2023-11-25Update `OnceLock` documentation to give a concrete 'lazy static' example, ↵Corey Farwell-9/+41
and expand on existing example.
2023-11-25Auto merge of #118275 - weihanglo:update-cargo, r=ehussbors-40/+0
Update cargo 7 commits in 71cd3a926f0cf41eeaf9f2a7f2194b2aff85b0f6..9b13310ca596020a737aaa47daa4ed9ff8898a2f 2023-11-20 15:30:57 +0000 to 2023-11-24 16:20:51 +0000 - feat: Add `CARGO_RUSTC_CURRENT_DIR` (unstable) (rust-lang/cargo#12996) - Exited with hard error when custom build file no existence or not in package (rust-lang/cargo#12995) - try running on windows (rust-lang/cargo#13042) - refactor(toml): Better abstract inheritance details (rust-lang/cargo#13021) - cargo-test-support: Add features to the default Cargo.toml file (rust-lang/cargo#12997) - Migrate rustfix to the cargo repo (rust-lang/cargo#13005) - typo: rusc -> rustc (rust-lang/cargo#13019) --- This also removes the check to ensure that `rustfix` between * src/tools/cargo * src/tools/compiletest has the same version, since `rust-lang/rustfix` has migrated to under `rust-lang/cargo`. r? ghost
2023-11-25Get rid of infer vars in inherent assoc types selection by using probeSantiago Pastorino-48/+60
2023-11-25rustdoc: replace `elemIsInParent` with `Node.contains`Michael Howell-21/+11
According to [MDN], this function is compatible with: * Chrome 16 and Edge 12 * Firefox 9 * Safari 1.1 and iOS Safari 1 These browsers are well within our [support matrix], which requires compatibility with Chrome 118, Firefox 115, Safari 17, and Edge 119. [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/Node/contains#browser_compatibility [support matrix]: https://browsersl.ist/#q=last+2+Chrome+versions%2C+last+1+Firefox+version%2C+Firefox+ESR%2C+last+1+Safari+version%2C+last+1+iOS+version%2C+last+1+Edge+version%2C+last+1+UCAndroid+version
2023-11-25add pretty_terminatorouz-a-2/+134
2023-11-25Auto merge of #118294 - GuillaumeGomez:rollup-ij2bzwt, r=GuillaumeGomezbors-500/+171
Rollup of 6 pull requests Successful merges: - #116446 (Yeet `mir::Const::from_anon_const`) - #117871 (remove unused pub fns) - #118017 (rustc_lint: address latent TODO) - #118199 (Remove `HirId` from `QPath::LangItem`) - #118272 (resolve: Avoid clones of `MacroData`) - #118291 (rustdoc-search: clean up some DOM code) Failed merges: - #118201 (Miscellaneous `ObligationCauseCode` cleanups) - #118256 (rustc: `hir().local_def_id_to_hir_id()` -> `tcx.local_def_id_to_hir_id()` cleanup) r? `@ghost` `@rustbot` modify labels: rollup
2023-11-25Rollup merge of #118291 - notriddle:notriddle/search-dom, r=GuillaumeGomezGuillaume Gomez-11/+5
rustdoc-search: clean up some DOM code
2023-11-25Rollup merge of #118272 - petrochenkov:macrodata, r=cjgillotGuillaume Gomez-55/+52
resolve: Avoid clones of `MacroData` And move declarative macro compilation to an earlier point in def collector, which is required for #118188.
2023-11-25Rollup merge of #118199 - compiler-errors:qpath, r=lcnrGuillaume Gomez-75/+45
Remove `HirId` from `QPath::LangItem` Remove `HirId` from `QPath::LangItem`, since there was only *one* use-case (`ObligationCauseCode::AwaitableExpr`), which we can instead recover by walking the HIR tree.
2023-11-25Rollup merge of #118017 - tamird:better-safety, r=cjgillotGuillaume Gomez-8/+10
rustc_lint: address latent TODO See individual commits.
2023-11-25Rollup merge of #117871 - klensy:unused-pub, r=cjgillotGuillaume Gomez-248/+5
remove unused pub fns This removes some unused `pub fn`; also fixes few obsoleted fn names or added fixmes with reminders to update them.
2023-11-25Rollup merge of #116446 - compiler-errors:yeet-mir-from_anon_const, r=b-naberGuillaume Gomez-103/+54
Yeet `mir::Const::from_anon_const` Only had one callsite which was easily simplified. Uplifted a comment that I think is much more useful living in `ty::Const` world.
2023-11-25is_{some,ok}_andMichael Goulet-13/+21
2023-11-25Auto merge of #15964 - lnicola:bump-deps, r=lnicolabors-70/+54
minor: Bump rustc deps and chalk This finally upgrades `ra-ap-rustc_parse_format` (even though it's probably a no-op?).
2023-11-25Bump chalkLaurențiu Nicola-38/+29
2023-11-25Bump ra-ap-rustc_index and ra-ap-rustc_abiLaurențiu Nicola-17/+7
2023-11-25Bump ra-ap-rustc_lexerLaurențiu Nicola-13/+3
2023-11-25Bump ra-ap-rustc_parse_formatLaurențiu Nicola-13/+26
2023-11-25Extract select_inherent_assoc_type_candidatesSantiago Pastorino-79/+95
2023-11-25Do not erase late bound regions, replace them with placeholdersSantiago Pastorino-115/+98
2023-11-25Appease the clippyMichael Goulet-4/+4
2023-11-25Appease the clippyMichael Goulet-4/+4
2023-11-25Remove HirId from QPath::LangItemMichael Goulet-71/+41
2023-11-25Review commentMichael Goulet-20/+19
2023-11-25make sure we still eagerly emit errorsMichael Goulet-2/+28
2023-11-25Remove mir::Const::from_anon_constMichael Goulet-103/+29
2023-11-25Use absolute path for `declare_tool_lint` in `declare_clippy_lint`Alex Macleod-309/+309
2023-11-25Don't ICE when encountering placeholders in implied bounds computationMichael Goulet-2/+18
2023-11-25rustdoc-search: clean up some DOM codeMichael Howell-11/+5
2023-11-25is_{some,ok}_and for rustdocMichael Goulet-14/+12
2023-11-25Auto merge of #118127 - RalfJung:unadjusted-abi, r=compiler-errorsbors-6/+84
the unadjusted ABI needs to pass aggregates by-value Fixes https://github.com/rust-lang/rust/issues/118124, a regression introduced in https://github.com/rust-lang/rust/pull/117500
2023-11-25Auto merge of #118284 - RalfJung:miri, r=RalfJungbors-454/+716
Miri subtree update
2023-11-25Auto merge of #3191 - RalfJung:rustup, r=RalfJungbors-2608/+2679
Rustup
2023-11-25blessRalf Jung-16/+16
2023-11-25Merge from rustcRalf Jung-2591/+2662
2023-11-25Preparing for merge from rustcRalf Jung-1/+1
2023-11-25effects: Run `enforce_context_effects` for all method callsDeadbeef-46/+94
2023-11-25Auto merge of #118279 - bjorn3:sync_cg_clif-2023-11-25, r=bjorn3bors-71/+452
Subtree sync for rustc_codegen_cranelift The main highlights this time are implementing a bunch of new vendor intrinsics and fixing some existing ones. And fixing polymorphization for coroutines. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
2023-11-25Auto merge of #118279 - bjorn3:sync_cg_clif-2023-11-25, r=bjorn3bors-71/+452
Subtree sync for rustc_codegen_cranelift The main highlights this time are implementing a bunch of new vendor intrinsics and fixing some existing ones. And fixing polymorphization for coroutines. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
2023-11-25move `implied_bounds_in_impls` to complexityy21-1/+1
2023-11-25Auto merge of #3189 - RalfJung:ci, r=RalfJungbors-11/+20
run the provenance-gc=1 test on all targets, but only for the host tests No need to slow down *all those tests* running on the Linux host... but lets cover each major OS at least once. We've had bugs that only some macOS-specific code in `getrandom` found, after all. Let's see how much this affects timing on the macOS / Windows runners.
2023-11-25tweak ci.shRalf Jung-2/+8
2023-11-25run the provenance-gc=1 test on all targets, but only for some of the testsRalf Jung-9/+12
before: only on Linux host, all tests after: only the test suite itself (not cargo-miri or the mir-opt-level=4 run), on all hosts for the host target and on Linux for all "full" targets.
2023-11-25Auto merge of #15962 - ahlinc:label-datail2, r=lnicolabors-1/+3
fix: add fallback for completion label details This PR adds a fallback to a previous implementation in a case when the label detail field isn't supported by LSP client and the support isn't reported by the LSP initialize request. In this case additional info about trait and aliases would be merged into the label field as it was before the #15956 PR.