File tree Expand file tree Collapse file tree 6 files changed +2
-25
lines changed
rustc_transmute/src/maybe_transmutable Expand file tree Collapse file tree 6 files changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,4 @@ incremental_unrecognized_depnode = unrecognized `DepNode` variant: {$name}
9999
100100incremental_unrecognized_depnode_label = dep-node label `{ $label } ` not recognized
101101
102- incremental_write_dep_graph = failed to write dependency graph to `{ $path } `: { $err }
103-
104102incremental_write_new = failed to write { $name } to `{ $path } `: { $err }
Original file line number Diff line number Diff line change @@ -272,13 +272,6 @@ pub struct LoadDepGraph {
272272 pub err : std:: io:: Error ,
273273}
274274
275- #[ derive( Diagnostic ) ]
276- #[ diag( incremental_write_dep_graph) ]
277- pub struct WriteDepGraph < ' a > {
278- pub path : & ' a Path ,
279- pub err : std:: io:: Error ,
280- }
281-
282275#[ derive( Diagnostic ) ]
283276#[ diag( incremental_move_dep_graph) ]
284277pub struct MoveDepGraph < ' a > {
Original file line number Diff line number Diff line change @@ -471,10 +471,6 @@ passes_must_not_suspend =
471471 `must_not_suspend` attribute should be applied to a struct, enum, or trait
472472 .label = is not a struct, enum, or trait
473473
474- passes_must_use_async =
475- `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within
476- .label = this attribute does nothing, the `Future`s returned by async functions are already `must_use`
477-
478474passes_must_use_no_effect =
479475 `#[must_use]` has no effect when applied to { $article } { $target }
480476
Original file line number Diff line number Diff line change @@ -371,13 +371,6 @@ pub struct FfiConstInvalidTarget {
371371 pub attr_span : Span ,
372372}
373373
374- #[ derive( LintDiagnostic ) ]
375- #[ diag( passes_must_use_async) ]
376- pub struct MustUseAsync {
377- #[ label]
378- pub span : Span ,
379- }
380-
381374#[ derive( LintDiagnostic ) ]
382375#[ diag( passes_must_use_no_effect) ]
383376pub struct MustUseNoEffect {
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use crate::layout;
44pub ( crate ) trait QueryContext {
55 type Def : layout:: Def ;
66 type Ref : layout:: Ref ;
7- type Scope : Copy ;
87}
98
109#[ cfg( test) ]
@@ -28,20 +27,17 @@ pub(crate) mod test {
2827 impl QueryContext for UltraMinimal {
2928 type Def = Def ;
3029 type Ref = !;
31- type Scope = ( ) ;
3230 }
3331}
3432
3533#[ cfg( feature = "rustc" ) ]
3634mod rustc {
37- use rustc_middle:: ty:: { Ty , TyCtxt } ;
35+ use rustc_middle:: ty:: TyCtxt ;
3836
3937 use super :: * ;
4038
4139 impl < ' tcx > super :: QueryContext for TyCtxt < ' tcx > {
4240 type Def = layout:: rustc:: Def < ' tcx > ;
4341 type Ref = layout:: rustc:: Ref < ' tcx > ;
44-
45- type Scope = Ty < ' tcx > ;
4642 }
4743}
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ fn box_deref_lval() {
5959 assert_eq ! ( x. get( ) , 1000 ) ;
6060}
6161
62+ #[ allow( unused) ]
6263pub struct ConstAllocator ;
6364
6465unsafe impl Allocator for ConstAllocator {
You can’t perform that action at this time.
0 commit comments