-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rename task failure to task panic #17489
Comments
Can't you just do this to update everything immediately? I'm not sure why the documentation would lag since it would be updated as well... $ cd rust-src/dir
$ grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' |
@mdinger our documentation has things like "This fails if ...", and |
Ah, I see |
1.0, P-backcompat-libs. |
@steveklabnik It would be good to coordinate the (easy) code change with the (harder) doc change. Do you have any thoughts here? |
Sure, want me to just do all of it? The code part should be pretty easy too. |
@steveklabnik Sure, that'd be awesome! One thing we should do as part of this is standardize the the markdown subsection for describing error outcomes. Let's talk about that on IRC when you get the chance. |
@steveklabnik Just to be clear, the documentation change means not just the guide, but also all of the doc comments in |
Yup. |
This in-progress PR implements #17489. I made the code changes in this commit, next is to go through alllllllll the documentation and fix various things. - Rename column headings as appropriate, `# Panics` for panic conditions and `# Errors` for `Result`s. - clean up usage of words like 'fail' in error messages Anything else to add to the list, @aturon ? I think I should leave the actual functions with names like `slice_or_fail` alone, since you'll get to those in your conventions work? I'm submitting just the code bits now so that we can see it separately, and I also don't want to have to keep re-building rust over and over again if I don't have to 😉 Listing all the bits so I can remember as I go: - [x] compiler-rt - [x] compiletest - [x] doc - [x] driver - [x] etc - [x] grammar - [x] jemalloc - [x] liballoc - [x] libarena - [x] libbacktrace - [x] libcollections - [x] libcore - [x] libcoretest - [x] libdebug - [x] libflate - [x] libfmt_macros - [x] libfourcc - [x] libgetopts - [x] libglob - [x] libgraphviz - [x] libgreen - [x] libhexfloat - [x] liblibc - [x] liblog - [x] libnative - [x] libnum - [x] librand - [x] librbml - [x] libregex - [x] libregex_macros - [x] librlibc - [x] librustc - [x] librustc_back - [x] librustc_llvm - [x] librustdoc - [x] librustrt - [x] libsemver - [x] libserialize - [x] libstd - [x] libsync - [x] libsyntax - [x] libterm - [x] libtest - [x] libtime - [x] libunicode - [x] liburl - [x] libuuid - [x] llvm - [x] rt - [x] test
This is now done. Amazing work, @steveklabnik! |
🎊 ❤️ |
Change fail! to panic! rust-lang/rust#17489
Change fail! to panic! rust-lang/rust#17489
Change fail! to panic! rust-lang/rust#17489
minro: move tt-iter into tt crate
Tracking issue for rust-lang/rfcs#221
Nominating, as renaming the
fail!
macro topanic!
is backwards incompatible. I believe updating all the documentation does not necessarily need to block 1.0.The text was updated successfully, but these errors were encountered: