Skip to content

Rollup of 8 pull requests #138185

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
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
917d2eb
add verbatim linker to AIXLinker
Feb 20, 2025
1a5a453
atomic: clarify that failing conditional RMW operations are not 'writes'
RalfJung Mar 4, 2025
e0b7577
linux x64: default to `-znostart-stop-gc`
lqd Feb 26, 2025
9d8ce72
compiler: factor Windows x86-32 ABI impl into its own file
workingjubilee Feb 21, 2025
4e4bed8
setTargetTriple now accepts Triple rather than string
ZequanWu Mar 7, 2025
8814679
rename Triple to Target
ZequanWu Mar 7, 2025
bbc80a8
Delay bug for negative auto trait rather than ICEing
compiler-errors Mar 7, 2025
bae4682
Rename print_something to should_render
compiler-errors Mar 5, 2025
9ae9453
Fix pretty printing of parsed attrs in hir_pretty
compiler-errors Mar 5, 2025
fb04372
Move all alloc integration tests to a new alloctests crate
bjorn3 Feb 6, 2025
be1e0b7
Move most Rc tests to alloctests
bjorn3 Feb 6, 2025
701bedc
Move last remaining Rc test to alloctests
bjorn3 Feb 6, 2025
ae5687e
Fully test the alloc crate through alloctests
bjorn3 Feb 6, 2025
22d0440
Add comments
bjorn3 Feb 13, 2025
1d586b5
Rollup merge of #136642 - bjorn3:separate_alloctest_crate, r=cuviper
compiler-errors Mar 7, 2025
0270489
Rollup merge of #137337 - dalvescb:master, r=petrochenkov
compiler-errors Mar 7, 2025
f47df77
Rollup merge of #137363 - workingjubilee:untangle-x86-abi-impl, r=jie…
compiler-errors Mar 7, 2025
ae1699f
Rollup merge of #137685 - lqd:nostart-stop-gc, r=petrochenkov
compiler-errors Mar 7, 2025
541029d
Rollup merge of #138000 - RalfJung:atomic-rmw, r=Amanieu
compiler-errors Mar 7, 2025
dee3c9c
Rollup merge of #138063 - compiler-errors:improve-attr-unpretty, r=jd…
compiler-errors Mar 7, 2025
3dafc37
Rollup merge of #138137 - ZequanWu:fix-triple, r=cuviper
compiler-errors Mar 7, 2025
92e7038
Rollup merge of #138173 - compiler-errors:incoherent-negative-impl, r…
compiler-errors Mar 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
5 changes: 4 additions & 1 deletion compiler/rustc_hir_analysis/src/check/always_applicable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ pub(crate) fn check_negative_auto_trait_impl<'tcx>(
// be implemented here to handle non-ADT rigid types.
Ok(())
} else {
span_bug!(tcx.def_span(impl_def_id), "incoherent impl of negative auto trait");
Err(tcx.dcx().span_delayed_bug(
tcx.def_span(impl_def_id),
"incoherent impl of negative auto trait",
))
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions tests/ui/auto-traits/ungated-impl.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
auto trait MyTrait {}
//~^ ERROR auto traits are experimental and possibly buggy

impl<T> !MyTrait for *mut T {}
//~^ ERROR negative trait bounds are not fully implemented

fn main() {}
23 changes: 23 additions & 0 deletions tests/ui/auto-traits/ungated-impl.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
error[E0658]: auto traits are experimental and possibly buggy
--> $DIR/ungated-impl.rs:1:1
|
LL | auto trait MyTrait {}
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #13231 <https://github.com/rust-lang/rust/issues/13231> for more information
= help: add `#![feature(auto_traits)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: negative trait bounds are not fully implemented; use marker types for now
--> $DIR/ungated-impl.rs:4:9
|
LL | impl<T> !MyTrait for *mut T {}
| ^^^^^^^^
|
= note: see issue #68318 <https://github.com/rust-lang/rust/issues/68318> for more information
= help: add `#![feature(negative_impls)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
Loading