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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
674724c
remove deprecated from core::ffi::c_str
hkBst Jul 2, 2025
2111525
Add test false-sealed-traits-note.rs
xizheyin Jul 4, 2025
4a261a1
Use relative visibility when noting sealed trait to reduce false posi…
xizheyin Jul 4, 2025
d44dcd4
update to literal-escaper-0.0.5
hkBst Jul 8, 2025
28af500
Opaque type collection: Guard against endlessly recursing free alias …
fmease Jul 11, 2025
500b743
tests: Test line debuginfo for linebreaked function parameters
Enselic Jul 13, 2025
5530744
Reword mismatched-lifetime-syntaxes text based on feedback
shepmaster Jul 10, 2025
e7f5bbe
remove description from rust toml struct
Shourya742 Jul 14, 2025
76967af
remove ccache from llvm
Shourya742 Jul 14, 2025
306928f
update change tracking with warning on removal of fields.
Shourya742 Jul 14, 2025
8e400f9
Fix ice for feature-gated cfg attributes applied to the crate
JonathanBrouwer Jul 15, 2025
bfa45ac
Add regression test
JonathanBrouwer Jul 15, 2025
42ec028
type_id_eq: check that the hash fully matches the type
RalfJung Jul 15, 2025
07a34c3
Make frame spans appear on a separate trace line
Stypox Jul 15, 2025
5d611e5
resolve: Move `self_binding` to `ModuleData`
petrochenkov Jul 6, 2025
8d71939
resolve: Use `module_map` and `get_module` less
petrochenkov Jul 6, 2025
8b8889d
resolve: Split `module_map` into two maps for local and extern modules
petrochenkov Jul 6, 2025
6849f81
resolve: Change `&mut Resolver` to `&Resolver` when possible
petrochenkov Jul 6, 2025
08fa971
Rollup merge of #143326 - hkBst:rm-deprecated-1, r=jhpratt
matthiaskrgr Jul 17, 2025
14b6ac4
Rollup merge of #143431 - xizheyin:143392, r=compiler-errors
matthiaskrgr Jul 17, 2025
52a405b
Rollup merge of #143550 - petrochenkov:lessmutres, r=lcnr
matthiaskrgr Jul 17, 2025
465ae94
Rollup merge of #143631 - hkBst:update-escaper-2, r=compiler-errors
matthiaskrgr Jul 17, 2025
f78cc42
Rollup merge of #143793 - fmease:lta-opaq-inf-recur, r=oli-obk
matthiaskrgr Jul 17, 2025
c8d2cbb
Rollup merge of #143880 - Enselic:fn-parameters-on-different-lines-de…
matthiaskrgr Jul 17, 2025
51f16b0
Rollup merge of #143914 - shepmaster:mismatched-lifetime-syntaxes-rew…
matthiaskrgr Jul 17, 2025
c97c38b
Rollup merge of #143926 - Shourya742:2025-07-14-remove-deprecated-fie…
matthiaskrgr Jul 17, 2025
4bf5787
Rollup merge of #143955 - Stypox:tracing-frame-filter, r=RalfJung
matthiaskrgr Jul 17, 2025
e7efa04
Rollup merge of #143975 - RalfJung:type-id-eq, r=oli-obk
matthiaskrgr Jul 17, 2025
5286836
Rollup merge of #143984 - JonathanBrouwer:fix-feature-gate-ice, r=Urgau
matthiaskrgr Jul 17, 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
Prev Previous commit
Next Next commit
update to literal-escaper-0.0.5
  • Loading branch information
hkBst committed Jul 8, 2025
commit d44dcd451326d32516c22ee5f998304afaf19c4d
4 changes: 2 additions & 2 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3260,9 +3260,9 @@ checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"

[[package]]
name = "rustc-literal-escaper"
version = "0.0.4"
version = "0.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab03008eb631b703dd16978282ae36c73282e7922fe101a4bd072a40ecea7b8b"
checksum = "e4ee29da77c5a54f42697493cd4c9b9f31b74df666a6c04dfc4fde77abe0438b"

