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

Document behavior of multiple stability attributes on items #2128

Closed
wants to merge 2,517 commits into from

Conversation

dianne
Copy link
Contributor

@dianne dianne commented Nov 8, 2024

This documents the changes made in rust-lang/rust#131824, and so should be blocked on that.

The checklist for stabilizing a library feature (and its mirror in the standard library developers guide) technically still works; its suggestion to change #[unstable] attributes to #[stable] should always have the correct behavior. Let me know if it should be recommended to avoid mixing #[stable]/#[unstable] or having multiple #[stable]s in hand-written code though; I can make a note about removing rather than changing #[unstable] attributes in that case. cc @rust-lang/libs @rust-lang/libs-api

ehuss and others added 30 commits February 7, 2024 10:23
since this method has been renamed in rustc.

Also remove a link to  documentation in error-guaranteed.md because it was unused
Co-authored-by: Tshepang Mbambo <[email protected]>
* add implied bounds doc

* lazy type aliases also have explicit implied bounds
* add opaque types doc

* summary
* make shell.nix better

* Mention using RUST_BOOTSTRAP_CONFIG

* Move things to `buildInputs` and add `glibc.out glibc.static`

This fixes the nofile-limit.rs UI test.

* short lines for the short line fans

* Fix pkgs
* Add some more details on feature gating

* Apply suggestions from code review

---------

Co-authored-by: Ross Smyth <[email protected]>
Co-authored-by: Nilstrieb <[email protected]>
* Use different type in an example

Sentences such as «without the argument u32» were ambiguous, as there were two distincts u32. Having a single one, the one in the monomorphization of the type, remove the ambiguity.

* Update src/ty.md

---------

Co-authored-by: Nilstrieb <[email protected]>
rust-lang#1914)

This patch also adds docs for `//@ llvm-cov-flags:`, and notes that coverage
tests support revisions (though none of the current tests actually do so).
* Update overview.md

Various link addition and minor edits for clarity.

* generic improvements

* fix line lengths for ci/cd

---------

Co-authored-by: Tbkhi <[email protected]>
Co-authored-by: Oliver Dechant <[email protected]>
* adding links

* Update src/rustc-driver-interacting-with-the-ast.md

Co-authored-by: Tshepang Mbambo <[email protected]>

* redo links and formatting

* Update rustc-driver-interacting-with-the-ast.md

---------

Co-authored-by: Tshepang Mbambo <[email protected]>
Minor additions and resorting.
@jieyouxu jieyouxu added T-libs Relevant to libs team T-libs-api Relevant to libs-api team A-stability Area: stability A-attributes Area: attributes S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content labels Nov 8, 2024
@jieyouxu jieyouxu added S-blocked Status: this PR is blocked waiting for something and removed S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content labels Nov 24, 2024
@Kobzol
Copy link
Contributor

Kobzol commented Jan 5, 2025

Sorry, due to me messing up a git operation, we sadly had to force-push the whole commit history of rustc-dev-guide :( If you'd like to update this pull request, you will have to rebase it in a special way onto the new commit history (the new master):

git fetch origin --all
git checkout <pr-branch>
git rebase --onto origin/master origin/master-old
git push --force-with-lease

More context can be found here.

@BoxyUwU
Copy link
Member

BoxyUwU commented Jan 5, 2025

On a related note now that the dev guide is a subtree you might consider making these changes as part of your rust-lang/rust PR by editing the src/doc/rustc-dev-guide directory.

@dianne
Copy link
Contributor Author

dianne commented Jan 6, 2025

No worries! Having these changes as part of the rust-lang/rust PR sounds nicer anyway. That PR needs a pretty massive rebase I think, but once I get to that I'll be sure to update the dev guide there. Thank you!

@dianne dianne closed this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: attributes A-stability Area: stability S-blocked Status: this PR is blocked waiting for something T-libs Relevant to libs team T-libs-api Relevant to libs-api team
Projects
None yet
Development

Successfully merging this pull request may close these issues.