Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #136655

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
dc62b8f
replaces few consts with statics to reduce readonly section
klensy Jan 28, 2025
8d8028f
Revert "CI: build FreeBSD artifacts on FreeBSD 13.4"
asomers Feb 5, 2025
d4b8c82
fixup: fix the compiler path in one more Dockerfile
asomers Feb 5, 2025
89da361
compiler: make rustc_target have less weird reexports
workingjubilee Nov 3, 2024
28140e8
compiler: reorganize rustc_abi to be more internally uniform
workingjubilee Nov 3, 2024
5934e0a
MIR validation: add comment explaining the limitations of CfgChecker
RalfJung Feb 6, 2025
4500ed5
Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios;
bjoernager Feb 6, 2025
14fb5ef
ping me for attribute-related changes
jdonszelmann Feb 6, 2025
f0966d2
Add `rustc_hir_pretty::item_to_string` function
GuillaumeGomez Feb 6, 2025
8e7481b
Make sure we don't overrun the stack in canonicalizer
compiler-errors Feb 5, 2025
992e3b4
fix tail call checks wrt `#[track_caller]`
WaffleLapkin Jan 24, 2025
65552b7
Rollup merge of #135973 - WaffleLapkin:tail-track-caller-fix, r=compi…
matthiaskrgr Feb 6, 2025
2c6ea02
Rollup merge of #136191 - klensy:const_a, r=compiler-errors
matthiaskrgr Feb 6, 2025
760951a
Rollup merge of #136565 - workingjubilee:fixup-abi-in-target, r=compi…
matthiaskrgr Feb 6, 2025
31c5993
Rollup merge of #136582 - asomers:revert-132232, r=tgross35
matthiaskrgr Feb 6, 2025
fa05ca9
Rollup merge of #136592 - compiler-errors:ensure-stack-in-canonical, …
matthiaskrgr Feb 6, 2025
9184fc0
Rollup merge of #136627 - RalfJung:mir-validation-cfg-checker, r=comp…
matthiaskrgr Feb 6, 2025
a4a19b9
Rollup merge of #136634 - bjoernager:const-mut-cursor, r=m-ou-se
matthiaskrgr Feb 6, 2025
4ab3453
Rollup merge of #136643 - jdonszelmann:add-triagebot-attrs, r=fmease
matthiaskrgr Feb 6, 2025
39e2b8c
Rollup merge of #136644 - GuillaumeGomez:item-to-string, r=Urgau
matthiaskrgr Feb 6, 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
Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios;
  • Loading branch information
bjoernager committed Feb 6, 2025
commit 4500ed525620707cd5d01ae8ad84dfbcd84c996a
4 changes: 2 additions & 2 deletions library/std/src/io/cursor.rs
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ impl<T> Cursor<T> {
/// let reference = buff.get_mut();
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_mut_cursor", issue = "130801")]
#[rustc_const_stable(feature = "const_mut_cursor", since = "CURRENT_RUSTC_VERSION")]
pub const fn get_mut(&mut self) -> &mut T {
&mut self.inner
}
@@ -201,7 +201,7 @@ impl<T> Cursor<T> {
/// assert_eq!(buff.position(), 4);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_mut_cursor", issue = "130801")]
#[rustc_const_stable(feature = "const_mut_cursor", since = "CURRENT_RUSTC_VERSION")]
pub const fn set_position(&mut self, pos: u64) {
self.pos = pos;
}
Loading