[[package]]
name = "rustc-main"
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2024"
# tidy-alphabetical-start
bitflags = "2.4.1"
memchr = "2.7.4"
rustc-literal-escaper = "0.0.4"
rustc-literal-escaper = "0.0.5"
rustc_ast_ir = { path = "../rustc_ast_ir" }
rustc_data_structures = { path = "../rustc_data_structures" }
rustc_index = { path = "../rustc_index" }
Expand Down
6 changes: 3 additions & 3 deletions compiler/rustc_ast/src/util/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ impl LitKind {
token::CStr => {
let s = symbol.as_str();
let mut buf = Vec::with_capacity(s.len());
unescape_c_str(s, |_span, c| match c {
unescape_c_str(s, |_span, res| match res {
Ok(MixedUnit::Char(c)) => {
buf.extend_from_slice(c.encode_utf8(&mut [0; 4]).as_bytes())
buf.extend_from_slice(c.get().encode_utf8(&mut [0; 4]).as_bytes())
}
Ok(MixedUnit::HighByte(b)) => buf.push(b),
Ok(MixedUnit::HighByte(b)) => buf.push(b.get()),
Err(err) => {
assert!(!err.is_fatal(), "failed to unescape C string literal")
}
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_parse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2024"
[dependencies]
# tidy-alphabetical-start
bitflags = "2.4.1"
rustc-literal-escaper = "0.0.4"
rustc-literal-escaper = "0.0.5"
rustc_ast = { path = "../rustc_ast" }
rustc_ast_pretty = { path = "../rustc_ast_pretty" }
rustc_data_structures = { path = "../rustc_data_structures" }
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_parse_format/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2024"

[dependencies]
# tidy-alphabetical-start
rustc-literal-escaper = "0.0.4"
rustc-literal-escaper = "0.0.5"
rustc_lexer = { path = "../rustc_lexer" }
# tidy-alphabetical-end

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_proc_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test = false
doctest = false

[dependencies]
rustc-literal-escaper = "0.0.4"
rustc-literal-escaper = "0.0.5"

[features]
rustc-dep-of-std = []
4 changes: 2 additions & 2 deletions library/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ dependencies = [

[[package]]
name = "rustc-literal-escaper"
version = "0.0.4"
version = "0.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab03008eb631b703dd16978282ae36c73282e7922fe101a4bd072a40ecea7b8b"
checksum = "e4ee29da77c5a54f42697493cd4c9b9f31b74df666a6c04dfc4fde77abe0438b"
dependencies = [
"rustc-std-workspace-core",
"rustc-std-workspace-std",
Expand Down
2 changes: 1 addition & 1 deletion library/proc_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ std = { path = "../std" }
# `core` when resolving doc links. Without this line a different `core` will be
# loaded from sysroot causing duplicate lang items and other similar errors.
core = { path = "../core" }
rustc-literal-escaper = { version = "0.0.4", features = ["rustc-dep-of-std"] }
rustc-literal-escaper = { version = "0.0.5", features = ["rustc-dep-of-std"] }

[features]
default = ["rustc-dep-of-std"]
Expand Down
6 changes: 3 additions & 3 deletions library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1471,11 +1471,11 @@ impl Literal {
let mut error = None;
let mut buf = Vec::with_capacity(symbol.len());

unescape_c_str(symbol, |_span, c| match c {
unescape_c_str(symbol, |_span, res| match res {
Ok(MixedUnit::Char(c)) => {
buf.extend_from_slice(c.encode_utf8(&mut [0; 4]).as_bytes())
buf.extend_from_slice(c.get().encode_utf8(&mut [0; 4]).as_bytes())
}
Ok(MixedUnit::HighByte(b)) => buf.push(b),
Ok(MixedUnit::HighByte(b)) => buf.push(b.get()),
Err(err) => {
if err.is_fatal() {
error = Some(ConversionErrorKind::FailedToUnescape(err));
Expand Down
2 changes: 1 addition & 1 deletion src/tools/lint-docs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "A script to extract the lint documentation for the rustc book."
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rustc-literal-escaper = "0.0.4"
rustc-literal-escaper = "0.0.5"
serde_json = "1.0.57"
tempfile = "3.1.0"
walkdir = "2.3.1"
Loading