-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Pavex no longer returns a borrow checker error when a &mut refer…
…ence must be coerced to a shared reference (#401)
- Loading branch information
1 parent
ab5e395
commit 65656bb
Showing
10 changed files
with
539 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[package] | ||
name = "app_7c2a5f14" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[lints.rust.unexpected_cfgs] | ||
level = "allow" | ||
check-cfg = ["cfg(pavex_ide_hint)"] | ||
|
||
[dependencies.pavex] | ||
workspace = true | ||
|
||
[dependencies.pavex_cli_client] | ||
workspace = true | ||
|
||
[dependencies.workspace_hack] | ||
workspace = true |
75 changes: 75 additions & 0 deletions
75
libs/ui_tests/borrow_checker/mixed_mutability/diagnostics.dot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
digraph "GET / - 0" { | ||
0 [ label = "2| pavex::middleware::wrap_noop(pavex::middleware::Next<crate::route_0::Next0>) -> pavex::response::Response"] | ||
1 [ label = "1| pavex::middleware::Next::new(crate::route_0::Next0) -> pavex::middleware::Next<crate::route_0::Next0>"] | ||
2 [ label = "0| crate::route_0::Next0() -> crate::route_0::Next0"] | ||
3 [ label = "3| <pavex::response::Response as pavex::response::IntoResponse>::into_response(pavex::response::Response) -> pavex::response::Response"] | ||
1 -> 0 [ ] | ||
2 -> 1 [ ] | ||
0 -> 3 [ ] | ||
} | ||
|
||
digraph "GET / - 1" { | ||
0 [ label = "4| app_7c2a5f14::wrapper(pavex::middleware::Next<crate::route_0::Next1<'a>>, app_7c2a5f14::C) -> pavex::response::Response"] | ||
1 [ label = "3| pavex::middleware::Next::new(crate::route_0::Next1<'a>) -> pavex::middleware::Next<crate::route_0::Next1<'a>>"] | ||
2 [ label = "1| app_7c2a5f14::c(&app_7c2a5f14::A) -> app_7c2a5f14::C"] | ||
3 [ label = "0| app_7c2a5f14::a() -> app_7c2a5f14::A"] | ||
4 [ label = "2| crate::route_0::Next1(&'a mut app_7c2a5f14::A) -> crate::route_0::Next1<'a>"] | ||
5 [ label = "5| <pavex::response::Response as pavex::response::IntoResponse>::into_response(pavex::response::Response) -> pavex::response::Response"] | ||
2 -> 0 [ ] | ||
3 -> 2 [ label = "&"] | ||
1 -> 0 [ ] | ||
4 -> 1 [ ] | ||
3 -> 4 [ label = "&mut "] | ||
0 -> 5 [ ] | ||
} | ||
|
||
digraph "GET / - 2" { | ||
0 [ label = "2| app_7c2a5f14::handler(app_7c2a5f14::B, &mut app_7c2a5f14::A) -> pavex::response::Response"] | ||
1 [ label = "1| app_7c2a5f14::b(&app_7c2a5f14::A) -> app_7c2a5f14::B"] | ||
3 [ label = "3| <pavex::response::Response as pavex::response::IntoResponse>::into_response(pavex::response::Response) -> pavex::response::Response"] | ||
4 [ label = "0| &mut app_7c2a5f14::A"] | ||
1 -> 0 [ ] | ||
0 -> 3 [ ] | ||
4 -> 1 [ ] | ||
4 -> 0 [ ] | ||
} | ||
|
||
digraph "* * - 0" { | ||
0 [ label = "3| pavex::middleware::wrap_noop(pavex::middleware::Next<crate::route_1::Next0<'a>>) -> pavex::response::Response"] | ||
1 [ label = "2| pavex::middleware::Next::new(crate::route_1::Next0<'a>) -> pavex::middleware::Next<crate::route_1::Next0<'a>>"] | ||
2 [ label = "1| crate::route_1::Next0(&'a pavex::router::AllowedMethods) -> crate::route_1::Next0<'a>"] | ||
4 [ label = "4| <pavex::response::Response as pavex::response::IntoResponse>::into_response(pavex::response::Response) -> pavex::response::Response"] | ||
5 [ label = "0| &pavex::router::AllowedMethods"] | ||
1 -> 0 [ ] | ||
2 -> 1 [ ] | ||
0 -> 4 [ ] | ||
5 -> 2 [ ] | ||
} | ||
|
||
digraph "* * - 1" { | ||
0 [ label = "5| app_7c2a5f14::wrapper(pavex::middleware::Next<crate::route_1::Next1<'a>>, app_7c2a5f14::C) -> pavex::response::Response"] | ||
1 [ label = "4| pavex::middleware::Next::new(crate::route_1::Next1<'a>) -> pavex::middleware::Next<crate::route_1::Next1<'a>>"] | ||
2 [ label = "1| app_7c2a5f14::c(&app_7c2a5f14::A) -> app_7c2a5f14::C"] | ||
3 [ label = "0| app_7c2a5f14::a() -> app_7c2a5f14::A"] | ||
4 [ label = "3| crate::route_1::Next1(&'a pavex::router::AllowedMethods) -> crate::route_1::Next1<'a>"] | ||
6 [ label = "6| <pavex::response::Response as pavex::response::IntoResponse>::into_response(pavex::response::Response) -> pavex::response::Response"] | ||
7 [ label = "2| &pavex::router::AllowedMethods"] | ||
2 -> 0 [ ] | ||
3 -> 2 [ label = "&"] | ||
1 -> 0 [ ] | ||
4 -> 1 [ ] | ||
0 -> 6 [ ] | ||
7 -> 4 [ ] | ||
} | ||
|
||
digraph "* * - 2" { | ||
0 [ label = "1| pavex::router::default_fallback(&pavex::router::AllowedMethods) -> pavex::response::Response"] | ||
2 [ label = "2| <pavex::response::Response as pavex::response::IntoResponse>::into_response(pavex::response::Response) -> pavex::response::Response"] | ||
3 [ label = "0| &pavex::router::AllowedMethods"] | ||
0 -> 2 [ ] | ||
3 -> 0 [ ] | ||
} | ||
|
||
digraph app_state { | ||
0 [ label = "0| crate::ApplicationState() -> crate::ApplicationState"] | ||
} |
Oops, something went wrong.