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 #119648

Merged
merged 32 commits into from
Jan 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
786e0bb
bootstrap: Move -Clto= setting from Rustc::run to rustc_cargo
xry111 Dec 29, 2023
1ab60f2
rustdoc-search: fix inaccurate type descriptions
notriddle Dec 31, 2023
86b9550
rustdoc-search: tighter encoding for `f` index
notriddle Dec 31, 2023
a68ac32
Clean up serialization code nits
notriddle Jan 4, 2024
506b9f9
coverage: Avoid early returns from `mir_to_initial_sorted_coverage_sp…
Zalathar Dec 22, 2023
df0df52
coverage: Overhaul how "visible macros" are determined
Zalathar Dec 28, 2023
cd3a976
coverage: Hoist the removal of unwanted macro expansion spans
Zalathar Dec 21, 2023
d4d2f14
coverage: Hoist the splitting of visible macro invocations
Zalathar Dec 22, 2023
cd50843
coverage: Split out `SpanFromMir` from `CoverageSpan`
Zalathar Dec 22, 2023
514e026
coverage: Make the remaining fields of `CoverageSpan` non-public
Zalathar Dec 28, 2023
ddfcf86
Allow emitting diagnostics from the `#[diagnostic]` namespace without a
weiznich Dec 21, 2023
2c3aeea
Replace some usage of `#[rustc_on_unimplemented]` with
weiznich Dec 22, 2023
91e1af3
Add a test that emitting diagnostics does not require the crate to use
weiznich Dec 23, 2023
97c8238
remove duplicate test
RalfJung Jan 5, 2024
54967d7
Ignore a rustdoc test
fmease Jan 5, 2024
004bfc5
Add notes about the serialization format
notriddle Jan 5, 2024
2746748
fix OOM when `ty::Instance` is used in query description
Jan 5, 2024
339fa31
fix cycle error for "use constructor" suggestion
Jan 5, 2024
7366bda
Handle ForeignItem as TAIT scope.
cjgillot Dec 29, 2023
6dfdeab
Do not run check on foreign items.
cjgillot Dec 31, 2023
eeaea57
Rebase fallout.
cjgillot Jan 5, 2024
0489fd0
library: Fix warnings in rtstartup
petrochenkov Jan 5, 2024
0d70e58
library: Fix a symlink test failing on Windows
petrochenkov Jan 5, 2024
bacddd3
Rollup merge of #119208 - Zalathar:hoist, r=WaffleLapkin,Swatinem
compiler-errors Jan 6, 2024
d90c702
Rollup merge of #119216 - weiznich:use_diagnostic_namespace_in_stdlib…
compiler-errors Jan 6, 2024
98ba299
Rollup merge of #119414 - xry111:xry111/lto-test, r=Mark-Simulacrum
compiler-errors Jan 6, 2024
9585ebc
Rollup merge of #119420 - cjgillot:issue-119295, r=compiler-errors
compiler-errors Jan 6, 2024
b3f3074
Rollup merge of #119468 - notriddle:notriddle/compression, r=Guillaum…
compiler-errors Jan 6, 2024
a95a363
Rollup merge of #119628 - RalfJung:duplicate-test, r=compiler-errors
compiler-errors Jan 6, 2024
61c776a
Rollup merge of #119638 - lukas-code:suggest-constructor-cycle-error,…
compiler-errors Jan 6, 2024
a98993c
Rollup merge of #119640 - petrochenkov:rtstartup, r=Mark-Simulacrum
compiler-errors Jan 6, 2024
71610e2
Rollup merge of #119642 - petrochenkov:winstdtest, r=ChrisDenton
compiler-errors Jan 6, 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
Allow emitting diagnostics from the #[diagnostic] namespace without a
nightly feature

(Using this attribute still requires a nightly feature, this just
enables that this feature does not need to be enabled on the child crate
as well)
  • Loading branch information
weiznich committed Jan 5, 2024
commit ddfcf86867e4a8f29ea235ee700aa89a8b6ddf21
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ impl<'tcx> OnUnimplementedDirective {
pub fn of_item(tcx: TyCtxt<'tcx>, item_def_id: DefId) -> Result<Option<Self>, ErrorGuaranteed> {
if let Some(attr) = tcx.get_attr(item_def_id, sym::rustc_on_unimplemented) {
return Self::parse_attribute(attr, false, tcx, item_def_id);
} else if tcx.features().diagnostic_namespace {
} else {
tcx.get_attrs_by_path(item_def_id, &[sym::diagnostic, sym::on_unimplemented])
.filter_map(|attr| Self::parse_attribute(attr, true, tcx, item_def_id).transpose())
.try_fold(None, |aggr: Option<Self>, directive| {
Expand Down Expand Up @@ -592,8 +592,6 @@ impl<'tcx> OnUnimplementedDirective {
Ok(Some(directive))
}
})
} else {
Ok(None)
}
}

Expand Down