Skip to content

Rollup of 10 pull requests #137900

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

Merged
merged 22 commits into from
Mar 3, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
bf26f24
Clarify/update comments in `BufRead::read_line`'s default body
steffahn Feb 20, 2025
33ee398
More precisely document `Global::deallocate()`'s safety.
kpreid Feb 25, 2025
775cb23
doc: update Wasmtime flags
DaniPopes Feb 27, 2025
3a6f269
improve error message and testing of using an unsigned simd mask
folkertdev Mar 1, 2025
6f7fd11
rustc_target: Add msync target feature and enable it on powerpcspe ta…
taiki-e Mar 1, 2025
596c14a
fix `RangeBounds::is_empty` documentation
pitaj Mar 1, 2025
c51b229
Disable `f16` on Aarch64 without `neon`
tgross35 Mar 1, 2025
6079827
Adjust triagebot.toml entries for `rustc_mir_build/src/builder/`
Zalathar Mar 2, 2025
4d0a1af
edit mailmap
jdonszelmann Mar 2, 2025
298fb8a
Add name and trimmed_name methods to DefId
NotLebedev Mar 1, 2025
141d2f3
Replace usages of `Context.def_name`
NotLebedev Mar 1, 2025
a3378f5
Remove duplication in `name`/`trimmed_anem` docs
NotLebedev Mar 2, 2025
f47c7e8
Rollup merge of #137375 - steffahn:clarify-read_line-comment, r=Mark-…
matthiaskrgr Mar 2, 2025
e8134a3
Rollup merge of #137641 - kpreid:dealloc, r=Amanieu
matthiaskrgr Mar 2, 2025
bb091f2
Rollup merge of #137755 - DaniPopes:wasmtime-threads-flag, r=Noratrieb
matthiaskrgr Mar 2, 2025
bb089d7
Rollup merge of #137851 - folkertdev:simd-intrinsic-mask-signed, r=wo…
matthiaskrgr Mar 2, 2025
1762f01
Rollup merge of #137860 - taiki-e:powerpcspe-msync, r=workingjubilee
matthiaskrgr Mar 2, 2025
c994a29
Rollup merge of #137871 - pitaj:rangebounds-is_empty-intersect, r=sco…
matthiaskrgr Mar 2, 2025
8152da8
Rollup merge of #137873 - tgross35:disable-f16-without-neon, r=workin…
matthiaskrgr Mar 2, 2025
d031bb3
Rollup merge of #137876 - Zalathar:triagebot-matches, r=jieyouxu
matthiaskrgr Mar 2, 2025
0ed4856
Rollup merge of #137883 - jdonszelmann:edit-mailmap, r=Noratrieb
matthiaskrgr Mar 2, 2025
59fe0c7
Rollup merge of #137886 - NotLebedev:stable-mir-91, r=oli-obk
matthiaskrgr Mar 2, 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
Remove duplication in name/trimmed_anem docs
Reference `DefId` in `CrateDef` docs to avoid duplicating long
description of `trimmed_name`
  • Loading branch information
NotLebedev committed Mar 2, 2025
commit a3378f59388ced7f6011e508bb7dff5f90362e00
11 changes: 3 additions & 8 deletions compiler/stable_mir/src/crate_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,15 @@ pub trait CrateDef {
fn def_id(&self) -> DefId;

/// Return the fully qualified name of the current definition.
///
/// See [`DefId::name`] for more details
fn name(&self) -> Symbol {
self.def_id().name()
}

/// Return a trimmed name of this definition.
///
/// This can be used to print more user friendly diagnostic messages.
///
/// If a symbol name can only be imported from one place for a type, and as
/// long as it was not glob-imported anywhere in the current crate, we trim its
/// path and print only the name.
///
/// For example, this function may shorten `std::vec::Vec` to just `Vec`,
/// as long as there is no other `Vec` importable anywhere.
/// See [`DefId::trimmed_name`] for more details
fn trimmed_name(&self) -> Symbol {
self.def_id().trimmed_name()
}
Expand Down
Loading