Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
b910e97
CI: increase timeout from 4h to 6h
Kobzol Nov 4, 2024
584ec95
btree: add `{Entry,VacantEntry}::insert_entry`
cuviper Nov 14, 2024
e5f1555
Inline ExprPrecedence::order into Expr::precedence
dtolnay Nov 17, 2024
9148660
add convoluted test for issue 132920
lqd Nov 21, 2024
764e3e2
Revert "Remove less relevant info from diagnostic"
lqd Nov 21, 2024
ae9ac0e
Remove the `DefinitelyInitializedPlaces` analysis.
nnethercote Nov 22, 2024
c1707aa
Shorten the `MaybeUninit` `Debug` implementation
tgross35 Nov 21, 2024
b5fc3a1
No need to re-sort existential preds
compiler-errors Nov 23, 2024
898ccdb
Dont create object type when more than one principal is present
compiler-errors Nov 23, 2024
cfa8fcb
Dont create trait object if it has errors in it
compiler-errors Nov 23, 2024
28970a2
Simplify array length mismatch error reporting
compiler-errors Nov 23, 2024
6484420
the emscripten OS no longer exists on non-wasm targets
RalfJung Nov 24, 2024
5d42f64
target check_consistency: ensure target feature string makes some bas…
RalfJung Nov 24, 2024
f3ad32b
Added a doc test for std::path::strip_prefix
CromFr Nov 24, 2024
d26e29f
Tweak parameter mismatch explanation to not say unknown
compiler-errors Nov 25, 2024
98777b4
Merge `TokenTreesReader` into `StringReader`.
nnethercote Nov 14, 2024
593cf68
Split `Lexer::bump`.
nnethercote Nov 14, 2024
ba1a1dd
Fix some formatting.
nnethercote Nov 14, 2024
11c96cf
Improve `strip_shebang` testing.
nnethercote Nov 15, 2024
4cd2840
Clean up `c_or_byte_string`.
nnethercote Nov 15, 2024
16a39bb
Streamline `lex_token_trees` error handling.
nnethercote Nov 15, 2024
c9b56b9
miri: disable test_downgrade_observe test on macOS
RalfJung Nov 25, 2024
4a230bb
Support ranges in `<[T]>::get_many_mut()`
ChayimFriedman2 Nov 17, 2024
e8796c4
CI: split x86_64-msvc-ext job
marcoieni Nov 25, 2024
4301d02
Remove dead code stemming from the old effects desugaring (II)
fmease Nov 25, 2024
bf7d909
remove "onur-ozkan" from users_on_vacation
onur-ozkan Nov 25, 2024
d39afac
std: expose `const_io_error!` as `const_error!`
joboet Nov 25, 2024
57d5c6a
std: update internal uses of `io::const_error!`
joboet Nov 25, 2024
402bdd1
Update test expectations to accept LLVM 'initializes' attribute
zmodem Nov 25, 2024
9f1cfec
use ReadCache for archive loading
mustartt Nov 25, 2024
d0a45cf
Fix `Result` and `Option` not getting a jump to def link generated
GuillaumeGomez Nov 25, 2024
c839925
Add regression test for prelude types
GuillaumeGomez Nov 25, 2024
8bc8adb
std::thread: avoid leading whitespace in some panic messages
RalfJung Nov 25, 2024
b77d8fa
tests: Add recursive associated type bound regression tests
Enselic Nov 25, 2024
f62753f
compiletest: remove `pretty-expanded` directive and infra
jieyouxu Nov 25, 2024
95ff642
tests: remove `//@ pretty-expanded` usages
jieyouxu Nov 25, 2024
259020c
tests: Add regression test for recursive enum with Cow and Clone
Enselic Nov 25, 2024
3a42fd2
tests: disable `avr-rjmp-offset` on Windows for now
jieyouxu Nov 25, 2024
f1e21c6
Rollup merge of #132605 - Kobzol:ci-increase-timeout, r=Mark-Simulacrum
jhpratt Nov 26, 2024
84261f6
Rollup merge of #133042 - cuviper:btreemap-insert_entry, r=Amanieu
jhpratt Nov 26, 2024
3ff0332
Rollup merge of #133070 - nnethercote:lexer-tweaks, r=chenyukang
jhpratt Nov 26, 2024
5281f76
Rollup merge of #133136 - ChayimFriedman2:get-many-mut, r=Amanieu
jhpratt Nov 26, 2024
44a8d96
Rollup merge of #133140 - dtolnay:precedence, r=fmease
jhpratt Nov 26, 2024
2b56782
Rollup merge of #133248 - MarcoIeni:x86_64-msvc-ext-free, r=Kobzol
jhpratt Nov 26, 2024
d67d435
Rollup merge of #133282 - tgross35:maybe-uninit-debug, r=Amanieu
jhpratt Nov 26, 2024
0a0209b
Rollup merge of #133304 - lqd:issue-132920, r=estebank
jhpratt Nov 26, 2024
3e681e9
Rollup merge of #133326 - nnethercote:rm-DefinitelyInitializedPlaces,…
jhpratt Nov 26, 2024
4c36c4d
Rollup merge of #133362 - compiler-errors:existential-preds, r=BoxyUwU
jhpratt Nov 26, 2024
4a10997
Rollup merge of #133367 - compiler-errors:array-len-mismatch, r=BoxyUwU
jhpratt Nov 26, 2024
5a6f43e
Rollup merge of #133394 - compiler-errors:dyn-more-errors, r=lcnr
jhpratt Nov 26, 2024
af93a3b
Rollup merge of #133410 - RalfJung:target-feature-consistency, r=comp…
jhpratt Nov 26, 2024
7888d0b
Rollup merge of #133411 - RalfJung:emscripten-is-on-wasm, r=workingju…
jhpratt Nov 26, 2024
a1e2fd6
Rollup merge of #133419 - CromFr:add-path-strip_prefix-test-example, …
jhpratt Nov 26, 2024
07e3fa5
Rollup merge of #133430 - compiler-errors:param-mismatch, r=WaffleLapkin
jhpratt Nov 26, 2024
c010e8a
Rollup merge of #133435 - RalfJung:test_downgrade_observe, r=tgross35
jhpratt Nov 26, 2024
6935c94
Rollup merge of #133443 - fmease:rm-dead-eff-code-ii, r=compiler-errors
jhpratt Nov 26, 2024
293c0c6
Rollup merge of #133449 - joboet:io_const_error, r=tgross35
jhpratt Nov 26, 2024
deab7b5
Rollup merge of #133450 - onur-ozkan:update-triagebot, r=onur-ozkan
jhpratt Nov 26, 2024
fa2c1ab
Rollup merge of #133454 - zmodem:initializes_fix, r=nikic
jhpratt Nov 26, 2024
32443a8
Rollup merge of #133458 - GuillaumeGomez:fix-prelude-tys-links, r=not…
jhpratt Nov 26, 2024
265caaf
Rollup merge of #133462 - mustartt:aix-improve-bootstrap-loading, r=j…
jhpratt Nov 26, 2024
0414beb
Rollup merge of #133464 - RalfJung:whitespace-panic, r=joboet
jhpratt Nov 26, 2024
a9dfa49
Rollup merge of #133467 - Enselic:recurse-tests, r=lcnr
jhpratt Nov 26, 2024
8160668
Rollup merge of #133470 - jieyouxu:ugly, r=compiler-errors
jhpratt Nov 26, 2024
d974717
Rollup merge of #133473 - Enselic:cow, r=nnethercote
jhpratt Nov 26, 2024
478a4fb
Rollup merge of #133481 - jieyouxu:avr-jmp-linker, r=saethlin
jhpratt Nov 26, 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
Prev Previous commit
Next Next commit
Added a doc test for std::path::strip_prefix
  • Loading branch information
CromFr committed Nov 24, 2024
commit f3ad32b76934fcc8a5119ecf20c7ba9cc7b40ea9
1 change: 1 addition & 0 deletions library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2504,6 +2504,7 @@ impl Path {
/// assert_eq!(path.strip_prefix("/test/haha/foo.txt/"), Ok(Path::new("")));
///
/// assert!(path.strip_prefix("test").is_err());
/// assert!(path.strip_prefix("/te").is_err());
/// assert!(path.strip_prefix("/haha").is_err());
///
/// let prefix = PathBuf::from("/test/");
Expand Down
Loading