Skip to content

Rollup of 6 pull requests #142153

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

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
eec894d
Fix future-incompatible lint group test
Urgau May 1, 2025
80c6a08
Allow `#![doc(test(attr(..)))]` at module level too
Urgau May 1, 2025
9d9705f
Collect and use `#![doc(test(attr(..)))]` at module level too
Urgau May 1, 2025
041d95d
Allow `#![doc(test(attr(..)))]` doctests to be again merged together
Urgau May 1, 2025
316e62a
Allow `#![doc(test(attr(..)))]` at every level
Urgau May 5, 2025
d96d3be
Collect and use `#[doc(test(attr(..)))]` at every level
Urgau May 5, 2025
5bafe9d
Enable Float non-determinism in miri. Update and add tests and change
LorrensP-2158466 Mar 5, 2025
27f8efb
Bump object
heiher Jun 4, 2025
00452bd
change tests to use fixed constants to let them pass with miri
LorrensP-2158466 May 30, 2025
163d29a
Change __rust_no_alloc_shim_is_unstable to be a function
dpaoliello May 15, 2025
38d69c3
Add new Tier-3 targets: `loongarch32-unknown-none*`
heiher Jan 9, 2025
7efd90a
Treat normalizing consts like normalizing types in deeply normalize
compiler-errors Jun 6, 2025
aa1b296
Unify normalization of terms in deeply normalize
compiler-errors Jun 6, 2025
5bab0d2
compiler: Treat ForceWarning as a Warning for diagnostic level
workingjubilee Jun 7, 2025
56ec9b3
Rollup merge of #138062 - LorrensP-2158466:miri-enable-float-nondet, …
GuillaumeGomez Jun 7, 2025
f070ea3
Rollup merge of #140560 - Urgau:test_attr-module-level, r=GuillaumeGomez
GuillaumeGomez Jun 7, 2025
68f68ac
Rollup merge of #141061 - dpaoliello:shimasfn, r=bjorn3
GuillaumeGomez Jun 7, 2025
90cfe1e
Rollup merge of #142053 - heiher:loong32-none, r=wesleywiser
GuillaumeGomez Jun 7, 2025
7f8d211
Rollup merge of #142126 - compiler-errors:normalize-uv-via-relate, r=…
GuillaumeGomez Jun 7, 2025
fbf35a8
Rollup merge of #142148 - workingjubilee:dont-ice-on-force-warn, r=Urgau
GuillaumeGomez Jun 7, 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
2 changes: 1 addition & 1 deletion compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ impl DiagCtxtInner {
// Future breakages aren't emitted if they're `Level::Allow` or
// `Level::Expect`, but they still need to be constructed and
// stashed below, so they'll trigger the must_produce_diag check.
assert_matches!(diagnostic.level, Error | Warning | Allow | Expect);
assert_matches!(diagnostic.level, Error | ForceWarning | Warning | Allow | Expect);
self.future_breakage_diagnostics.push(diagnostic.clone());
}

Expand Down
9 changes: 9 additions & 0 deletions tests/ui/lint/force-warn/ice-free.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//@ compile-flags: --force-warn pub_use_of_private_extern_crate
//@ check-pass

extern crate core;
pub use core as reexported_core;
//~^ warning: extern crate `core` is private
//~| warning: this was previously accepted by the compiler

fn main() {}
32 changes: 32 additions & 0 deletions tests/ui/lint/force-warn/ice-free.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
warning[E0365]: extern crate `core` is private and cannot be re-exported
--> $DIR/ice-free.rs:5:9
|
LL | pub use core as reexported_core;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #127909 <https://github.com/rust-lang/rust/issues/127909>
= note: requested on the command line with `--force-warn pub-use-of-private-extern-crate`
help: consider making the `extern crate` item publicly accessible
|
LL | pub extern crate core;
| +++

warning: 1 warning emitted

For more information about this error, try `rustc --explain E0365`.
Future incompatibility report: Future breakage diagnostic:
warning[E0365]: extern crate `core` is private and cannot be re-exported
--> $DIR/ice-free.rs:5:9
|
LL | pub use core as reexported_core;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #127909 <https://github.com/rust-lang/rust/issues/127909>
= note: requested on the command line with `--force-warn pub-use-of-private-extern-crate`
help: consider making the `extern crate` item publicly accessible
|
LL | pub extern crate core;
| +++

Loading