Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ad2b0f8
Unquerify extern_mod_stmt_cnum.
cjgillot Jul 3, 2025
ac87434
Implement support for explicit tail calls in the MIR block builders a…
xacrimon Jul 20, 2025
a96bd57
chore: clang-format
xacrimon Jul 20, 2025
205f4ca
tests: add ui fail/pass tests and llvm ir tail codegen tests
xacrimon Jul 21, 2025
3fac279
chore: fix typo
xacrimon Jul 21, 2025
bcaa795
removed tidy check on issues files
Kivooeo Jul 19, 2025
58537fb
Fix broken TLS destructors on 32-bit win7
roblabla Jul 20, 2025
b2f8b40
Don't ICE on non-TypeId metadata within TypeId
oli-obk Jul 21, 2025
55b5612
don't end lifetimes after call
xacrimon Jul 21, 2025
2cd84dc
recursion-no-tce.rs should be run-crash
xacrimon Jul 21, 2025
d424207
fix typo in codegen test
xacrimon Jul 21, 2025
dad96b1
Use serde for target spec json deserialize
Noratrieb Jul 20, 2025
e5a5062
add an error message if you attempt to pass indirect args via guarant…
xacrimon Jul 21, 2025
ecf34e1
use span_bug instead of bug
xacrimon Jul 21, 2025
c4eb077
Ensure we codegen and don't internalize the entrypoint
saethlin Jul 17, 2025
6e8762f
Use less HIR in check_private_in_public.
cjgillot Oct 1, 2023
3083d8f
generate elf symbol version in raw-dylib
usamoi Jul 20, 2025
08aaa14
Rollup merge of #143374 - cjgillot:bare-extern-crate-map, r=petrochenkov
matthiaskrgr Jul 22, 2025
d9c053c
Rollup merge of #144094 - saethlin:codegen-the-main-fn, r=petrochenkov
matthiaskrgr Jul 22, 2025
789e097
Rollup merge of #144173 - Kivooeo:tidy_checks, r=jieyouxu
matthiaskrgr Jul 22, 2025
0e8291f
Rollup merge of #144218 - Noratrieb:target-spec-json-de-jank, r=fee1-…
matthiaskrgr Jul 22, 2025
5b44b45
Rollup merge of #144221 - usamoi:versym, r=bjorn3
matthiaskrgr Jul 22, 2025
c6cb219
Rollup merge of #144232 - xacrimon:explicit-tail-call, r=oli-obk
matthiaskrgr Jul 22, 2025
6b7af95
Rollup merge of #144234 - roblabla:fix-win7-tls-dtors, r=ChrisDenton
matthiaskrgr Jul 22, 2025
b3101a8
Rollup merge of #144256 - oli-obk:type-id-ice, r=RalfJung
matthiaskrgr Jul 22, 2025
f50023d
Rollup merge of #144276 - cjgillot:no-hir-privacy, r=petrochenkov
matthiaskrgr Jul 22, 2025
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
13 changes: 13 additions & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4563,7 +4563,10 @@ dependencies = [
"rustc_macros",
"rustc_serialize",
"rustc_span",
"serde",
"serde_derive",
"serde_json",
"serde_path_to_error",
"tracing",
]

Expand Down Expand Up @@ -4955,6 +4958,16 @@ dependencies = [
"serde",
]

[[package]]
name = "serde_path_to_error"
version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59fab13f937fa393d08645bf3a84bdfe86e296747b506ada67bb15f10f218b2a"
dependencies = [
"itoa",
"serde",
]

[[package]]
name = "serde_spanned"
version = "0.6.9"
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_session/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,12 @@ impl LinkSelfContained {
if let Some(component_to_enable) = component.strip_prefix('+') {
self.explicitly_set = None;
self.enabled_components
.insert(LinkSelfContainedComponents::from_str(component_to_enable)?);
.insert(LinkSelfContainedComponents::from_str(component_to_enable).ok()?);
Some(())
} else if let Some(component_to_disable) = component.strip_prefix('-') {
self.explicitly_set = None;
self.disabled_components
.insert(LinkSelfContainedComponents::from_str(component_to_disable)?);
.insert(LinkSelfContainedComponents::from_str(component_to_disable).ok()?);
Some(())
} else {
None
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_session/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ pub mod parse {
}

pub(crate) fn parse_linker_flavor(slot: &mut Option<LinkerFlavorCli>, v: Option<&str>) -> bool {
match v.and_then(LinkerFlavorCli::from_str) {
match v.and_then(|v| LinkerFlavorCli::from_str(v).ok()) {
Some(lf) => *slot = Some(lf),
_ => return false,
}
Expand Down
3 changes: 3 additions & 0 deletions compiler/rustc_target/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ rustc_fs_util = { path = "../rustc_fs_util" }
rustc_macros = { path = "../rustc_macros" }
rustc_serialize = { path = "../rustc_serialize" }
rustc_span = { path = "../rustc_span" }
serde = "1.0.219"
serde_derive = "1.0.219"
serde_json = "1.0.59"
serde_path_to_error = "0.1.17"
tracing = "0.1"
# tidy-alphabetical-end

Expand Down
15 changes: 15 additions & 0 deletions compiler/rustc_target/src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,18 @@ impl ToJson for rustc_abi::CanonAbi {
self.to_string().to_json()
}
}

macro_rules! serde_deserialize_from_str {
($ty:ty) => {
impl<'de> serde::Deserialize<'de> for $ty {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
D: serde::Deserializer<'de>,
{
let s = String::deserialize(deserializer)?;
FromStr::from_str(&s).map_err(serde::de::Error::custom)
}
}
};
}
pub(crate) use serde_deserialize_from_str;
1,025 changes: 373 additions & 652 deletions compiler/rustc_target/src/spec/json.rs

Large diffs are not rendered by default.

Loading